thead ... ⁄thead syntax
Syntax thead
- start tag required: <thead>
- end tag optional IF...: <⁄thead>
<⁄thead> optional IF...:
- thead element is immediately followed by a tbody element Syntax 1 OR
- thead element is immediately followed by a tfoot element Syntax 2
Examples thead syntax
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <!doctype html> <> <> <>...</> </> <> <> <>...</> <>... <> ... </> ... </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | <!doctype html> <> <> <>...</> </> <> <> <>...</> <>... <> ... </> <> ... </> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <!doctype html> <> <> <>...</> </> <> <> <>...</> <> ... </> ... </> </> </> |
Video demonstration thead element, syntax
HTML5 thead element, syntax Tutorial
min | video details |
---|---|
00:04 | video tutorial: thead element, syntax |
00:10 | adding thead element in page |
00:15 | thead element has: - a start tag: <thead> - and an end tag: <⁄thead> |
00:22 | <⁄thead> end tag may be omitted if the element is immediately followed by a tbody or a tfoot element, like this: |