HTML5

タグ(要素)

CAPTION

  編集:2022.06.24 by T.A.

mdn

表用のキャプション。

この要素を使用できる文脈

TABLE 要素の最初の子として。

内容モデル

フロー内容、ただし TABLE 要素の子孫を除く。

text/htmlにおけるタグ省略

CAPTION 要素の直後が ASCII 空白文字またはコメントでない場合、CAPTION 要素の終了タグは省略することができる。

内容属性
解説

CAPTION 要素は、テーブル モデルに参加する。

TABLE 要素が FIGCAPTION 要素以外の FIGURE 要素で内容のみである場合、CAPTION 要素は FIGCAPTION 要素を選んで省略されるべきである。

<CAPTION>
<P>Table 1.
<P>This table shows the total score obtained from rolling two
six-sided dice. The first row represents the value of the first die,
the first column the value of the second die. The total is given in
the cell that corresponds to the values of the two dice.
</CAPTION>
<TABLE style="margin:5mm; border:1px solid black; font-family:MS P明朝">
 <CAPTION><B>テスト</B>キャプション:</CAPTION>
 <CAPTION style="caption-side:bottom">キャプション:</CAPTION>
 <TR><TD>TD要素<TD>TD要素
 <TR><TD>TD要素<TD>TD要素
</TABLE>


テスト
HTML:

ここに表示
HTML:

ここに表示
スクリプト:


スクリプト:



表示内容:
表示内容: