Forums

  • # February 26, 2013 at 11:33 am

    I’m currently working with an outdated CMS that contains the following DOCTYPE,

    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    Is it okay to use HTML5 tags anyway?

    # February 26, 2013 at 11:42 am

    Is there some reason why you can’t change the doctype?

    Obviously to support older IE you will have to use the shim/shiv if you do.

    # February 26, 2013 at 11:44 am

    Sadly, there’s no way for me to change it, I would if I could.

    # February 26, 2013 at 12:13 pm

    I **THINK** all the HTML5 tags need is for an HTML doctype to be declared…. I don’t think it matters what it is.

    As I said though, IE8/(9?) will need the shim/shiv.

    # February 26, 2013 at 12:44 pm

    Yes of course, I will include the shim/shiv. Thanks for the info!

    __
    # February 26, 2013 at 11:04 pm

    Correct – the only purpose a doctype serves is to trigger “standards mode” (i.e., “not quirks mode”). *Any* doctype that starts with `< !doctype html `... will do that in all major browsers. Browsers don't even care what comes after. (In fact, that’s how the html5 doctype was decided upon – it’s the minimum markup required to trigger standards mode.)

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag