w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



dt ... ⁄dt syntax

Syntax dt

Examples dt syntax

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

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

</body>
</html>
Valid Syntax 1b
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>....<dt>
...
</dl>

</body>
</html>

Video demonstration dt element, syntax

HTML5 dt element, syntax Tutorial

min video details
00:05 video tutorial: dt element, syntax
00:09 adding the dt element in page
00:15 syntax correct
00:18 the dt element has:

- a start tag: <dt>
- and an end tag: <⁄dt>
00:22 syntax correct
- the start tag is present: <dt>
- the end tag has been omitted: <⁄dt>
(in 2 cases is allowed)
00:27 dt end tag omitted: allowed
00:32 the end tag of the dt element <⁄dt> may be omitted if the element is followed next by:
- another dt element OR
- by a dd element
00:39 syntax correct:
- the start tag is present: <dt>
- the end tag has been omitted: <⁄dt>, ALLOWED since the dt element is followed next by a dd element
00:43 if you want to define the draggable term then dt element is no longer followed next by the dd element BUT by the dfn element

→ the end tag of the dt element is required!
00:48 syntax wrong:
- the start tag is present: <dt>
- the end tag is absent: <⁄dt>, NOT ALLOWED since the dt element is followed next by the dfn element instead of the dd or dt element
00:55 syntax correct
dt intro dt browser display dt parents - children