Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MOD YOU UPP

macrumors newbie
Original poster
Jul 21, 2010
13
0
I have a Firefox extension called HTML validator that checks the HTML of websites using the W3C validation engine, and I have noticed that almost no high traffic site uses valid (x)HTML. Examples: Youtube, Google, Wikipedia, Yahoo, Facebook, Twitter, etc. Actually, I haven't found one of Alexa's top 500 that uses valid HTML. Why is this?
 

grapes911

Moderator emeritus
Jul 28, 2003
6,995
10
Citizens Bank Park
My company's site isn't valid XHTML. Nor are many of the web applications we sell. It ended up being a cost-benifit issue. The site worked fine in all major browsers even though it wasn't valid XHTML. It was determined that no benefit would be gained from trying to make it fully valid.
 

wheezy

macrumors 65816
Apr 7, 2005
1,280
1
Alpine, UT
Major sites are hard to keep under control, and a lot of the content is generated on load by code written by Programmers, who in my experience have lousy syntax discipline. Not all, but a lot. PHP/Ruby is their specialty, not HTML.

Me personally, I hate when my code doesn't validate.
 

laurim

macrumors 68000
Sep 19, 2003
1,985
970
Minnesota USA
If a site includes items from a third-party, like visitor tracking or ads, that site will probably not validate. Flash will also make it fail if you're not careful to embed with the right method. When validating a site, you have to look at the actual errors and determine whether it is something you can reasonably fix or not. Sometimes things are not under your control and you have to give up on the idea of true validation.
 

definitive

macrumors 68020
Aug 4, 2008
2,049
893
because having a site do what you want it to do, and work properly is different from having your website perform well under a benchmark. it's like running your system through 3dmark benchmarks: it will compare your system against other systems, and how well it can perform, but those results will be irrelevant if all you use your system for is web browsing and notepad/textedit.
 

BertyBoy

macrumors 6502
Feb 1, 2009
326
0
You will find an overwhelming majority of the worlds English-speaking citizens cannot even articulate correct English, and you expect them to be able to write PHP which generates valid XHTML ?

The primary issue may be cost, that any fool with no training, can produce HTML. These fools rise to become IT managers who devise coding standards and guidelines after "reading it in books".

I've seen with my own eyes a yeam of 4 such "experts" take two years to produce a set of programming standards that amounted to 17 do's and don'ts, some conflicting with others, some from OO languages, some from procedural languages, all cherry-picked from a selection of programming and IT management books.
 

emiljan

macrumors 6502
Jan 25, 2010
330
0
Michigan
Web Standards are becoming more strict, so one day all of those non-valid websites will fail to work properly.
 

laurim

macrumors 68000
Sep 19, 2003
1,985
970
Minnesota USA
Web Standards are becoming more strict, so one day all of those non-valid websites will fail to work properly.

I don't think that'll happen any time soon. What's the incentive? There's really no one in charge of web standards. The WWW Consortium is only suggestive of standards, they don't control anything. Browsers are more consistent in their interpretation of things like what padding and margins mean but I don't know of any effort to force people from using tables for layout, not embedding flash without using the Satay method and other stuff like that that usually causes validity issues.
 

Fuchal

macrumors 68030
Sep 30, 2003
2,603
1,057
I sat in on some discussions at MIT attempting to "decide" future web "standards", and the more I listened, the less respect for web standards I had.
 

splitpea

macrumors 65816
Oct 21, 2009
1,133
395
Among the starlings
I find a lot of the time the culprit is not the programmer, but text copied and pasted from Word into WYSIWYG editors like TinyMCE. Ick.

But then, I'm OCD about syntax and semantics.
 

KimKnox

macrumors newbie
Oct 1, 2010
10
0
OK
Because they use different people to accomplish some coding segments and they have variations on the coding style, and also they have time deadlines to different projects, and they must reach them. And it doesnt matter if it's valid or not.

Personally i do like websites validation, i also code valid html, because it's a plus for my customers.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.