Elliott C. Back: Technology FTW!

Google Doesn’t Validate

Posted in Google by Elliott Back on May 14th, 2005.

Has anyone ever noticed that Google doesn’t validate, and doesn’t even have a doctype declaration?

Here’s a minimal set of changes to get Google’s homepage up to speed:

  1. Add a doctype, such as XHTML 1.0
  2. Add a terminator / for the meta, br, and img tags
  3. Add type attributes for script and style tags
  4. Quote nonliteral attribute values like #ffffff nearly everwhere
  5. Make javascript events lowercase, so onLoad becomes onload
  6. Replace topmargin attribute with CSS margin style

You can see a validating copy here. Also, compare with the validation of any MSN search page: validator.w3.org/check?uri=http://search.msn.com/results.aspx?FORM=MSNH&srch_type=0&q=something

This entry was posted on Saturday, May 14th, 2005 at 7:58 pm and is tagged with css margin, type attributes, img tags, doctype declaration, javascript events, google, style tags, ffffff, search msn, msn search, search page, terminator, validation, meta, br. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback.

Viewing 13 Comments

 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus