<!DOCTYPE>

Form

<!DOCTYPE>

Explanation

The !DOCTYPE tag specifies the type of HTML document/XHTML documant. In HTML document, it is no problem not to describe the system identifier (the part to indicate the URL where the DTD is stored). However, the Internet Explorer 5 for Mac may alter the interpretation whether to describe the system identifier (in HTML 4.01 Strict).
attribute description
HTML4.01 transitional mode <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
HTML4.01strict mode <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
HTML4.01 frameset mode <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
HTML3.2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
XHTML 1.0 transitional mode <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 [STF] Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
XHTML 1.0 strict mode <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 [STF] Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
XHTML 1.0 frameset mode <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 [STF] Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
XHTML 1.1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
XHTML Basic <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">

Related Tags

html

Sample Code [Output]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<title>Sample</title>
</head>
<body>
<h1>Sample</h1>
<p>
HTML documents are enclosed by html tags.
</p>
</body>
</html>