Archive for November, 2007
Why validate HTML?
Monday, November 19th, 2007In a recent blog posting - Er validering verdiløst? - Chrisitian Johansen argues that it is important to create valid HTML and that valid HTML is a good indication of high quality code.
I agree that although valid HTML in itself does not guarantee a good product, it is important to write valid HTML. Both for your own and for other developers’ sake. In some cases, it might even affect the user experience.
Someone has to maintain the front-end code base, and valid HTML is most def. important when it comes to maintaining HTML/CSS/JavaScript and supporting all kinds of browsers/clients.
Valid HTML is also much more likely to be accessible HTML (although other factors, such as using Semantic HTML are more important) and might also play a role in SEO. It might also prove important for future use of existing code.
Further, validating your HTML may help you by pointing out unintended and/or unnoticed mistakes, and thus spare you hours of work, especially when dealing with design implementation (CSS) and cross-browser compatibility issues. At least the kind of errors that are under your control.
A point I’d like to add to the discussion, is how many programmers realize the importance of well-written back-end code — clean, easy to read, (correctly) object-oriented, using well-known patterns, sleek algorithms, etc. — while they have no problem ignoring the part of the application code base that is actually exposed to and open for the rest of the world to see. Way too often, too little effort is put into making the front-end code as good as that of the back-end systems. In my opinion, both things are equally important. </rant>.
Ash - Folken, Stavanger
Sunday, November 18th, 2007Quote of the Day
Wednesday, November 7th, 2007The following quote is taken from MSDN’s “How to Optimize a SharePoint Server 2007 Web Content Management Site for Performance“:
Best practices in CSS
[...]
Elements should be positioned with CSS 2, not tables
Makes me wonder whether MS devs read MSDN articles…
Or not.



