Need to validate HTML code

Discussion in 'HTML & Website Design' started by pinder, Oct 11, 2012.

  1. #1
    Hello Everybody I am in a critical need, actually I am try to validate index page of my website http://sikhi.sm in validator.w3.org
    while doing so, I have been able to validate html code and successfully removed all the error but, still it showing 1 warning,
    Passed, 1 warning(s) what's hell is this warning is about, I want to remove it, please help and tell me what it this warning for?
    page to validate is http://sikhi.sm and the validator is http://validator.w3.org
     
    pinder, Oct 11, 2012 IP
  2. kanikaseo

    kanikaseo Member

    Messages:
    38
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    28
    #2
    The warning "Using experimental feature: HTML5 Conformance Checker." means that the validator is checking your markup as HTML5, but since the w3c hasn't agreed on every part of the HTML5 standard, you should take what the validator says with a grain of salt, because it is prone to change until the standard is complete. The warning does not mean that there is anything wrong with your code, but if you want to get rid of the warning, try validating with a Doctype of "HTML 4.01 Strict".
     
    kanikaseo, Oct 16, 2012 IP
  3. Histopathlab

    Histopathlab Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Warning doesn't mean error.
     
    Histopathlab, Oct 16, 2012 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    kanikaseo is on the money -- it's warning you about using HTML 5... It's a good warning too since the specification is in flux.

    NOT that I see any legitimate reason to use that fat bloated steaming pile of a "specification" as there's little to nothing real world you can't do with HTML 4.01 Strict or XHTML 1.0 Strict. It's why I advise against using a specification not even out of draft on websites.

    Though looking at the gibberish markup used to build the page, validation is the least of your worries... Just because it's valid doesn't make it any good, as evidenced by the nonsensical gibberish use of heading tags, unordered lists inside tables on elements that aren't even lists, single LI lists, endless pointless classes for nothing on just about every element, bold tags on non-bold type elements (book titles, company names, etc)...

    Hence the 41k of HTML to deliver 4.5k of plaintext -- most likely anywhere from four to six times as much markup as should be needed on such a simple layout.

    ... and that's before talking the accessibility train wreck caused by the fixed metric (px) fonts and insufficient handling of width.

    ... and of course said code proving just how stupid/pointless HTML 5 validation is since there's no way in hell this would validate as 4.01 STRICT, since it's basically HTML 3.2 with a 5 lip-service slapped on it. Go progress! With the complete lack of ANY HTML 5 features being used on the page, I'd just slap a 4 transitional doctype because that's EXACTLY what you have here -- code in transition from 1997 to 1998 coding practices.
     
    deathshadow, Oct 16, 2012 IP