Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1

  2. #2
    Registered User
    Join Date
    Nov 2018
    Posts
    45
    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. 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.

  3. #3
    Registered User
    Join Date
    Jan 2019
    Posts
    24
    The <!DOCTYPE> declaration must be the very first thing in your HTML document, before the <html> tag.
    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.
    In HTML 4.01, the <!DOCTYPE> declaration refers to a DTD, because HTML 4.01 was based on SGML. The DTD specifies the rules for the markup language, so that the browsers render the content correctly.
    HTML5 is not based on SGML, and therefore does not require a reference to a DTD.

  4. #4
    Registered User
    Join Date
    Feb 2019
    Location
    Indirapuram
    Posts
    10
    It is not doctype it is "!DOCTYPE". This is an instruction to the web browser to tell in what version the HTML web page is written.

  5. #5
    Junior Member
    Join Date
    Dec 2018
    Location
    Mohali, india
    Posts
    8
    A document type declaration, or DOCTYPE, is an instruction that associates a particular SGML or XML document (for example, a webpage) with a document type definition (DTD) (for example, the formal definition of a particular version of HTML1.0 - HTML 4.0).

  6. #6
    Registered User
    Join Date
    Nov 2016
    Posts
    134
    Many people think this is a HTML tag. First of all this is not the HTML tag. It is just a message or instruction to web browser about what version of HTML page that you have written.

  7. #7
    Registered User
    Join Date
    Mar 2019
    Location
    Ahemdabad
    Posts
    16
    The <!DOCTYPE represents web browser which version is the HTML page been written in.It is declared first in the html document.

    Following is an example to understand better:

    <!DOCTYPE html>
    <html>
    <body>

    <h1 style="color:Blue";>HTML Document </h1>
    <p style="color:Pink";>This is paragraph</p>

    </body>
    </html>


    nopcommerce solution provider: http://www.ifourtechnolab.com/nopcom...merce-solution
    Last edited by Drasti_Chavda; 03-25-2019 at 07:10 AM.
    .NET Developer At iFour Technolab Pvt Ltd
    http://www.ifourtechnolab.com/

  8. #8
    Registered User
    Join Date
    Oct 2018
    Location
    Singapore
    Posts
    36
    DOCTYPE (also known as DTD), is short for document type declaration. DocTypes are a key component of compliant web pages.

  9. #9
    Registered User
    Join Date
    Apr 2014
    Posts
    43
    DOCTYPE tell the browser what type of document is. DOCTYPE html tell to browser.

  10. #10

  11. #11

  12. #12
    Senior Member
    Join Date
    Apr 2019
    Location
    Asia
    Posts
    146
    The !DOCTYPE declaration, what it is, and how to use it in your document. Includes a list of doctypes to cut and paste into your HTML.
    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!

  13. #13
    Registered User
    Join Date
    Apr 2019
    Location
    Thaltej, ahmedabad.
    Posts
    13
    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.

    There are subtle differences between different "standards complaint" rendering doctypes, such as the HTML5 doctype (<!DOCTYPE html>, prior to HTML5 only known as the "skinny doctype" which not trigger standardised rendering in older browsers) and other DOCTYPEs such as this one for HTML 4.01 transitional:

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

  14. #14
    Many of people thinks that <!DOCTYPE> is one the HTML tag but it's not . It's a information given to Web Browser about the version of HTML page that you are working on.

  15. #15
    Member
    Join Date
    Jan 2019
    Location
    New York
    Posts
    45
    The DTD specifies the rules for the markup language, so that the browsers render the content correctly. HTML5 is not based on SGML, and therefore does not require a reference to a DTD. Tip: Always add the <!DOCTYPE> declaration to your HTML documents, so that the browser knows what type of document to expect.

Page 1 of 2 12 LastLast

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.