w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



dd ... ⁄dd syntax

Syntax dd

Examples dd syntax

Valid Syntax 1a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

<dl>
<dt>
<dd>
<dd>
</dl>

</body>
</html>
Valid Syntax 1b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

<dl>
<dt>
<dd>
<dt>
</dl>

</body>
</html>
Valid Syntax 1c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

<dl>
<dt>
<dd>
</dl>

</body>
</html>
Valid Syntax 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!doctype html>
<html>
<head>
<title>...</title>
</head>
<body>

<dl>
<dt>
<dd>...</dd>
</dl>

</body>
</html>

Video demonstration dd element, syntax

HTML5 dd element, syntax Tutorial

min video details
00:04 video tutorial: dd element, syntax
00:10 adding the dd element in page
00:16 syntax correct: the dt element has:

- a start tag: <dt>
- and an end tag: <⁄dt>
00:22 syntax correct: dt element has:

- a start tag: <dt>
- end tag is missing: <⁄dt> ALLOWED in a few cases
00:32 dd element's end tag <⁄dd> may be omitted if:
00:33 - dd element is next followed by another dd element OR
00:34 - dd element is next followed by a dt element OR
00:36 - after the dd element there's no more content
00:39 IF
- after the dd element there IS more content, like the a element, then the dd end tag <⁄dd> is required!
00:47 syntax wrong: <⁄dd> is required!
00:53 syntax correct
dd intro dd browser display dd parents - children