[NRAO]

HTML Basics and the NRAO Style

A Simple Page



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<html><head>
<title>Your title here</title>
<!-- this is a comment. meta tags go here too -->
</head>

<body>

<!-- the real stuff begins here -->
 
<h1>A Heading</h1>
 
<p>
This is a paragraph. You've seen
them before. They begin with a &lt;p&gt; tag
and end with a &lt;/p&gt;.</p>

<table align="right" width="100%" border="2">
  <tr>
    <th>
Type of bribe</th>
    <th>
Attendance</th>
  </tr>
  <tr>
    <td>
Donuts</td>
    <td>
35</td>
  </tr>
  <tr>
    <td>
Anchovies</td>
    <td>
3</td>
  </tr>
</table>

<p>
That table is aligned to the right,
and has a border width of 2 (pixels).
Images can be aligned too.
Tables with zero border (default) are used
to place things (text, images) on the page.</p>
<br clear="all">
<hr>
<div align="right"><em>
Pat Murphy</em></div>
</body> </html>

The markup on the right results in this page. When you follow that link, use the "view source" option of your browser, and you'll see it's identical to what appears in the table here.

Comparing the "source" to the results is probably the best way to learn HTML, if you can find decently crafted pages!


 


HTML Basics and the NRAO Style
Pat Murphy