Creating websites is a complicated process and many coders can develop bad practices while creating them. Here’s 5 things not to do while web coding.
Use a transitional doctype
Using the HTML 4.01 “loose” doctype or the XHTML 1.0 Transitional doctype is a bad way to start a website. Instead, code with the strict doctype. Some validation errors are silenced with the transitional doctypes and can cause problems later on.
Write the CSS and HTML simultaneously
When making a website, you should always fully write the HTML markup before even starting on the CSS. If you write them at the same time you can often lose your train of thought and it could take longer than it should to code the website.
Use tables for the layout
Tables were never meant to be used for the layout. Not only do tables make your markup ugly but they render slowly and make your code hard to maintain. Do not use tables for your layout!
Make classes and IDs with capital letters
The CSS can become terribly hard to maintain if you have some capital letters in your classes & IDs. Just don’t do it.
I hope you enjoyed these tips. Am I missing something? Leave a comment below telling me what it is.