By Martin / (X)HTML & CSS / Wednesday March 10th, 2010 / No comments
Many times I hear people say that their pages "validate, but still won't display right". However, it is important to remember that validation only checks a page's adherence to a particular document type declaration, and whether they are syntactically well-formed as a markup document.
Validators don't somehow also magically determine whether the page is actually constructed to display an aesthetically pleasing image, or the "correct" one that the developer expects to appear, and they definitely can't tell how well a HTML document will display across various browsers. That is something that developers have to figure out themselves.
Nevertheless, if a page is invalid, then it is impossible to say how a certain user agent will interpret the content, and multiple quirks are likely to appear as the parser attempts to make sense of your technically mangled code - and by then, it's not very easy to proceed to creating a correctly-rendered page, either. So validation does matter when you are creating markup documents, but it is entirely possible to create perfectly valid documents that still look really strange when actually rendered.
∎
I hope you enjoyed reading this article. If you wish, you may view some of the other recent or popular things I have written, or subscribe to receive RSS updates. You can also add a comment, or share this article on Twitter or Facebook, below.
Website copyright © Aspektas 2009 - 2010 Valid XHTML 1.0 Strict and CSS 2.1