answersLogoWhite

0


Best Answer

An HTML DOCTYPE defines which version of the language you are using, and let's the browser act accordingly.

The DOCTYPE in an HTML document is an idea borrowed from XML. The DOCTYPE file defines the rules that the language has to follow. By making sure you've declared the doctype in an HTML document, you let the browser know how you're expecting that HTML to be treated. In an ideal environment, adding a doctype will allow you to be sure of exactly how the code will be rendered by the user's browser.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the significance of DOCTYPE in HTML document?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is Doctype?

An identifier in the HTML document, that tells to the browser which type of HTML it needs to use to show contents of that document. Specifying different versions of HTML will result in different behavior of the document. If the type hasn't been specified at the beginning of HTML document the browser might load it slowly or even with the errors. Usage: <!DOCTYPE HTML /*Here goes type of the document specification (DTD)*/>


What is document tag in HTML?

HTML does not have a DOCUMENT tag. The closest thing it has is DOCTYPE, which specifies which specification of HTML (there are several versions) is being used for that page.


Which elements are mandatory in an XHTML document?

doctype, html,head, body, and title


What is doctype HTML public w3cdtd HTML 401 transitionalen httpwwww3orgtrHTML4loosedtd?

That's the DocType for HTML 4.01. It is normally used at the very beginning of an HTML 4.01 document to tell the browser what version of HTML it should use to render the page.


What tag determines the type of HTML that a browser expects?

The !DOCTYPE tag tells the browser what markup to expect in the rest of the document.


What is the first tag in every HTML document?

The HTML document begins,and ends with the tag . The element defines the whole HTML document. The element has a start tag and an end tag The Start element Tags within the HTML tags begins the content to be displayed for the web page (end body tag) The basic Tags needed to start an HTML document (and must be ended) look like this: This is where the content goes


What is doctype HTML public -w3cdtd HTML 4.01 transitionalen httpwwww3orgtrHTML4loosedtd?

This is the Document Type Definition that should be the beginning of any HTML document. Generally, there is Transitional, Frameset and Strict.The declaration (technically it's not a "tag") should be the very first thing in your document... if you choose to use it at all. tells the browser what version of HTML you are writing in.More specifically, declares that this document conforms to a specific version of HTML, and specifies what version that is.


What tags are used inside head?

The whole Doctype tag in html 4 is shortened in html 5. Say in html 4 you saw some code like this at the top: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Now you just use <!DOCTYPE html>


What are the five steps involved in migrating from HTML to HTML5?

There is not much in migrating from HTML to HTML5. You have to include the DOCTYPE in the html tag.


What does DOCTYPE mean?

The term DOCTYPE tells the browser which type of HTML is used on a webpage. In turn, the browsers use DOCTYPE to determine how to render a page. Failing to use DOCTYPE or using the wrong DOCTYPE may load your page in Quirks Mode. AchieversIT Training Institute.


Title in HTML?

A HTML document's title refers to the text that appears in the tabs on a surfer's browser, basically it is the name of the page. The tag to set the title goes in the HEAD section of the HTML document, you add the tag: <title>Your Title Goes Here</title> Again, this belongs in the head, so like this: <!doctype HTML> <HTML> <head> <title>Your Title Goes Here</title> </head> <body> Page content here </body> </HTML>


What must you place on the first line of an XHTML document?

a <!DOCTYPE>declaration