Does the tag in HTML have an ending tag?

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 the li element is immediately followed by another li element or if there is no more content in the parent element.

Leave a Comment