HTML li tag can be used inside ul or ol tags. Its closing tag is optional and it makes html more readable and less verbose. So it can be safely omitted. Here is what spec says:
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.