Skip navigation
Currently Being Moderated

Question about Doc Type

Sep 28, 2011 6:42 AM

Tags: #html_code_writing

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. 

 
Replies
  • Currently Being Moderated
    Sep 28, 2011 6:55 AM   in reply to fourwhitesocks

    As far as I have noticed, html5 does not have a DOCTYPE declaration.  so your opening tag would simply be "<html>".

     

    But I would check with w3schools about that to be sure.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 28, 2011 7:19 AM   in reply to fourwhitesocks

    Well, I was a bit mistaken.  there is actually a doctype declaration:

     

    http://www.w3schools.com/html5/tag_doctype.asp

     

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 28, 2011 8:37 AM   in reply to fourwhitesocks

    Hi

     

    This is the html5 doctype -

    <!doctype html>

     

    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.

     

    PZ

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 8, 2012 8:32 PM   in reply to pziecina

    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

     

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

     

    HTML5 New Doctype Syntax

     

    <!DOCTYPE html>

     

    Follow the link below for complete article:

     

    http://www.phpzag.com/new-html5-doctype/

     

    Message was edited by: phpzag.com

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 9, 2012 2:17 PM   in reply to 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.

     

    http://phpflow.com/html5/what-is-doctype-in-html/

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

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