DocType and DOM

What is DocType? What is DOM?

Questions by raghumedia

Showing Answers 1 - 3 of 3 Answers


  • Jan 22nd, 2012

The docype declaration was only used by SGML - based tools like HTML valuation which needed to determine which version of html a docktype used as the rules for the markup language, so that the browser declaration refer to a document type definetion(dtd)..

The DocType declaration helps a document to identify its root element and document type definition by reference to an external file, through direct declaration.It helps in specifying certain attributes such as the versions of XHTML or HTML that is being used.These Doctype lets the browser know the type or version of the HTML tags which is being used in the HTML file.

DOM is an application programming interface (API) for HTML and XML documents.It defines the logical structure of documents and the way a document is accessed and manipulated.Using DOM the programmer can do any manipulations to the content.The Document Object Model is the way JavaScript sees the browser state and the HTML page it contains.

  Was this answer useful?  Yes


  • Jul 7th, 2012

DOM - API for HTML. It represents a web page as a tree. In other words, DOM shows how to access HTML page.

DOCTYPE is used
1) for validation, ""
2) specifies the version of HTML. If doctype is omitted, browser renders a web page in quirks mode.
Quirks mode emulates behavior of old browsers (old box model).

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions