4 ms·
Yeah saw some code yesterday it's a wonder a browser accepts <LI><br> <LI><br> <LI><br> It's stupid how a browser will parse just about anything.
by robryan 17y ago
Yeah saw some code yesterday it's a wonder a browser accepts
<LI><br>
<LI><br>
<LI><br>
It's stupid how a browser will parse just about anything.
- bodhi 17y agoExcept that your example is valid HTML 4.01/5. Closing tags are optional. Also, "Be conservative in what you emit, and liberal in what you accept" - Postel's Law: http://en.wikipedia.org/wiki/Robustness_principle http://en.wikipedia.org/wiki/Robustness_principle [edit]: I'm incorrect, some closing tags are optional, </li> being one of them. for HTML5: http://www.whatwg.org/specs/web-apps/current-work/#generate-implied-end-tags http://www.whatwg.org/specs/web-apps/current-work/#generate-...
- deleted 17y ago[deleted]
- robryan 17y agommm bad example then, also according to the spec it's valid to have a <li> without a <ul> or related tag, didn't know that