TAG:  html

<html> ... </html>
Available in versions: 2.0, 3.2, 4.0
Browser compatibility: Explorer 4, 5  Netscape 4, 6
 
The <html> tag informs the browser that this is an HTML encoded program. The html opening and closing tags delimit the start and stop of the HTML document.
 
The ending tag is optional. However, it is recommended that it be included.
 
Core Attributes
 
dir    lang   
 
Attributes
 
version    deprecated 4.0
The version attribute defines the HTML version number. This attribute is deprecated effective with version 4.0. However, most browsers continue to recognize this attribute.
 
This example demonstrates the basic structure of an HTML program.
 
Code:
<html>
<head>
<title>title</title>
</head>
<body>
body content goes here...
</body>
</html>

 
Output:
body content goes here...
 
In general, it is not neccessary (or recommended) that you designate the HTML version type. However, if you must, the following code demonstrates how:
 
Code:
<html version="-//W3C//DTD HTML 4.0//EN">
 
Rather than using the deprecated version attribute, some programmers place the following SGML (Standard Generalized Markup Language) command code as the first line of their HTML document.
 
Code:
<!DOCTYPE HTML PUBLIC ="-//W3C//DTD HTML 4.0//EN">


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information