2 ms·
You don’t need </li> either: > An li element's end tag can be omitted if the li element is immediately followed by another li element or if there is no more co
by chrismorgan 4y ago
You don’t need </li> either:
> An li element's end tag can be omitted if the li element is immediately followed by another li element or if there is no more content in the parent element.
— https://html.spec.whatwg.org/multipage/grouping-content.html#the-li-element https://html.spec.whatwg.org/multipage/grouping-content.html...
(Note also that “self close” is the wrong description; that’s the XML <element-name/> trailing slash feature, which doesn’t work in HTML syntax outside of SVG and MathML. This is end tag omission.)