The li
element has an end tag (</li>
), but it’s optional in some cases:
An
li
element’s end tag may be omitted if theli
element is immediately followed by anotherli
element or if there is no more content in the parent element.
The li
element has an end tag (</li>
), but it’s optional in some cases:
An
li
element’s end tag may be omitted if theli
element is immediately followed by anotherli
element or if there is no more content in the parent element.