HTML Quick reference

Original tutorial and reference at: http://www.cs.umd.edu/~pugh/intro-www-tutorial/

Overall structure:

<html>
<head>
<title>Your title goes here</title>
</head>
<body>
Your contents goes here 
</body>
</html>
<!-- ... -->
HTML comment
&amp;
&
&lt;
<
&gt;
>
<h1> ... </h1>
Most important header
<h6> ... </h6>
Least important header
<p>
Start a paragraph
<... align=center> [Non-standard]
Center a paragraph or header
<... align=right> [Non-standard]
Right justify a paragraph or header
<br>
Line break
<hr>
Horizontal rule
<blockquote> ... </blockquote>
Block quote; typically indented
<pre> ... </pre>
Preformatted text; white space significant and monospaced font used
<address> ... </address>
Address information; typically displayed in italics, might be indented
<UL> <LI> ... <LI> ... </UL>
Unnumbered list (bullet list)
<OL> <LI> ... <LI> ... </OL>
Ordered/numbered list
<DL> <DT> ... <DD> ... <DT> ... <DD> ... </DL>
Definition list
<DT>
Definition term; not indented
<DD>
Definition list definition; indented
<em> ... </em>
Emphasized text
<strong> ... </strong>
Strong text
<code> ... </code>
Program code
<i> ... </i>
Italic text
<b> ... </b>
Bold text
<tt> ... </tt>
Teletype text
<big> ... </big>
Big text [Non-standard]
<small> ... </small>
Small text [Non-standard]
<img ...>
Imbeded image
<img src="URL">
source for image
<img alt="string">
textual alternative to picture
<img align=top|middle|bottom|left|right>
Alignment of picture
<a ...>
Anchor; hypertext link
<a href="URL">
Link to other document
<a name="string">
Name of this section (linking to #string will bring you here)

William Pugh (pugh at cs.umd.edu)
Dept. of Computer Science
Univ. of Maryland, College Park