Forum Moderators: open

Message Too Old, No Replies

How important is Validated Code?

Validated code and Search Placement

         

bwnbwn

7:43 pm on Jan 31, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have been wondering how important it is to validate your code and the search engines, as I did <snip> and man it is loaded with errors, fact is I can't really find a site that will validate. Just wondering as I have seen here to validate your code first, is this just a bygone thing?

[edited by: encyclo at 7:51 pm (utc) on Jan. 31, 2006]
[edit reason] no example sites please [/edit]

wrgvt

7:56 pm on Jan 31, 2006 (gmt 0)

10+ Year Member



Are you trying to open a can of worms or what? :)

For me, validated code means it *should* work in all browsers, but we know that's a pipe dream. At least it gives you the best chance of that happening. The bottom line is how your page is rendered by the different browsers. If having an error in your code doesn't affect it, then don't lose sleep over it. If the validator spits out errors because your links use & instead of &amp; then don't worry about it.

I start with a template for each of my web pages, and in the process of entering content and some HTML tags, I occasionally make a mistake. Often it's obvious and I fix it. Often it slips through and goes unnoticed. The page renders correctly in Explorer and Firefox, so I don't think to validate. The original template validates, but I don't run every page generated from it through. I probably should, but I probably should floss every day too.

When a page doesn't render correctly and it's not obvious, I run it through the validator, smack my hand against my forehead when I see the problem, and fix it.

tedster

8:02 pm on Jan 31, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



is this just a bygone thing?

No, it's a thing that has never been, so far.

It's a credit to the web itself and browser developers that anything at all shows up on screen, given the general level of html on the web.

The idea of valid code has not been a concern of most developers (or even wysiwyg editors) to date. It's actually a concept that is just now on the cutting edge -- and in fact, most corporate developers I talk to have still never heard of the W3C or a DTD.

mona

8:17 pm on Jan 31, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's actually a concept that is just now on the cutting edge -- and in fact, most corporate developers I talk to have still never heard of the W3C or a DTD.

Pardon if I'm being too harsh, but that is pretty pathetic. I'm a hack webmaster who uses open source templates and then I alter them to my liking. And even I validate my code.

how important it is to validate your code and the search engines

bwnbwn, my answer to your question would be that it is impotant. Not for ranking, but to help get your site fully indexed. You want to make it as easy as possible for the bots to spider your pages.

Don_Hoagie

9:14 pm on Jan 31, 2006 (gmt 0)

10+ Year Member



Are you trying to open a can of worms or what? :)

Right... you don't want to even bother answering a post like this(no offense bwnbwn, just that this question seems to get asked here every month), but... daaaaah, you can't help it! If it converts one more person, it's worth the effort.

To add to the great points made by the previous posters, to me it's just "the right thing to do". Not only do you pollute the web by not designing with standards in mind(meaning that browser and web-based app developers have to clean up after YOU when they're developing software), but you perpetuate a very malicious mindset in designing systems, which is "just throw it together so it works... don't worry about how it's built". A web site is indeed an information system... when someone is incorrectly designing or bloating the code of a site, they run the risk of it coming back to bite them (or likely the next designer) in the arse when new needs arise for the site. It's like anything in life that gets built: if you build it to withstand any conceivable future scenario, it will be successful. If you build it just well enough that it looks like the blueprint... well, you'll just have to hope that no one ever asks too much of the site.

walkman

9:20 pm on Jan 31, 2006 (gmt 0)



>> How important is Validated Code? Validated code and Search Placement

search for anything and test the site that #1 whether their code validates or not. In 98% of cases it will not be validated.

Frequent

9:26 pm on Jan 31, 2006 (gmt 0)

10+ Year Member



And to show how important it is to Google... last time I checked, any page with adsense on it won't validate.

Granted it's been a while since I checked. Feel free to correct me.

Freq---

victor

9:30 pm on Jan 31, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



search for anything and test the site that #1 whether their code validates or not.

I just tried it on 10 words/phrases that are commercially important to me.

All the No 1 sites validated.

(They are all my sites.)

I don't have a death wish, so I have no compulsion to deliberately introduce bugs that may cause my site to be skipped or downgraded by important search engine spiders.

It may be that the big sites in other areas have been lucky. Or they may have spend megabucks R&Ding the deliberate bugs that are useful vs the ones that are not.

But all you can really say on doing your research sample is that certain bugs (the ones in the 98% of pages you have looked at) are benign.....You can't safely say that all deliberately inserted bugs are safe.

walkman

10:01 pm on Jan 31, 2006 (gmt 0)



>> I just tried it on 10 words/phrases that are commercially important to me.

I bet that validation has NOTHING to do with your ranking, even though being validated is better.

Rodney

10:05 pm on Jan 31, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To me "validation" seems mostly hyped by designers and coders who would prefer things would be done "correctly", however I haven't seen any real world proof that says that an invalid website won't rank the same as a validated or or get indexed any differently.

Of course if there are glaring errors in your code, your page is not likely to render correctly in the browser, but there are a lot of ways a page can be "invalid" and spending the hours tracking down each error and fixing them could be better spent promoting your website or building content.

There are LOTS of invalid pages on the web (both from large corporations and smaller independent site owners) that rank just fine and get indexed perfectly.

gendude

10:21 pm on Jan 31, 2006 (gmt 0)

10+ Year Member



There are LOTS of invalid pages on the web (both from large corporations and smaller independent site owners) that rank just fine and get indexed perfectly.

And this is why I don't worry about it - as long as my site is indexing properly, and looks good in the top 4 or 5 browsers, I'm not going to worry about it.

It's like asking about whether or not we should design for 1024x768 users or 800x600 users. Okay, it's not really like that, but it opens up just as big of a can of worms :-)

encyclo

10:25 am on Feb 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I bet that validation has NOTHING to do with your ranking

Actually, I agree to a certain extent. I don't think validation has any positive effect, but the lack of validation could potentially have a negative effect. You can download three dozen browsers and test your page in all of them, but Googlebot et al are user agents too, and important ones at that, and you can't test your pages with them.

When you have invalid markup, you just don't know how the bot will handle it. Some errors such as missing end quote marks can stop a following phrase of section of content to be skipped or ignored by the bot - which has serious consequences if that content contains your most important keywords.

Validation is not a panacea, but is a measure of cluefullness. If the markup validates, then if you are ranking badly you can at least discount the possibility that your markup is the cause of the problem.

tulip

2:42 pm on Feb 1, 2006 (gmt 0)

10+ Year Member



Validation and standards is all about accepting a set of generally accepted rules in order to make things easier for everyone, now and later. Code that validates is more likely to cope with future browsers/browser builds as well.

victor

9:11 pm on Feb 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



walkman
I bet that validation has NOTHING to do with your ranking, even though being validated is better.

I wouldn't be so sure......I pretty convinced that validared code is a significant competitive advantage.

As encyclo says, my competitors may be having parts of their pages missed by the spiders as those parts are mis-read as comments or quoted strings.

Plus, why should I take extra time to insert deliberate bugs into my code when I do not know what effect those bugs will have?

I use tools I trust that generate clean code. Anyone using a sloppy tool that produces buggy code is taking a business risk: what other things is the tool doing wrong?

That risk may be small, and the competitive advantage may be small too. But small percentages add up: validated code, sensible linking structure, spell-checked content, accessiblity aids, cross-browser operation, etc: each alone may be worth only one position in the SERPs, but the whole set makes a difference.

bwnbwn

9:19 pm on Feb 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I will let all know what happens to the site as I am in the process of validating it sitewide, I have validated Home page, contact page, privacy policy and some more. I have a e commerce site and it is all in HTM no data base but for search for products. I have several thousnads products but use a page generator to make them then upload. All the code in text with descriptions etc. I have gotten to the point of getting add the product to the cart coded correctly so it validates. This has to say the least been a very good learning experience and I have spent allot of time getting the code on my pages validated. It is a very hard task matter of fact gave up once but the Lord pushed me back into it and showed me how to get through the task. I have been Blessed with very good search engine placement for some tough keywords, it will be very intresting to see were this leads and will come back and let you know. I thought since I am doing this might as well redesign the site pages as well. All Url's remain the same just different look and feel.

rocknbil

7:45 am on Feb 2, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have been wondering how important it is to validate your code...

The W3C explanation [validator.w3.org] sufficiently answers this question for me, and I look at search engine indexing and placement as a separate issue. As is clearly expressed in this thread, even invalid code can make you a buck.

truezeta

8:21 am on Feb 2, 2006 (gmt 0)

10+ Year Member



I will admit when I started building my site, it was all about “looks and content.” I didn’t know a thing about validation. Now after hanging around WW, I am starting to realize the can of worms I have opened up for myself. I am not a programmer, I am a clinical social worker! However, I want my content to be accessible for EVERYONE. Right now my website only works in IE and opera. Not very accessible in other words. I am taking the time to learn programming language so I can get my site to the level it needs to be accessible through all browsers. I put a lot of heart in my work, and I want my content available for the people who need it. I can’t do that without a validated site. So for me, it is very important!

And yes my site comes up in search, but that doesn't matter if the site is not being shown properly.

victor

8:24 am on Feb 2, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As is clearly expressed in this thread, even invalid code can make you a buck.

I think it is more accurate to say:

  • some errors do not matter
  • some do

    So if you intend to deliberately insert bugs into your HTML, ensure they are the bugs that do not matter, not the ones that do.

    Part of the problem is that there is no list of which bugs matter and which do not. So anyone inserting a bug is taking a risk with their livelihood.

    It's a bit like saying: "some faults in a airplane engine still allow it to fly safely; therefore fixing any problem with an engine is a waste of time."

  • rd123

    4:04 pm on Feb 2, 2006 (gmt 0)

    10+ Year Member



    Not even the mighty google is valid html or xhtml, and i think google's doing pretty alright isnt it.

    Lobo

    4:15 pm on Feb 2, 2006 (gmt 0)

    10+ Year Member



    I don't think invalid mark up has much if anything to do with ranking? much more to do with valid tags and content ...

    truezeta's problem is another issue ... your site has to be cross browser compatible.. you can do this and still have invalid mark up ... it also depends on what you mean by EVERYONE ... if you are talking blind, partially sighted or color blind... then you have a major problem if at present it is not even working cross browser...

    check at [webxact.watchfire.com...]

    Brett_Tabke

    4:17 pm on Feb 2, 2006 (gmt 0)

    WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



    I try to keep things close to validating. My trouble is everything is dynamic and coming from a dozen scripts to generate a page. That makes debugging and validating very tough.

    > webxact.

    that is plain dumb:

    WebXACT is a free online service that lets you test single pages of web content for quality, accessibility, and privacy issues.

    Page URL:

    Show Advanced / Accessibility Options ¦ Terms of use

    WebXACT may not fully support your browser.

    At this time WebXACT has been tested with the following browsers:
    Internet Explorer (version 5.5 or later)
    Netscape (version 6.01 or later)
    Mozilla

    that does not inspire confidence.

    Lobo

    4:27 pm on Feb 2, 2006 (gmt 0)

    10+ Year Member



    lol .. right enough ...

    It's been a while since I've had to use Bobby .. it looks like it's gone all corporate .. it used to be free .. looks like a take over and sales model now :-(

    MrSchmidt

    5:01 pm on Feb 2, 2006 (gmt 0)

    10+ Year Member



    In my opinion, if validating was important, then webpage editors (wysiwyg editors)would make it so you couldn't do something to make it invalid. Why do html editors allow invalid code to be used in the first place?

    Lobo

    5:18 pm on Feb 2, 2006 (gmt 0)

    10+ Year Member



    ooo! guess who just opened a can of worms ;-)

    tbear

    5:33 pm on Feb 2, 2006 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



    Phew, I'm glad those who are not too bothered by invalid code are not gas fitters ;)

    There is little reason not to validate, as I see it.

    Another can of worms ;)

    In my opinion, if validating was important, then webpage editors (wysiwyg editors)would make it so you couldn't do something to make it invalid. Why do html editors allow invalid code to be used in the first place?

    Firstly, I believe HTML editors and WYSIWYG editors are two different things.
    Secondly, WYSIWYG editors are a little like paint by numbers kits, it is better, in my opinion, to hand write the code, or at least check it by hand, if using a WYSIWYG. They are not an excuse for not understanding the basics of HTML, except perhaps in an amateur application.
    My two centimos.... :)

    jessejump

    5:42 pm on Feb 2, 2006 (gmt 0)

    10+ Year Member



    >>>>> Phew, I'm glad those who are not too bothered by invalid code are not gas fitters ;)

    Web pages are not brakes on your car or neurosurgery; they are documents. They can't hurt anybody.

    If publishing to the Web required a test of validation at the door, there would be 500,000 pages on the web today.

    Lobo

    6:16 pm on Feb 2, 2006 (gmt 0)

    10+ Year Member



    And here come the handcoders ;-) lol

    Almost like a wave of evangelists ...

    I know it seems important to you, it justifies your existance.. let's just say it is more to do with balance .. and focus .. the focus being on the selling/productivity/traffic etc .. code has it's part, but I think you will find that more people will go to a site that is more giving them what they want than a site that is well oiled but lonely ...

    It's a balance .. it always is, content V's File size .. design V's technical ... information V's delivery etc etc ...

    Complete validation is not the be all and end all.. IMO

    bedlam

    6:29 pm on Feb 2, 2006 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    Something that--to my surprise--no one has mentioned specifically yet is consistency and predictability. This is vitally important when you're building sites for other people, but also very important for DIY webmasters who'd rather work on other aspects of the site than the possibly rather dull coding part.

    If you generate valid code in the first place, you spend far less time debugging your pages to get them to render similarly from browser to browser.

    It's the interoperability! And it only gets more important as different devices start being used to access webpages. I run one low traffic site in a not-at-all techy area and I've started to see handheld useragents in the stats.

    This was a complete surprise to me, but because of the way the site is coded (without css, it works pretty well as a text document), it does reasonably well in some of the tiny, underpowered handheld devices--and this is true in spite of the fact that I've never tested for handheld browsers (except to the extent that I've tested it for Opera), and I have no idea about their various error-handling strategies or how, specifically, they cope with malformed code.

    -b

    netmeg

    6:46 pm on Feb 2, 2006 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



    I try to validate most of my pages now - didn't bother with it until recently. I find it helps me find errors, unclosed tags, and other garbage quickly. It's also helpful in that it somewhat exercises my brain cells and keeps me from taking lazy shortcuts in my code that likely won't work everywhere. I've been doing HTML for over ten years now, but never had a client actually REQUIRE validation until a gig I took this past month.

    As far as rankings - near as I can tell (out of a sample of maybe 20 sites so far) it hasn't done a darn thing with regards to Google, but it has seemed to help in Yahoo and MSN. YMMV.

    And as of this morning, one of my own personal sites (which has AdSense) validates perfectly well - although as I mentioned in another post somewhere, I can't get it to display properly in Safari no matter what I do.

    victor

    10:51 pm on Feb 2, 2006 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    Not even the mighty google is valid html or xhtml, and i think google's doing pretty alright isnt it.

    The mighty google doesn't care about a lot of things.

    The mighty google has never spent a moment worrying about its SERPS ranking in google or any other search engine.

    The mighty google has never spent a moment trying to get links from other websites.....Just the opposite in fact: it spends all day giving links to other websites.

    The mighty google has never spent a penny on buying adwords or equivalent programs with other search engines.

    The mighty google is not a good example in this instance, I think.

    This 41 message thread spans 2 pages: 41