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

  2. #2
    Registered User
    Join Date
    Nov 2018
    Posts
    46
    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
    Registered User
    Join Date
    Feb 2019
    Posts
    1,587
    <!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.

  6. #6
    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).

  7. #7
    Registered User
    Join Date
    Nov 2016
    Posts
    133
    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.

  8. #8
    Senior Member
    Join Date
    Jul 2017
    Location
    Bangalore
    Posts
    226
    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.

  9. #9
    Registered User
    Join Date
    Mar 2019
    Location
    Ahemdabad
    Posts
    17
    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/

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

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

  12. #12

  13. #13

  14. #14
    Senior Member
    Join Date
    Apr 2019
    Location
    Asia
    Posts
    135
    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!

  15. #15
    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">

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.