HTML5 or XHTML Transitional is good ?

Discussion in 'Search Engine Optimization' started by prince@life, Aug 7, 2013.

  1. #1
    I've corrected my site with xHTML transitional validation check using validator.w3.org

    but after sometime, my one friend suggested me to improve my site score for HTML5 validation too. he said that it works well now for many sites and good to rank in Google too !

    Is that true ? that to get a good #1-#10 rank in Google, we must have a valid HTML5 coding on our site? So, Google consider this or not ?

    Which one i may choose ? xHTML Transitional or HTML5 ?
     
    prince@life, Aug 7, 2013 IP
  2. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #2
    Your friend doesn't know what he is talking about.


    Only use html5 doctype if you are actually using html5 elements.

    And why are you using xthml transitional? This isn't 1997 - if you are still using deprecated code, you should consider updating your knowledge or a choose another job.

    Use XHTML1.0 strict (or HTML 4.01 strict)
     
    GMF, Aug 8, 2013 IP
  3. prince@life

    prince@life Notable Member

    Messages:
    278
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    225
    #3
    Actually i am using one WordPress theme, that have xHTML transitional declaration in <html> tag. :(
    by the way, i know HTML5 very well, that's why i have confusion about that.
     
    prince@life, Aug 8, 2013 IP
  4. treka3358

    treka3358 Active Member

    Messages:
    47
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    93
    #4
    I've never heard anything about google preferring html5 sites but there is no real reason not to use an html5 doctype unless you have a legacy need.
     
    treka3358, Aug 8, 2013 IP