4 ms·
In modern browsers all modern HTML5 is valid XHTML so long as it conforms to the syntax and tag structure. In fact the only real difference, aside from closing
by austincheney 8y ago
In modern browsers all modern HTML5 is valid XHTML so long as it conforms to the syntax and tag structure. In fact the only real difference, aside from closing tags like br and img, is that with XHTML the browser yells at you when you get HTML wrong.
On my personal sites I send all my HTML with a .xhtml file extension to force XML compliance, but the code is modern HTML5.
- y4mi 8y agothat is wrong. this is valid html5 for example: <ul> <li>content <li>content2 </ul> quick google got me this blog post: https://blog.teamtreehouse.com/to-close-or-not-to-close-tags-in-html5 https://blog.teamtreehouse.com/to-close-or-not-to-close-tags...
- austincheney 8y agoI am aware.