<!doctype> HTML Tag
In this article I explain the <!doctype> HTML Tag.
The HTML !doctype tag is used to specify in which version we work means in which version we are using the HTML document. The is referred to as the document type declaration. This tag starts with <!doctype followed by the three possible doctype: HTML 4 Strict,HTML 4 Transitional and HTML 4 Frameset. The HTML document that we create should have one of these DTDs.
HTML 4 Strict
This document type includes all HTML elements except those that have been deprecated, and those that appear in frameset documents.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
HTML 4 Transitional
This document type includes all HTML elements including those that have been deprecated.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
HTML 4 Frameset
This document type includes all HTML elements in the transitional DTD as well as those in framed document.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
Ask Your Question
Got a programming related question? You may want to post your question here