dt ... ⁄dt syntax
Syntax dt
- start tag required: <dt>
- end tag optional IF...: <⁄dt>
<⁄dt> optional IF...:
- dt element is immediately followed by another dt element Syntax 1a OR
- dd element is immediately followed by a dd element Syntax 1b
Examples dt syntax
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <!doctype html> <> <> <>...</> </> <> <> <>... <>... </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <!doctype html> <> <> <>...</> </> <> <> <>... <>... </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <!doctype 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 |