Register on the forum now to remove ALL ads + popups + get access to tons of hidden content for members only!

Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 10-24-2017, 03:40 AM   #1
paulbrighton
Registered User
 
Join Date: Jun 2014
Location: 742 N. Mentor Ave. Pasadena, CA 91104
Posts: 318
What is the importance of the HTML DOCTYPE?

What is the importance of the HTML DOCTYPE?
paulbrighton is offline   Reply With Quote

Old 10-27-2017, 04:55 AM   #2
BryceBrady
Registered User
 
Join Date: Oct 2016
Posts: 776
The doctype declaration should be the very first thing in an HTML document, before the tag. The doctype declaration is not an HTML tag; it is an instruction to the web browser about what version of the markup language the page is written in. The doctype declaration refers to a Document Type Definition (DTD).
BryceBrady is offline   Reply With Quote
Old 11-05-2017, 11:50 PM   #3
Martinricky
Registered User
 
Join Date: Aug 2015
Posts: 454
Doctype help browser understand if the page is written using strict, transitional or frameset type html. Depending upon this declaration the page code will be validated in w3c validator.

Also doctype is necessary to make few elements of html work properly. It is an idea practice to include the doctype in your html page.
Martinricky is offline   Reply With Quote
Old 11-07-2017, 01:25 AM   #4
thevyakar
Registered User
 
Join Date: Nov 2017
Location: USA
Posts: 113
The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in.
thevyakar is offline   Reply With Quote
Old 11-17-2017, 01:53 AM   #5
Shalini001
Registered User
 
Join Date: Oct 2017
Posts: 51
The doctype declaration should be the very first thing in an HTML document, before the tag. The doctype declaration is not an HTML tag; it is an instruction to the web browser about what version of the markup language the page is written in. The doctype declaration refers to a Document Type Definition (DTD).
Shalini001 is offline   Reply With Quote
Old 03-15-2018, 04:14 AM   #6
albertomorrison
Registered User
 
Join Date: Dec 2017
Location: Santa Clara, California, USA
Posts: 91
The doctype declaration should be the first thing in an HTML document, before the html tag.
The doctype declaration is not an HTML tag: it is an instruction to the web browser about what version of the markup languages the page is written in.
The doctype declaration refer to a document type Definition (DTD). The DTD specifies the rules for the markup languages so that the browsers can refer the content correctly.
albertomorrison is offline   Reply With Quote
Old 03-17-2018, 12:30 AM   #7
smmexpertss
Registered User
 
Join Date: Sep 2015
Location: UK
Posts: 625
In HTML 4.01, the <!DOCTYPE> declaration refers to a DTD, because HTML 4.01 was based on SGML. The DTD specifies the rules for the markup language, so that the browsers render the content correctly. HTML5 is not based on SGML, and therefore does not require a reference to a DTD.
smmexpertss is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the importance of Doctype in HTML? shwetachouhan General Discussion 0 08-01-2017 03:07 AM
Importance of HTML. noahwilson HTML / DHTML 47 05-25-2017 02:42 AM
HTML (Hypertext Markup Language) ehsanagar HTML / DHTML 3 10-06-2016 02:15 AM
Define HTML DOCTYPE. noahwilson HTML / DHTML 6 04-22-2015 05:56 AM
1.Basic distinguishing features of HTML 4 and HTML 5 rooseveltjobs HTML / DHTML 0 04-12-2012 10:00 PM


All times are GMT -7. The time now is 09:17 AM.


Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.