HTMLtabindex属性_


指定されたタブ順序のリンク:

<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 DOMtabIndexプロパティ