Saturday, August 28, 2010

Creating Valid HTML Documents Means Cleaner Code and Easier Maintenance


Learning to validate your HTML is an important step for most designers. By writing valid HTML you ensure that your pages are standards compliant and will run on the most user agents and web browsers.

Building web pages isn't hard. With the software that is available now, you can write your web page and have it up and viewable in half an hour or less. And with these tools, why would you need to run an HTML validator on your HTML to find errors? Well, you don't have to, but if you want your pages to stay viewable through future versions of HTML, or you want newer browsers to be able to display it correctly, then writing valid HTML is the place to start.


There are several specific reasons for writing valid HTML, and using an HTML validator to insure that what you write is valid:

Compatibility with future versions of HTML and web browsers
As browsers evolve, they come closer and closer to supporting the standard HTML as written by the W3C. Even if they don't fully support the most recent version of HTML, the browser builders go in and make sure that they are compliant with older versions of the standard. If you are writing non-standard HTML, there is a chance that as browsers evolve, they will no longer support your web pages. A good example of this is a trick that some web developers used with an older version of Netscape. If you included multiple body tags with different colors, Netscape would load them all in succession creating a fade-in or flicker effect as the page loaded. This trick no longer works, as it relied on an incompatibility of the browser.
Accessible to Your Current Audience
Unless you know for a fact that your entire audience is using a specific browser, you are setting your site up to annoy some of your readers if you make it inaccessible to them through invalid or non-standard HTML. Many HTML validators will check your HTML for browser specific entities and alert you to their use. Browser specific HTML can be part of the standard or not a part of the standard. Don't assume that just because only one browser supports something it's non-standard. Or if multiple browsers support it, that it is part of a standard. For instance, HTML 5 is supported by Safari, Opera, Chrome, and Firefox, but it is not yet a recognized standard.
Reduce Unexplained Errors
I am often asked to look at web pages for people to tell them why the code is doing something strange. I can usually come back in just a few minutes and tell them what is wrong. Why? It's not because I know HTML inside and out, it's because I run their page through an HTML validator. This usually points out a problem with the HTML, that, when fixed, solves their problem as well.
HTML Validators
There are a lot of validators available. You can get ones that are run on your computer, embedded into your HTML editor, or online on your live web pages.

38 comments:

  1. Steam or turning cleaners for floor coverings utilize a genuinely mellow items so they are a great decision. Be that as it may, you can even now abuse them so pursue the headings cautiously.carpet cleaning NYC

    ReplyDelete
  2. it was a wonderful chance to visit this kind of site and I am happy to know. thank you so much for giving us a chance to have this opportunity.. Pest control Abu Dhabi

    ReplyDelete
  3. I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work. Beg bug Control Abu Dhabi

    ReplyDelete
  4. Disposable nuisance dust masks to protect the wearer from exposure to coarse, non-toxic particles. Molded to the face with an elastic strap. These masks are lightweight so are easy to breathe through and do not restrict the vision.

    n95 coronavirus mask

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. I am really inspired with your writing talent well with the layout to your weblog. Is this a paid topic or did you modify it your self? Anyway stay up the excellent high quality writing, it’s rare to peer a great blog like this one nowadays. new york website design company

    ReplyDelete
  7. I have just seen this at a preview screening in London. web design agency new york

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. This sounds in a way inflammatory pending me…can’t wait for this…thank you! san francisco design agency

    ReplyDelete
  10. Thank you for your very good information and respond to you. used car in san jose sf design agency

    ReplyDelete
  11. contact lens are not only for fashion but it can also protect your eyes from dust and UV radiation., web design la

    ReplyDelete
  12. Bloghopping is really my forte and i like to visit blogs”    los angeles web design

    ReplyDelete
  13. These kind of post are always inspiring and I prefer to read quality content so I happy to find many good point here in the post,writing is simply great,thank you for the post. web design agencies los angeles

    ReplyDelete
  14. The application is available free and there is a paid version as well. Twitter Training – Getting started with Twitter Twitter is just another example of the light speed at which communications are catapulting forward, and corporate America (as well as home business online marketers) should do our best to keep up. converting websites

    ReplyDelete
  15. Enjoyed looking at this, very good stuff, thanks . top web design companies

    ReplyDelete
  16. When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get three emails with the same comment. Is there any way you can remove me from that service? Cheers! web design agency

    ReplyDelete
  17. top 10 overseas education consultants in india

    tudying abroad gives an edge to the global viewpoint, career & personality of a student. Choosing the best Overseas Education Consultants in India

    ReplyDelete
  18. By providing comprehensive solution for businesses through its communication and monitoring channels for the entire company, Salesforce application development has proved to be a perfect choice for businesses to reach up to their expectations. lwc interview questions

    ReplyDelete
  19. california pay stub requirements 2021 by the state to ensure compliance. Employees have the right to receive their paystubs.

    ReplyDelete

  20. Sora Solutions Services is a Swiss-based Information Technology company offering DCIM asset management, Monitoring & Real Time Alarming, and Reporting. The DCIM Asset Management solution leverages the capabilities and provides the perfect foundation for securely publishing and managing DCIM data beyond your network. This open and highly flexible solution is accessible from anywhere, from any device and is easy to manage and use. Our fully hosted solution's advanced failover services ensure full ON-DELETE data retention and recovery services, giving organizations added peace of mind.

    ReplyDelete
  21. MLTWorld is a top Pakistan-based mobile specification and price in pakistan site where you will find mobile price and specifications for popular brands like Apple and Samsung, as well as the latest phones, laptops and offers for all price ranges.

    ReplyDelete
  22. Thanks for sharing informative post. Are looking for best Tamil typing tool online, make use of our Tamil typing software to make translation faster. Thirumana Porutham in Tamil | Samacheer Kalvi Books PDF

    ReplyDelete
  23. Beside keeping your home all the more spotless and clean, there are different advantages for your home that can be accomplished from standard cleaning.bed bug heater

    ReplyDelete
  24. Major Thanks for the post. Really thank you! Really Great.
    https://guttercleaningclacton.co.uk/

    ReplyDelete
  25. What's more most purchasers regularly liken cleaning capacity with "power" or "attractions". https://www.westseattlewindowcleaner.com/why-quality-window-cleaning-bellevue-matters

    ReplyDelete
  26. A normal measured covered office of 3000 sq ft would regularly require around 2 hours to clean and will require something like 4 hours to dry. targonca szállítás Debrecen Europa-Road Kft.

    ReplyDelete
  27. Master Data Science with Innomatics Research Labs! Visit us for a comprehensive Data science course in hyderabad . Our teaching methodology stresses on hands-on training along with a strong grasp of theoretical concepts. Our outcome-based, project oriented curriculum will give you in-depth classroom training with over 80 hours of practical training. If you are looking for a flexible training, visit Innomatics, as we will find you a schedule which is suitable to your needs.

    ReplyDelete
  28. Certain product likewise permits the client to change over and combine various PDF records into a solitary document.
    pdf-png.com

    ReplyDelete