tr ... ⁄tr syntax
Syntax tr
- start tag required: <tr>
- end tag optional IF...: <⁄tr>
<⁄tr> optional IF...:
- tr element is immediately followed by another tr element Syntax 1 OR
- there is no more content after tr element inside the parent element, tbody in our case Syntax 2 ⁄ Syntax 1 2nd tr
Examples tr syntax
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <!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 | <!doctype html> <> <> <>...</> </> <> <> <>...</> <> <>...</> </> </> </> </> |
Video demonstration tr element, syntax
HTML5 tr element, syntax Tutorial
min | video details |
---|---|
00:04 | video tutorial: tr element, syntax |
00:11 | adding tr element in page |
00:15 | tr element has: - a start tag: <tr> - and an end tag: <⁄tr> |
00:21 | <⁄tr> end tag may be omitted when tr element is immediately followed by another tr element, like this: |
00:27 | <⁄tr> end tag may be omitted if there is no more content in the parent element (e.g. inside tbody in this case) |