Here's some style tips for HTML. Remember these are up to your team, but you should enforce them once they're decided. Think about installing linters in your workflow.
Always close your tags. Most tags have an opening tag and a closing tag
<span></span>. There are some exceptions however. Self-closing tags have a trailing slash. This is optional, so omit it. e.g.
Use double quotes
"" for all attribute values. When you need to put a double quote in an attribute value, use the html character code
<input type="textarea" value=""sarcastic air quotes"">
Specify the page encoding by declaring it in the page head.
<head> <meta charset="UTF-8"> </head>
Use soft tabs with
2 spaces. Never mix spaces with tabs. I use spaces over tabs because tabs aren't always displayed the same size on all devices. Spaces are always spaces.
Lowercase all tag names and attribute names.
<Head Class="site-head"> <DIV></DIV> </HEAD>
<head class="site-head"> <div></div> </head>