Skip navigation
Jefferzgee
Currently Being Moderated

XHTML 1.0 Transitional vs. HTML5 which to use?

Dec 14, 2012 10:51 PM

Most of the tutorials that I've been looking at suggest using HTML5, and the default for Dreamweaver CS6 is XHTML 1.0 Transitional.  

 

Thanks in advance!

 
Replies
  • Currently Being Moderated
    Dec 15, 2012 2:49 AM   in reply to Jefferzgee

    HTML5

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 15, 2012 9:23 AM   in reply to Jefferzgee

    HTML5 but with some improvising for IE8.  The best is to have all your documents to start with something like this:

     

     

    Then you can mix and match your code to see what is suitable for your target audience.  As you may know that IE8 was the stumbling block to reach any agreement as to what should be the standard HTML for the 21st century!!!  HTML5 is still not the Standard though most recent browsers have incorporated some of it.

     

    However, it is fair to say that HTML5 is here to stay.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 15, 2012 10:40 AM   in reply to Jefferzgee

    You need to include a link inside a conditional comment to the HTML5 shiv.js to force pre-IE9 browsers to recognize  HTML5 tags <aside> <header> <footer> <audio> <video> etc...  Otherwise, they will be ignored by older browsers.

    http://code.google.com/p/html5shiv/

     

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 15, 2012 11:28 AM   in reply to Jefferzgee

    I typically add my shiv link under the <title> tags. But you can add it anyplace between the <head> and </head> tags.  The link below refs the shiv script hosted on Google's CDN:

     

    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js">
    </script>
    <![endif]-->

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 4, 2013 3:57 PM   in reply to Nancy O.

    Just to clarify because I'm a little dense, if we add the "shiv" inside the head tags, then HTML5 will be compatible with earlier versions of IE?

     

    If so, it that the recommended way to go when designing a website-- to use HTML5 with the shiv, rather than transitional XHTML?

     

    Thanks!

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 4, 2013 4:08 PM   in reply to calpolyjeff

    You can start using <!doctype html> (the HTML5 doctype) even without 'shiv'.

     

    'shiv' is only used to allow IE<9 to recognise HTML5 semantic elements such as header, article and aside.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 4, 2013 4:50 PM   in reply to Ben Pleysier

    Thanks-- I think there are a lot of people in my target web audience that will still be using Windows XP/IE8, and I want the website to work for them. I like the features in HTML5, though, so I guess I'll use the shiv and march on.

     

    On a related topic-- is there a way to have Dreamweaver mimic IE8 as one of the browsers available for viewing, just as a way to test backward compatibility?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 4, 2013 5:00 PM   in reply to calpolyjeff

    Get this multi-IE Tester

    http://my-debugbar.com/wiki/IETester/HomePage

     

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 4, 2013 5:07 PM   in reply to Nancy O.

    Cool! Thanks Nancy!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (1)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points