Quackit Logo
HTML
CSS
Scripting
Database
Hosting
Design
XML
IMCreator - Free Website Builder

HTML doctype

The information on this page is based on HTML version 4.01 (which is the current version of HTML). The next version, HTML 5, is currently being written. Here's a list of HTML 5 tags.

The HTML !doctype tag is used for specifying which version of HTML the document is using. This is referred to as the document type declaration (DTD).

The HTML document type declaration starts off with <!doctype html public, followed information on the HTML specification that the document conforms to.

HTML 5

HTML version 5 uses a simplified !doctype declaration (compared to previous versions). Here it is:

Code

HTML 4

HTML 4.01 has 3 possible doctypes: HTML 4 Strict, HTML 4 Transitional, and HTML 4 Frameset. Every HTML 4 document you create should have one of these three DTDs. The DTD you use will depend on how strict you want your HTML to be and whether you are using frames or not.

HTML 4 Strict

This document type includes all HTML elements except those that have been deprecated, and those that appear in frameset documents.

Code

HTML 4 Transitional

This document type includes all HTML elements including those that have been deprecated.

Code

HTML 4 Frameset

This document type includes all HTML elements in the transitional DTD as well as those in framed document.

Code

Also see the HTML 5 version of HTML tags

Enjoy this page?

  1. Link to this page (copy/paste into your own website or blog):
  2. Link to Quackit using one of these banner ads.

Thanks for supporting Quackit!