HTML Coding Conventions
Web developers are often uncertain about the coding style and syntax to use in HTML.
Between 2000 and 2010, many web developers converted from HTML to XHTML.
With XHTML, developers were forced to write valid and "well-formed" code.
HTML5 is a bit more sloppy when it comes to code validation.
Be Smart and Future Proof
A consistent use of style, makes it easier for others to understand your HTML.
In the future, programs like XML readers, may want to read your HTML.
Using a well-formed-"close to XHTML" syntax, can be smart.
Always keep your code tidy, clean, and well-formed.
Use Correct Document Type
Always declare the document type as the first line in your document:
If you want consistency with lower case tags, you can use: