Hacker News new | past | comments | ask | show | jobs | submit login

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.




that 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...


I am aware.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: