The world of the web designing, web development and other web design tutorials.

Slider (DO NOT EDIT HERE!)

Thursday, 12 June 2014

Html Document Type Declaration

html document


Hi friends welcome back after the basic of html tags i  am going to discuss some important thing ( Doctype declaration) i think it is essential for every one let's explain the document type declaration.

Also read: Introduction to html.
Also read: HTML basic tags.

What is document type declaration?

  1.  Document type declaration is kind of instruction to tell the browser which version of html and xhtml we are using.
  2. In html document we use document type declaration refer to DTD ( Document Type Definition) because html is based on SGML. The DTD indicate the rule of markup languages.
  3. With document type declaration understand how to show the content on webpage.
  4. Always use the document type declaration in this way the browser show your content properly on the webpage.
Types of document type declaration;
There are three types of document type declaration of html as well as xhtml.

  1. Strict.
  2. Transitiona.l
  3. Frameset.

Document Type Declaration In Html (4.01);


STRICT
This type of declaration consists of html element and attributes, but does not include presentational or deprecated elements. Frameset not supported in this type of declaration.
                  
           < !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML4.01//EN"
              "http://www.w3.org/TR/html4/strict.dtd"
TRANSITIONAL;
 This type of declaration consists of html element and also including presentational or deprecated elements. Frameset not supported in this document type declaration.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
FRAMESET
This type of declaration consists of html element and attributes, including presentation and deprected elements. Framset is supported in this declaration.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">

DOCUMENT TYPE DECLARATION IN XHTML (1.0)


STRICT;
This type of declaration consists of html element and attributes, but does not include presentational or deprecated elements. Frameset not supported in this type of declaration.
It is important to write in well-formed xml.
                  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
TRANSITIONAL;
 This type of declaration consists of html element and also including presentational or deprecated elements. Frameset not supported in this document type declaration.
It is important to write in well-formed xml.


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

FR AMESET;
This type of declaration consists of html element and attributes, including presentation and deprecated elements. Frameset is supported in this declaration.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> 
Conclusion;
Now you know about the document type declaration and always try to use document type declaration.
Please remember us in your prayers and don't forget to share our post with your friends.THANKS! 

0 comments:

Post a Comment