Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 19499 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > HTML 5 Interview Questions > In HTML 5, what is the declaration of th ...

In HTML 5, what is the declaration of the doctype ?

Interview question and answer by: Akiii | Posted on: 6/23/2012 | Category: HTML 5 Interview questions | Views: 803 | | Points: 40
Ads
Ads


Answer:

<!DOCTYPE html>


The above declaration tells the browser that the version of the html is 5.

In the previous version of the html that is 4.0. We used to write the doctype as :-

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


In HTML 5, we don't need to write lengthy doctype declaration similar to html 4.


Thanks and Regards
Akiii

Found interesting? Add this to:


>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Akiii

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 6/19/2013 8:58:02 PM