Forums

twentyten theme DOCTYPE declaration doesn't include a DTD (3 posts)

  1. Graham Stoney
    Member
    Posted 2 years ago #

    I've just about got my development site working the way I want using the twentyten theme, and I'm doing some validation testing using the Firefox HTML Validator Add-on.

    I was getting a stack of validation errors until I noticed that the <DOCTYPE> declaration is missing a DTD reference. That seems to be setting a bad example; does anyone know why this is missing in twentyten theme, and whether I'm going to encounter any problems setting it to:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ?

    Thanks,
    Graham

  2. Twentyten complies with the HTML5 standard, so the DTD isn't required.

    Try the W3C validator at http://validator.w3.org/

  3. ldeleo
    Member
    Posted 2 years ago #

    And how do older browsers such as IE6 handle that? And how about IE7, 8, FF2, etc... Does it send it them in quirks mode? I think that since the HTML 5 spec is still a work in progress it's a bit premature to start doing this isn't it?

Topic Closed

This topic has been closed to new replies.

About this Topic