Tags - A Quick Reference Guide


Here are the tags we have learned so far...

Remember that all tags have an "end" tag unless designated below as an "empty" tag.



<a href="file.html">Creates a hyperlink to the file "file.html". The highlighted text of the hyperlink will be whatever is contained inside the "a" tag.

<a name="howdy">Creates a "bookmark" inside of your document (does not display anything on your browser window) that allows you to make hyperlinks to varioous parts of the same document by using "#bookmark" as the file name in the "a href" tag.

<b>Text enclosed in this tag becomes bold.

<body>The body tag is enclosed within the "html" tag and immediately follows the "head" tag. This is where all of the information for your page will go.

<blockquote>Text enclosed in this tag is offset with a margin on the left and right side of the browser window. It also functions like a parapgraph tag, placing a blank line before and after the text.

<br>The break tag. Ends the current line and text begins on the next line. This tag is an "empty" tag and has no end tag.

<br clear="all">Clears a "floating image" (one with the align="right" or align="left" attribute, so text and other info begins after the image.

<font>The font tag. This tag allows modification of the the look and feel of the text without inserting a line break. The main attributes you can use with it are face (describes font type), size and color.

<h1>Text enclosed in this tag will make a header of size 1 (the biggest size). The header tag also functions as a paragraph tag in that it adds a blank line before and after the text.

<h2>Text enclosed in this tag will make a header of size 2.

<h3>Text enclosed in this tag will make a header of size 3.

<h4>Text enclosed in this tag will make a header of size 4.

<h5>Text enclosed in this tag will make a header of size 5.

<h6>Text enclosed in this tag will make a header of size 6 (the smallest size).

<head>the head tag is enclosed within the "html" tag and contains all of the "behind the scenes" info on your page. This tag will come immediately before the "body" tag.

<hr>The horizontal rule. Creates a line across the browser window that can be used to seperate sections of your page.

<html>The "html" tag should surround all other tags and info on your page.

<i>Text enclosed in this tag becomes italicized.

<img src="file.jpg">Embeds the file "file.jpg" into the page. IMG is an empty tag, with no ending tag.

<li>Defines a list element inside the UL or OL tag.

<ol>The tag to begin an ordered list (list elements are numbered).

<p>The paragraph tag seperates sections of your page from one another. It will place a blank line before and after information contained inside it.

<pre>Preformatted text. All text inside this tag appears exactly as typed (whitespace DOES matter here).

<table>Creates a table.

<td>Begins a table data element (must be contained within a TR tag).

<title>The title tag is contained inside the "head" tag. It creates a title for your page that will display on the top status line of your browser. Remember that this will not show up inside the browser window itself.

<tr>Begins a table row (must be contained within a TABLE tag).

<u>Text enclosed in this tag becomes underlined.

<ul>The tag to begin an unordered list.


This page was last updated on