1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Doctype and W3C

Discussion in 'HTML & Website Design' started by prowess, Jul 20, 2005.

  1. #1
    I don't know why I hadn't noticed this until my site had been up for 7 months, and most of you probably know, but there is a tag at the top called Doctype. The World Wide Web Consortium (W3C) has a set of rules fro websites to follow so that all browsers can display the content correctly. There is a validator at:
    http://validator.w3.org/
    This tool will help you validate your html. I found that many sites on the net are technically invalid. I have noticed that even yahoo fails. At the same time, yahoo displays incorrectly on my aunt's imac.
    The site also validates CSS files.

    Here's the SEO/webmaster part. If the html is valid, you know that it can be easily read by spiders. Also you know that any browser can read your page and view it correctly.

    BTW I searched to see if this had been addressed, but found nothing.
     
    prowess, Jul 20, 2005 IP
  2. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #2
    An oldie but goodie. I validate all my pages. Also don't forget to validate your CSS too.
     
    RectangleMan, Jul 20, 2005 IP
  3. jared

    jared Peon

    Messages:
    231
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It is always good to have you pages validate. All my recent designs are XHTML 1.0 trans or strict.

    Initially I found it a pain switch over to this new style of web design. By this I mean complex CSS, less tables, more divs etc. But in the end I believe it is for the best.

    Many of my sites I designed a long time ago (like some sites you mentioned) don't validate for whatever reasons. Most of the time its for little reasons.

    The arguement has been on these forums before, some people claim valid sites have a slight advantage while others say it makes no difference. Neither side really has any proof. I would say get in the habit of the latest web design techniques and methods either way. Validation can only help :D

    Cheers
     
    jared, Jul 22, 2005 IP
  4. Corey Bryant

    Corey Bryant Texan at Heart

    Messages:
    1,126
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Adding a DOCTYPE is about the best way to to get more consistent rendering cross-browser
     
    Corey Bryant, Jul 23, 2005 IP
  5. alpha5th

    alpha5th Peon

    Messages:
    102
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Great tool. I tend to forget to use it, but get a reminder every once in a while when someone points out that unless my site validates 100% they won't bother signing up for my sites.

    I understand that there are positives in being standards compliant. Not really sure why some people are so anal about it though.
     
    alpha5th, Jul 24, 2005 IP
  6. Corey Bryant

    Corey Bryant Texan at Heart

    Messages:
    1,126
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #6
    A couple more validators can also be found here
     
    Corey Bryant, Jul 24, 2005 IP
  7. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #7
    Do bear in mind that several components in perfectly valid HTML will fail the W3C validation... W3C is a set of recommendations rather than standards and they have targeted certain HTML elements as "deprecated" -- that doesn't mean you cannot or should not use those elements but they may cause your page to "fail" W3C validation and that in itself doesn't matter at all.

    Anyone who "refuses to sign up at your website because you are not 100% W3C compliant" doesn't know what s/he is talking about and probably isn't much of a loss anyway.

    Also bear in mind that the DOCTYPE declaration is supposed to instruct browsers as to which set of W3C recommendations/"standards" your page is following, so putting an incorrect DOCTYPE declaration at the top of your page won't help.
     
    minstrel, Jul 25, 2005 IP
  8. prowess

    prowess Guest

    Messages:
    159
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
     
    prowess, Jul 25, 2005 IP
  9. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #9
    What browser can't interpret "<center>"?

    I'm not disagreeing with that. Just pointing out that I see frequent posts to the effect of "why does W3C say this code is invalid?" and I'm pointing out that just because W3C has recommended that something be deprecated doesn't make it so... take a look at how old some of those recommendations are and you'll see what I mean.
     
    minstrel, Jul 25, 2005 IP
  10. Googles76

    Googles76 Peon

    Messages:
    664
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #10
    IE
    FireFox
    Opera

    Those 3 browsers are pretty much all you have to worry about. Have a copy of each installed and make sure your site looks good in all of them. It is not that hard to do.
     
    Googles76, Jul 25, 2005 IP
    minstrel likes this.
  11. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #11
    That's pretty much it, Googles... except for the three remaining people still using MACs :D
     
    minstrel, Jul 25, 2005 IP
  12. alpha5th

    alpha5th Peon

    Messages:
    102
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    You're right. Usually I just tell them not to worry as the site works fine. If they don't want to use my service. Fine. Sometimes I'll actually send them on to a "competitor".
     
    alpha5th, Jul 25, 2005 IP
  13. Leffy

    Leffy Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I would add Safari to this list. It doesn't render pages the same as Firefox or Mozilla. You don't have to have a mac, just check out some of the free Safari screenshot websites.
     
    Leffy, Jul 26, 2005 IP
  14. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #14
    Adding Safari will keep those last three people happy... :D
     
    minstrel, Jul 26, 2005 IP