Next / Previous / Contents / TCC Help System / NM Tech homepage

7. A small, complete example page

The first line of this example identifies the document type, and tells browsers that you are using HTML 2.0.

<!DOCTYPE html public "-//IETF//DTD HTML 2.0/EN">
<html>
<head>
  <title>Example page</title>
</head>
<body>
<h1>Example page</h1>
      
<p>This is a paragraph of ordinary text.  A bullet list
follows:

<ul>
  <li>First bullet.
  <li>Second bullet.
</ul>      
      
<p>See the <a href="http://www.nmt.edu/">Tech homepage</a>.
<hr>
<address>Your name here,
  <a href="mailto:yourname@nmt.edu">yourname@nmt.edu</a>
</address>
</body>
</html>

For the sake of correctness, it is a good idea to enclose the entire page in <html>…</html> tags, enclose the header information for the page in <head>…</head> tags, and the body inside <body>…</head> tags.

Note the example of a regular text link (to the Tech homepage).

The <address>…</address> element contains a special “mailto:” link that lets the reader send mail to the page maintainer by clicking on the e-mail address.