Does your webpage uses valid Document Types

Advertisement
Post Pic

The above title of the article comprises that whether your website uses the best doctype while developing a webpage.

When we open a new HTML page in Dreamweaver the very first line depicts all about the DOCTYPE, then the question arises to a beginner developer what is this DOCTYPE all about. Yeah here is the answer DTD (Document Type Definition) defines the basic syntax of a web page in Standard Generalized Markup Language (SGML). The document type declaration should be the first line in an XHTML document. Basically we have 3 doctype declarations those are depicted below:

  • STRICT
  • TRANSITIONAL
  • FRAMESET

Strict:

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

Transitional:

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

Frameset:

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

Related Entries...

You Might Like:

Advertisement

Please let us know your feedback about the article through the comments section below, we want to hear from you about our website. And your comment / advice may help us to serve you better in upcoming articles.

Thank You!
Vivekanand [Founder of DeveloperSnippets]

Leave Your Response

* Name, Email, Comment are Required

Write For Us

Online Sponsors

Start Foreign Exchange Trading today with the Forex Affiliate Program and also you can have access Online Forex News to know what happens every single moment.


Forex Floor


Switch to our mobile site