Html-li-tag
提供:Dev Guides
HTML-<li>タグ
説明
HTML <li>タグは、順序付き、順序なし、ディレクトリ、およびメニューリストのリスト項目を指定するために使用されます。
例
<!DOCTYPE html>
<html>
<head>
<title>HTML li Tag</title>
</head>
<body>
<ul>
<li>ol - ordered list</li>
<li>ul - unordered list</li>
<li>dir - directory list</li>
<li>menu - menu list</li>
</ul>
</body>
</html>
これは、次の結果を生成します-
グローバル属性
このタグは、− link:/html/html_attributes_reference [HTML属性リファレンス]で説明されているすべてのグローバル属性をサポートします
特定の属性
HTML <li>タグは、次の追加属性もサポートしています-
Attribute | Value | Description |
---|---|---|
type | A a I i 1 disc square circle | Deprecated − Specifies the type of the list. |
value | number | Specifies the value of a list item. |
イベント属性
このタグは、− link:/html/html_events_reference [HTMLイベントリファレンス]で説明されているすべてのイベント属性をサポートします。
ブラウザのサポート
Chrome | Firefox | IE | Opera | Safari | Android |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |