Just learning so stick with me...
My quesstion is: If I am making a new site in Dreamweaver and plan on using some of the new HTML5 features like for example the easier way to apply CSS to rounded corners, or drop shadows; should my Doc Type be HTML5 when I first make the site? I'm using Dreamweaver CS5.5.
But when I begin my site in Dream Weaver do I need to choose html5 from the dropdown menu next to DocType in the New Document window that pops up right after you choose File then New (when very first starting the site in DreamWeaver)....if I plan on using any of the new html5 features? Thank you!
Well, I was a bit mistaken. there is actually a doctype declaration:
and if you follow the steps you mentioned using the drop-down menu in CS5 (I can't troubleshoot CS5.5 yet) then you will choose HTML5 which will match what you see in the above link I provided.
This is the html5 doctype -
But you do not have to use html5 for any css features.
html5 adds new semantics and its own html5 api to browsers, and has nothing to do with css. The use of html5 to include css3 features such as rounded corners is purely for marketing.
HTML5 requires a doctype to be specified to ensure that the browser renders the page in standards mode. The doctype has no other purpose and is therefore optional for XML. Documents with an XML media type are always handled in standards mode.
Traditional HTML Doctype Syntax
HTML5 New Doctype Syntax
Follow the link below for complete article:
Message was edited by: phpzag.com
A doctype is refers to a Document Type Definition (DTD) and declaration of the HTML.It is an instruction to the web browser about what version of HTML the page is written in.The DTD specifies the rules for the markup language, so that the browsers render the content correctly based on HTML version.
Europe, Middle East and Africa