The li element has an end tag (</li>), but it’s optional in some cases:
An
lielement’s end tag may be omitted if thelielement is immediately followed by anotherlielement 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
lielement’s end tag may be omitted if thelielement is immediately followed by anotherlielement or if there is no more content in the parent element.