Alex Rivera | Logout

Why do some major websites use invalid HTML?

Asked 2010-01-08T19:01:56.347
30

I noticed that many websites, even Google and some banking sites, have poorly-written HTML with no quotes around the values of attributes, or using characters such as ampersands not escaped correctly in links. In other words, many use markup that would not validate.

I am curious about their reasons. HTML has simple rules and it is just mind-boggling that they don't seem to follow those rules. Or do they use programs that just spit out the code?

Edit
Report

1 Answer

10

Google has a good reason for writing bad HTML – every character they strip from the search page will save them probably gigabytes of bandwidth a day.

answered 2010-01-08T19:05:00.100

Your Answer