Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's also not a tag, but an SGML (?) directive (specifically a https://en.wikipedia.org/wiki/Document_type_definition) and so it is in fact invalid to produce a closing tag.


HTML5's HTML syntax is no longer SGML-based. It's still invalid but no longer because of anything related to SGML; now it's simply because the HTML5 spec says so.





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

Search: