DOCTYPE is short for Document Type. When you declare the HTML DOCTYPE, you tell the browser which version of HTML that a Web page uses. The doctype declaration refers to a Document Type Definition (DTD). field indicates whether the identifier is a publicly accessible object (PUBLIC) or a system resource (SYSTEM) such as a local file or URL.The DTD specifies the rules for the markup language, so that the browsers can render the content correctly. HTML/XHTML DTDs are specified by PUBLIC identifiers. This is called a DOCTYPE declaration. Because there are multiple versions of HTML, browsers use the DOCTYPE declaration to determine how to render the page.
Typical HTML DOCTYPE statement:
Code:
<!DOCTYPE HTML PUBLIC "-// W3C// DTD HTML 4.0 Transitional// EN" >
Bookmarks