Doctypes

suggest change

Introduction

Doctypes - short for ‘document type’ - help browsers to understand the version of HTML the document is written in for better interpretability. Doctype declarations are not HTML tags and belong at the very top of a document. This topic explains the structure and declaration of various doctypes in HTML.

Syntax

Remarks

The <!DOCTYPE> declaration is not an HTML tag. It is the document type declaration. In HTML 4.01 it referenced a document type definition (DTD). The HTML5 doctype does not, and it does not select a “version” beyond standards mode.

The <!DOCTYPE> declaration is NOT case sensitive. To check if the HTML of your Web pages is valid, go to W3C’s validation service.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents