HTML tabindex 속성
예시
지정된 탭 순서가 있는 링크:
<a href="https://www.w3schools.com/" tabindex="2">W3Schools</a>
<a href="http://www.google.com/" tabindex="1">Google</a>
<a href="http://www.microsoft.com/" tabindex="3">Microsoft</a>
정의 및 사용
속성 은 tabindex
요소의 탭 순서를 지정합니다(탐색에 "탭" 버튼이 사용되는 경우).
tabindex
속성은 모든 HTML 요소에서 사용할 수 있습니다 ( 모든 HTML 요소에서 유효성을 검사하지만 반드시 유용한 것은 아닙니다).
브라우저 지원
Attribute | |||||
---|---|---|---|---|---|
tabindex | Yes | Yes | Yes | Yes | Yes |
통사론
<element tabindex="number">
속성 값
Value | Description |
---|---|
number | Specifies the tabbing order of the element (1 is first) |
관련 페이지
HTML 튜토리얼: HTML 속성
HTML DOM 참조: HTML DOM tabIndex 속성