The closing li tags were optional in HTML, up through middle-to-late 1990s. This is no longer true for any even remotely recent version of HTML. The last several versions of HTML are XML document types, so all tags must be closed. Don't live in 1998: close your tags.