Results 1 to 7 of 7
  1. #1

  2. #2
    Senior Member
    Join Date
    Aug 2015
    Location
    India
    Posts
    138
    The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in.

  3. #3
    Registered User
    Join Date
    Apr 2014
    Posts
    44
    A document type declaration, or DOCTYPE, is an instruction that associates a particular SGML ... declared to be html and, therefore, it is the first tag to be opened after the end of the doctype declaration in this example and the next ones, too.

  4. #4
    Senior Member
    Join Date
    Apr 2019
    Location
    Asia
    Posts
    146
    In HTML 4.01, the <!DOCTYPE> declaration refers to a DTD, because HTML 4.01 was based on SGML.
    HTML5 is not based on SGML, and therefore does not require a reference to a DTD.
    ServersBase.Com- sales@serversbase.com
    █ SSD cPanel Web Hosting LiteSpeed MariaDB CloudLinux & MultiPHP!
    Solutions Tailored To Your Requirements For Unbeatable Agility.
    █ Fully Managed Cloud Instances, Daily Backups & Active Monitoring!

  5. #5
    Registered User
    Join Date
    Dec 2016
    Location
    Mumbai
    Posts
    165
    Thank for your interest

  6. #6
    Registered User
    Join Date
    Apr 2019
    Posts
    62
    All html document must start with <!doctype> declaration.
    The declaration is not an html tag.
    It is an information to the browser about what document type to expect.
    It is not case sensitive.
    In older version we did have to write like this : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    Now we can write only this <!DOCTYPE HTML>.

  7. #7
    Registered User
    Join Date
    Jun 2020
    Location
    Edison USA
    Posts
    15
    In a simple way yo say the HTML document type declaration, also known as DOCTYPE, is the first line of code required in every HTML or XHTML document.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.