回答編集履歴
1
dt, dd記述間違い修正、w3c説明追記
answer
CHANGED
|
@@ -21,12 +21,28 @@
|
|
|
21
21
|
> 英語のHTML5の非公式ドキュメント
|
|
22
22
|
[https://www.w3schools.com/tags/tag_dl.asp](https://www.w3schools.com/tags/tag_dl.asp)
|
|
23
23
|
|
|
24
|
+
dtは単純にラベルとしての意味を持ち、dtが複数ある場合はグループ化されるようです。ddは前述のdtまたは、グループ化されたdtの記述説明であるということのようです。
|
|
25
|
+
[https://www.w3.org/TR/html5/grouping-content.html#the-dl-element](https://www.w3.org/TR/html5/grouping-content.html#the-dl-element)
|
|
24
26
|
|
|
25
|
-
|
|
27
|
+
> ※上記W3Cより
|
|
28
|
+
At the end of the example, one group has two metadata labels ("Authors" and "Editors") and two values ("Robert Rothman" and "Daniel Jackson").
|
|
26
29
|
|
|
27
|
-
- (項目名:) 名前
|
|
28
|
-
|
|
30
|
+
> <dl>
|
|
31
|
+
<dt> Last modified time </dt>
|
|
32
|
+
<dd> 2004-12-23T23:33Z </dd>
|
|
33
|
+
<dt> Recommended update interval </dt>
|
|
34
|
+
<dd> 60s </dd>
|
|
35
|
+
<dt> Authors </dt>
|
|
36
|
+
<dt> Editors </dt>
|
|
37
|
+
<dd> Robert Rothman </dd>
|
|
38
|
+
<dd> Daniel Jackson </dd>
|
|
39
|
+
</dl>
|
|
29
40
|
|
|
41
|
+
よって、下記のHTMLは定義から解釈した意味は下記のようになります。
|
|
42
|
+
|
|
43
|
+
- (項目名:) 名前、性別
|
|
44
|
+
- (名前、性別:) 山田太郎、男性
|
|
45
|
+
|
|
30
46
|
```html
|
|
31
47
|
<dl>
|
|
32
48
|
<dt>名前</dt>
|