MyBlogHelp– A Blog for Digital Marketing, Affiliate Marketing, Organic Lead Generation.
  • Home
  • About
  • Contact
  • Privacy
  • Sitemap
  • BLOG
  • AFFILIATE MARKETING
    • LeadsArk
  • MORE
    • MAKE MONEY
      • ONLINE BUSINESS
      • ADSENSE
      • AFFILIATE MARKETING
    • BLOGGING
      • SEO
      • BlogSpot
      • WORPRESS
      • GOOGLE
      • COMPUTER TIPS
    • WEB DESIGN
      • HTML
      • CSS
      • BOOTSTRAP
      • JAVASCRIPT
      • JQUERY
    • WEB DESIGN
      • HTML
      • CSS
      • BOOTSTRAP
      • JAVASCRIPT
      • JQUERY
    • WEB DEVELOPMENT
      • PHP
      • WORDPRESS
  • DOWNLOADS
    • Blogger Template
    • Wordpress Theme
    • PDF

Friday, December 7, 2018

How to use DOCTYPE declaration in HTML?

 MyBlogHelp     December 07, 2018     html     No comments   


HTML <! DOCTYPE>

This is not a tag in HTML. This is called document type declaration. As you can guess by its name, it provides information about the type of document. This information helps the interpreter to organize the webpage in a better way.

 <!DOCTYPE> declaration provides information to interpreter about the HTML version which is used in an HTML document. Many browsers do not support old HTML versions so whenever you create an HTML document, <!DOCTYPE> declaration tells the interpreter what version of HTML you are using.

Whenever an HTML document is rendered in the form of a webpage, it is first checked by the validators whether the HTML document is valid or not. The different validator is used to validate every version of HTML.

<!DOCTYPE> declaration tells the validator that the HTML document is to match with which HTML version. If the validators can't validate the document, then you can't show the webpage.

Whenever you declare <!DOCTYPE> in an HTML document, it must be the first line of the HTML document.

Syntax of HTML <! DOCTYPE>

<!DOCTYPE> is declared differently in every version of HTML. These are being described below.
       
HTML 4.01 <! DOCTYPE> Declaration

      In HTML version 4.01, <!DOCTYPE> is defined in three modes (Transitional, Frameset, and Strict). All elements of HTML are allowed in the Transitional mode, but frame-set is not allowed in this mode.


    Frameset mode is also like transitional mode, but framesets are allowed in it.

    In the Strict mode, all other elements except HTML are presentational elements and framesets are allowed.



XHTML 1.0 <! DOCTYPE> Declaration

     Similar to HTML4, it is declared in XHTML <!DOCTYPE> three modes. These modes apply in XHTML only to those that are in HTML4 but their syntax is different. The syntax of all these modes is being given below.

Transitional


Frameset


Strict



<!DOCTYPE> in HTML5

          In the HTML5, <!DOCTYPE> declaration has been made very easy and simple.

                                       <! DOCTYPE html>      

 A simple example of <! DOCTYPE> in HTML5 is given below.


           Hopefully, this "HTML Tutorial - <!DOCTYPE>” would be helpful for you. If it's so please help your friends and other bloggers to share this post on social media. If you have any question related to the post, please comment on the comment box and also follow this website for more information about the blogging and SEO tips. 


Previous:- How to use Form Tag in HTML?

Next:- How to use Script & Noscript in HTML?





  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Thank you for reading this post. Please do not enter any spam link in the comment box.

Followers

Blog Archive

  • ►  2020 (4)
    • ►  October (1)
    • ►  September (1)
    • ►  August (2)
  • ►  2019 (52)
    • ►  December (1)
    • ►  November (2)
    • ►  October (1)
    • ►  August (1)
    • ►  July (1)
    • ►  May (11)
    • ►  April (10)
    • ►  March (6)
    • ►  February (3)
    • ►  January (16)
  • ▼  2018 (54)
    • ▼  December (27)
      • How to use html5 nav tag?
      • How to install Google Fonts on your Blogger Blog?
      • How to use section tag in html5?
      • How to use meter tag in html5?
      • How to use time tag in html5?
      • How to use header tag in HTML5?
      • How to use figure tag in html5?
      • How to use aside tag in html5?
      • How to use details Tag in HTML5?
      • How to use wbr tag in html5?
      • How to use article tag in HTML 5 ?
      • How to use menu tag in html?
      • How to use base tag in HTML?
      • How to use HTML hr and br Tag?
      • How to use HTML address tag?
      • How to use HTML Meta Tags?
      • How to use HTML script & noscript Tag?
      • How to use DOCTYPE declaration in HTML?
      • How to use Form Tag in HTML?
      • How to use Block and Inline Tags in HTML?
      • How to use Lists in HTML?
      • How to use Image Tag in HTML?
      • How to use Table Tag in HTML?
      • How to use anchor Tag in HTML?
      • How to Format & Style in HTML?
      • How to use Heading in HTML?
      • What is Attribute in HTML?
    • ►  November (5)
    • ►  May (5)
    • ►  April (4)
    • ►  February (3)
    • ►  January (10)
  • ►  2017 (17)
    • ►  December (9)
    • ►  November (8)

Popular Posts

  • How to use the main tag in html5?
  • How to use keygen tag in html5?
  • How to use html5 mark tag to highlight text?
  • How to start Online Business without money from home?
  • What is a search engine?

Contact Us

Name

Email *

Message *

About MyBlogHelp

Most of the posts, we share on this blog related to Affiliate Marketing, Organic Lead Generation, Digital Marketing, Social Media Marketing, Make Money Online, SEO, and web design.

Featured Post

LeadArk - Affiliate Marketing | Qualified Organic Lead Generation | LeadsArk Review

Copyright © MyBlogHelp– A Blog for Digital Marketing, Affiliate Marketing, Organic Lead Generation.
Design by Md. Abdussamad | MyBlogHelp.com