Fix invalid HTML

Fixes an issue where `li` tag was closed before `a` tag. Also separated the lines for better visibility of these types of issues.