SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,656
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    HTML5 doctype today?

    Or whatever they are calling it. I did some reading around. Quite a few places say that we can use the doctype today and that it is backwards compatible. Like here http://ejohn.org/blog/html5-doctype/. To be clear, this question is only about using the doctype not the other new tags.

    Have any of you used this yet and done any extensive cross browser testing? Are there any drawbacks that you are aware of? Thanks!

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,789
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    The doctype is perfectly valid for HTML 2.

    The only thing you can't do when you have a doctype that leaves out the version information is to validate the page as that particular version.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,656
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall View Post
    The doctype is perfectly valid for HTML 2.

    The only thing you can't do when you have a doctype that leaves out the version information is to validate the page as that particular version.
    Thanks felgall. So in other words I won't be able to accurately run my page through the validator? That comes in handy from time to time.

  4. #4
    SitePoint Enthusiast
    Join Date
    Jul 2010
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use it now, have never come across any problems. Browsers use the latest version of HTML anyway no matter what doctype you use

    You can validate against earlier versions by setting the option in the validator, but there's little point in doing so anyway?

  5. #5
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    I've used it in various places. I can't say it's cause any issues so far. But--I code for HTML/XHTML strict anyway.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  6. #6
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,656
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    thanks guys!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •