tbody ... ⁄tbody syntax
Syntax tbody
- start tag <tbody> optional IF...:
- is the first thing inside after which if a is present then it's ending tag is Required :
→ Syntax 1: OK, the start tag has been omitted: tr element is the first element inside tbody and no thead, tbody tfoot follows it next
→ Syntax 2: OK, the start tag of the first tbody element has been omitted: tr element is the first element inside tbody, a tbody follows it next but its end tag is present
→ Syntax 3: Invalid, the start tag of the first tbody element has been omitted: tr element is the first element inside tbody, a tbody follows it next BUT its end tag is absent - end tag <⁄tbody> optional IF...:
- tbody element is immediately followed by another tbody element Syntax 4 OR
- tbody element is immediately followed by a tfoot element Syntax 5 OR
- there is no more content after tbody element inside the parent element, table Syntax 6
Examples tbody syntax
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <!doctype html> <> <> <>...</> </> <> <> <> <> </> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <!doctype html> <> <> <>...</> </> <> <> <> <> </> <> <> </> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <!doctype html> <> <> <>...</> </> <> <> <> <> </> <> <> </> </> </> |
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 | <!doctype html> <> <> <>...</> </> <> <> <>...</> <> ... <> ... </> </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <!doctype html> <> <> <>...</> </> <> <> <>...</> ... <> ... </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <!doctype html> <> <> <>...</> </> <> <> <>...</> <> ... </> </> </> </> |
Video demonstration tbody element, syntax
HTML5 tbody element, syntax Tutorial
min | video details |
---|---|
00:04 | video tutorial: tbody element, syntax |
00:09 | adding tbody element in page |
00:14 | tbody element has: - a start tag: <tbody> - and an end tag: <⁄tbody> |
00:19 | <⁄tbody> end tag may be omitted when tbody element is immediately followed by another tbody or tfoot element, like this: |