//STYLE: Capitalizing tags

Be a stylish programmer

Some people dance, and some people dance with style. A dancer with style may be able to get work as a dancer, but not without it.

The same thing is true in programming. Some people make code that works, and some people make code that is elegant and humanly legible. One person is employable and the other isn't. There are other effects as well: it is really hard to maintain crappy code. I speak from experience: there have been times when I went back to update code from years ago and had hardly any idea how it worked. In most cases it took a long time to rewrite it.

Trust me: start writing code with good style now.

Always write HTML tag codes in lowercase

Your browser will render your pages whether or not they are in uppercase HTML, lowercase html, or a mix of both htML. That is not a problem.

But humans will read your code, too.

<!-- good style means using lowercase for HTML tags -->
<h1>Are we the Baddies?</h1>
    What's so good about a sickle?
    Well, nothing.
    And if there's one thing we've learn in the last thousand miles of retreat 
    it's that Russian agriculture is in dire need of mechanisation.
<!-- bad style means using UPPERCASE for tags -->
<H1>The Final Countdown</H1>

    Have you tried turning it off and on again?
<!-- horrible style is when you mix them both -->

<h1>Won't you have some tea, Father?</H1>
    <strong>Ms. Doyle:</STRong>
    Ah go on!<br>
    Go on, go on, go on, go on!<BR>
    Go on, go on, go on, go on, go on, go on, go on...<br>
    Go on!