An HTML page begins with a Document Type Definition (DTD), which identifies the specification against which the page should be interpreted. This is followed by the page itself, embedded in HTML tags. Contained within the HTML element are the HEAD element and the BODY element.
The DTD is not an HTML element; it is actually an SGML element. For XHTML, the DTD can be preceded by an XML statement identifying the character set of the document.
The HEAD element contains additional information which is used to interpret the document, as well as information that is used by indexing robots. None of the contents of the HEAD element is normally shown in the browser window proper. The HEAD element is required to contain a TITLE element, which is shown on the title bar of the browser window. The META element used below identifies the character set in which the page is encoded for the HTML versions.
The BODY element contains the information which will be show in the browser window. Since these are blank documents, the body element does not contain anything. (In the case of HTML 4, the specification requires that the BODY element contain something. Below, this is blank paragraph.
<!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML LEVEL 1//EN">
<HTML>
<HEAD>
<TITLE>Blank HTML Level 1 Page</TITLE>
<META HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=utf-8">
</HEAD>
<BODY>
</BODY>
</HTML>
<!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML 2.0//EN">
<HTML>
<HEAD>
<TITLE>Blank HTML 2 Page</TITLE>
<META HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=utf-8">
</HEAD>
<BODY>
</BODY>
</HTML>
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Blank HTML 3 Page</TITLE>
<META HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=utf-8">
</HEAD>
<BODY>
</BODY>
</HTML>
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
<TITLE>Blank HTML 4 Transitional Page</TITLE>
<META HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=utf-8">
</HEAD>
<BODY>
</BODY>
</HTML>
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE>Blank HTML 4 Strict Page</TITLE>
<META HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=utf-8">
</HEAD>
<BODY>
<P></P>
</BODY>
</HTML>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Blank XHTML 1 Transitional Page</title>
</head>
<body>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Blank XHTML 1 Strict Page</title>
</head>
<body>
</body>
</html>