top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the role of the doctype declaration in reference to XML?

0 votes
308 views
What is the role of the doctype declaration in reference to XML?
posted Jan 2, 2018 by Sathaybama

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The doctype has several purposes in an xml document such as:

  1. It is used for validation purposes of the document.
  2. It helps the browser to tell which version of the markup language was used by the creator.
  3. The doctype helps in rendering a page properly in a browser that is standards compliant.

The doctypes can be differentiated into three major types:

strict doctype declaration : This declaration is used when css is being used to style a page.
transactional doctype declaration : This doctype specification is used if the document consists of any presentational markups.
frames doctype declaration : This is used id the document is present in form of frames.

answer Jan 2, 2018 by Shivaranjini
...