20 HTML Best Practices You Should Follow

20 best practices that will lead to clean and correct markup

Most of the web pages you encounter is presented to you via HTML, the world wide web’s markup language. In this article, I will share with you 20 best practices that will lead to clean and correct markup.

  1. Always Declare a Doctype
  2. Use Meaningful Title Tags
  3. Use Descriptive Meta Tags
  4. Use Divs to Devide Your Layout into Major Sections
  5. Separate Content from Presentation
  6. Minify and Unify CSS
  7. Minify, Unify and Move Down JavaScript
  8. Use Heading Elements Wisely
  9. Use the Right HTML Element at the Right Place
  10. Don't Use Divs for Everything
  11. Use an Unordered List (<ul>) for Navigation
  12. Close Your Tags
  13. Use Lower Case Markup
  14. Use Alt Attributes with Images
  15. Use Title Attributes with Links (When Needed)
  16. Use Fieldset and Labels in Web Forms
  17. Use Modular IE Fixes
  18. Validate Your Code
  19. Write Consistently Formatted Code
  20. Avoid Excessive Comments

Lubov Cholakova

Lubov CholakovaLubov has been with DMXzone for 8 years now, contributing to the Content and Sales departments. She is bringing high quality content in the form of daily blog updates, reviews, tutorials, news, newsletters,update emails and extensions' manuals. If you have a product that needs publicity or any other questions about the entire DMXzone community, she is the one you can contact.

See All Postings From Lubov Cholakova >>

Comments

Be the first to write a comment

You must me logged in to write a comment.