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!
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.
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.
Thanks so much. Being a complete newb here, do I include: <link href=... before the script?
<link href="styles.css" media="screen" type="text/css" />
<!--[if lt IE 9]>
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]-->
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-- 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?