HTML4.01 & XHTML1.0 & XHTML1.1 のタグ一覧

HTML 4.01 Strict, HTML 4.01 Transitional, XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML1.1 で使用できるタグをXHTMLモジュールで分類しています。

分類 タグ(要素) 意味 属性と最小内容モデル
Structure Module - body HTML文書のボディ
<body Common>
(Heading | Block | List)*
</body>
head HTML文書のヘッダ
<head id profile I18N>
title
</head>
html HTML文書
<html id version xmlns I18N>
head
body
</html>
title HTML文書のタイトル
<title id I18N>Text</title>
Text Module Heading h1 レベル1の見出し
<h1 Common>(Inline | Text)*</h1>
h2 レベル2の見出し
<h2 Common>(Inline | Text)*</h2>
h3 レベル3の見出し
<h3 Common>(Inline | Text)*</h3>
h4 レベル4の見出し
<h4 Common>(Inline | Text)*</h4>
h5 レベル5の見出し
<h5 Common>(Inline | Text)*</h5>
h6 レベル6の見出し
<h6 Common>(Inline | Text)*</h6>
Block address 連絡先
<address Common>(Inline | Text)*</address>
blockquote 引用の範囲
<blockquote cite Common>
(Heading | Block | List)*
</blockquote>
div 分けられた範囲・グループ
<div Common>
(Heading | Block | List | Inline | Text)*
</div>
p 段落・文字列
<p Common>(Inline | Text)*</p>
pre 整形済み文字列
<pre Common>(Inline -(big | small | sub | sup | img | object) | Text)*</pre>
Inline abbr 略称
<abbr Common>(Inline | Text)*</abbr>
acronym 頭文字
<acronym Common>(Inline | Text)*</acronym>
br 改行
<br Core>
cite 引用元
<cite Common>(Inline | Text)*</cite>
code コード・ソース
<code Common>(Inline | Text)*</code>
dfn 定義語
<dfn Common>(Inline | Text)*</dfn>
em 強調
<em Common>(Inline | Text)*</em>
kbd ユーザー入力
<kbd Common>(Inline | Text)*</kbd>
q 引用文
<q cite Common>(Inline | Text)*</q>
samp 出力サンプル
<samp Common>(Inline | Text)*</samp>
span 文字の範囲・グループ
<span Common>(Inline | Text)*</span>
strong 重要
<strong Common>(Inline | Text)*</strong>
var 変数
<var Common>(Inline | Text)*</var>
Hypertext Module Inline a アンカー・リンク
<a accesskey charset href hreflang rel rev tabindex type Common>(Inline -a | Text)*</a>
List Module List dl 定義リスト
<dl Common>
(dd | dt)+
</dl>
ol 順序リスト
<ol Common>
li+
</ol>
ul 順序不同リスト
<ul Common>
li+
</ul>
- dd 定義リストの説明部分
<dd Common>
(Heading | Block | List | Inline | Text)*
</dd>
dt 定義リストの用語部分
<dt Common>(Inline | Text)*</dt>
li リストの項目
<li Common>
(Heading | Block | List | Inline | Text)*
</li>
Presentation Module Block hr 水平の罫線
<hr Common>
Inline b 太字
<b Common>(Inline | Text)*</b>
big 大きな文字
<big Common>(Inline | Text)*</big>
i 斜体
<i Common>(Inline | Text)*</i>
small 小さな文字
<small Common>(Inline | Text)*</small>
sub 下付き文字
<sub Common>(Inline | Text)*</sub>
sup 上付き文字
<sup Common>(Inline | Text)*</sup>
tt 等幅
<tt Common>(Inline | Text)*</tt>
Edit Module Inline del 削除
<del cite datetime Common>
(Heading | Block | List)*
</del>
<del cite datetime Common>(Inline | Text)*</del>
ins 追加
<ins cite datetime Common>
(Heading | Block | List)*
</ins>
<ins cite datetime Common>(Inline | Text)*</ins>
Bi-directional Text Module Inline bdo 表記方向
<bdo dir* xml:lang Core>(Inline | Text)*</bdo>
Forms Module Block Form fieldset Formctrlグループ
<fieldset Common>
(Heading | Block | List | Inline | Text | legend)*
</fieldset>
form フォームの範囲
<form accept accept-charset action* enctype method name Common>
(Heading | Block -form | List)+
</form>
Inline Formctrl button ボタン
<button accesskey disabled name tabindex type value Common>
(Heading | Block -Form | List)*
</button>
<button accesskey disabled name tabindex type value Common>
(Inline -(a | Formctrl) | Text)*
</button>
input 入力項目
<input accept accesskey alt checked disabled maxlength name readonly size src tabindex type value Common>
label Formctrlラベル
<label accesskey for Common>(Inline -label | Text)*</label>
select 選択メニュー
<select disabled multiple name size tabindex Common>
(optgroup | option)+
</select>
textarea テキストエリア
<textarea accesskey cols* disabled name readonly rows* tabindex Common>Text</textarea>
- legend Formctrlグループのキャプション
<legend accesskey Common>(Inline | Text)*</legend>
optgroup 選択肢グループ
<optgroup disabled label* Common>
option+
</optgroup>
option 選択肢
<option disabled label selected value Common>Text</option>
Tables Module Block table
<table border cellpadding cellspacing frame rules summary width Common>
caption?, (col | colgroup)*, ((thead?, tfoot?, tbody+) | tr+)
</table>
- caption 表のキャプション
<caption Common>(Inline | Text)*</caption>
col 表の列
<col align char charoff span valign width Common>
colgroup 表の列グループ
<colgroup align char charoff span valign width Common>
col*
</colgroup>
tbody 表のボディ
<tbody align char charoff valign Common>
tr+
</tbody>
td 表の情報セル
<td abbr align axis char charoff colspan headers rows scope valign Common>
(Heading | Block | List | Inline | Text)*
</td>
tfoot 表のフッタ
<tfoot align char charoff valign Common>
tr+
</tfoot>
th 表の見出しセル
<th abbr align axis char charoff colspan headers rows scope valign Common>
(Heading | Block | List | Inline | Text)*
</th>
thead 表のヘッダ
<tfoot align char charoff valign Common>
tr+
</thead>
tr 表の行
<tr align char charoff valign Common>
(td | th)+
</tr>
Image Module Inline img イメージ
<img alt* height longdesc name src* width Common>
Client-side Image Map Module Inline map イメージマップ
<map class id* title I18N Events>
((Heading | Block) | area)+
</map>
- area イメージマップの領域
<area accesskey alt* coords href nohref shape tabindex Common>
Object Module Inline object オブジェクト
<object archive classid codebase codetype data declare height name standby tabindex type width Common>
(Heading | Block | List | Inline | Text | param)*
</object>
- param オブジェクトのパラメータ
<param id name* type value valuetype>
Metainformation Module head meta HTML文書のメタ情報
<meta content* http-equiv id name scheme I18N>
Scripting Module Block Inline head script スクリプト
<script charset defer id src type>Text</script>
Block Inline noscript スクリプトの代替内容
<noscript Common>
(Heading | Block | List)+
</noscript>
Style Sheet Module head style スタイル
<style id media title type I18N>Text</style>
Base Module head base 基準URL
<base href* id>
Ruby Annotation Module Inline ruby ルビ
<ruby Common>rb, (rt | (rp, rt, rp))</ruby>
- rb ルビベース
<rb Common>(Inline -ruby | Text)*</rb>
rbc ルビベースコンテナ
<rbc Common>rb+</rbc>
rp ルビ括弧
<rp Common>Text*</rp>
rt ルビテキスト
<rt rbspan Common>(Inline -ruby | Text)*</rt>
rtc ルビテキストコンテナ
<rtc Common>rt+</rtc>
属性コレクション(共通属性)一覧
Core(%coreattrs) class, id, title, style(HTML4.01), xml:space(XHTML)
I18N(%i18n) dir, lang(HTML4.01), xml:lang(XHTML)
Events(%events) onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
Style style
Common(%attrs) Core + I18N + Events + Style