HTML Quick Reference for CS280

<a> </a>
Anchor tag - used to create a hyperlink. Common attributes: src, alt
<body> </body>
Surrounds the body of the web page. Common attributes: bgcolor, text
<head> </html>
Surrounds the header of the web page. May include the style elements used on the page.
<title> </title>
Surrounds the code to print on the heading bar of the browser window.
<h1-h8> </h1-8>
Specifies headings with h1 being most prominent and h8 least. Common attributes: align
<hr>
Places a horizontal line on the page. Common attributes: align, size, width
<img>
Specifies the location for a picture from a file. Common attributes: src, align, alt
<ol> </ol>
Ordered list. Surrounds an ordered list. Common attributes: type, start
<ul> </ul>
Unordered list. Surrounds an unordered (bulleted) list. Common attributes: type
<br>
Specifies a place to break the text. Moves following text to the next line.
<pa> </pa>
Surrounds a paragraph of text and provides an automatic break at the end of the paragraph.
<dl> </dl>
Definitional list. Surrounds a list of terms and definitions.
<dt> </dt>
Surrounds a term from a definitional list.
<dd> </d>
Surrounds a definition from a definitional list. (See the source of this page for an example.)
<b> </b>
Surrounds text that should be bolded.
<i> </i>
Surrounds text that should be italicized.
<table> </table>
Table. Surrounds text that should be treated as a table. Common attributes: border, align, bgcolor, cellpadding, cellspacing
<tr> </tr>
Table row. Defines a single row in the table. Common attributes: bgcolor, align, nowrap, valign
<td> </td>
Table detail. Defines a single cell in the table. Always inside a row. Common attributes: bgcolor, align, nowrap
<pre> </pre>
Preserve formats. Keep the spacing as it is in the file. Preserves indentation, line breaks, and fonts.