Best Practices

When coding HTML, it is important to note that structure is your friend. Sure, for innovation you need to be able to let go of structure, but when you are drafting code for a website you ought to do your best to ensure that you follow your own set of structured code style.

In my case, it means that I work hard not to have more than 40 characters in any single line of code, so that I can easily read my code from left to right without my eyes crossing and without having to scroll to the right.

Structured coding means that I am religious about consistent indenting. Any nested code gets indented a single level. I also insert blank lines strategically to make the structure of my code stand out a little better. I want to be able to scan through my code with minimal effort, and these spaces provide landmarks.