According to w3c and tags are optional, so the following table is perfectly valid.
-
2020-12-05 23:24
Close all tags in HTML for a few reasons:
- Not closing tags is tolerated, but it is not correct modern XHTML. It's deprecated much in the same way that HTML style attributes are in favor of CSS
- It's more readable for the next guy if you close the tags
- Browsers will actually have an easier time parsing your source if it more strictly adheres to the rules, even if that makes the source longer