3 ms·
Except 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 L
by bodhi 17y ago
Except 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