logoalt Hacker News

psychoslavelast Sunday at 10:50 AM1 replyview on HN

At the end of the day, browsers have to handle most of the invalid atrocities thrown at it.

It doesn't make the code valid according to the specifications.


Replies

vbezhenarlast Sunday at 10:52 AM

My point is that by closing optional tags you can introduce subtle bugs into your layout that might take some time to find and browser won't be of any help. You write closing tag, browser will implicitly add starting tag. It's better to memorise which tags are optional and do not close them at all.

show 2 replies