Quick Links
All HTML web pages should begin with the <html> and end with its closer counterpart </html>. The HTML tag lets the browser know that it should expect tags inside the document to follow HTML rules.
The document then consists of two parts, the head (<head>...</head>) and the body (<body>...</body>). The head in the sample page below contains only the title (<title>...</title>) which is displayed by the browser in its title bar; this information is also used as the first line of an entry in a search engine such as Google or Yahoo!
The body contains code and text for what will appear in the browser's window. This example contains only four lines of code...and four corresponding lines of output.
| Source Code | Rendering by Browser |
|---|---|
<html>
<head>
<title>Hello, world! page</title>
</head>
<body>
<p>Hello, world!</p>
<HR>
©2006 DFStermole<BR>
Created: 12 March 2006
</body>
</html>
|
|