DEV Community

Discussion on: How to Develop HTML (the right way)

Collapse
 
alohci profile image
Nicholas Stimpson • Edited

On point 2, it's worth noting that the traditional way to write tag names was uppercase. Although HTML syntax has always been case-insensitive for tag names, the vast majority of examples in all the standards up to and including HTML 4.01 used uppercase.

Lowercase only became the fashion when XHTML was introduced. XHTML is case-sensitive and only lowercase tag names are valid. Devs who tried to use XHTML correctly, which was common at one time (although most failed) were therefore forced to switch to using lowercase. The HTML5 standard continues this practice and most examples there use lowercase tag names.

Collapse
 
sno1ukno profile image
Jordan Snow

Hats off, sir. You just taught me something. Interesting to know that, it shows a lot about the evolution of these languages. I use a lot of react and if someone started capitalizing my first letters on the html tags, I'd have a headache. 😁