Google Doesn’t Validate
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:
- Add a doctype, such as XHTML 1.0
- Add a terminator / for the meta, br, and img tags
- Add type attributes for script and style tags
- Quote nonliteral attribute values like #ffffff nearly everwhere
- Make javascript events lowercase, so onLoad becomes onload
- 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.

Add New Comment
Viewing 13 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Add New Comment
Trackbacks
(Trackback URL)