HTML TAG GLOSSARY

ADVANCED HTML TAG GLOSSARY

Basic Tags
<html></html>
Begins and ends any HTM or HTML page.
<head></head>
Sets off the information that isn't displayed on the Web page but used by serach engines javascript and the like
<body></body>
Sets off the visible portion of the document
Header Tags
<title></title>
Puts the name of the document in the title bar
Body Attributes
<body bgcolor="#ffffff">
Sets the background color, using a hex value
(see the values here)
<body text="#ffffff">
Sets the text color, using hex value
<body link="#ffffff">
Sets the color of links, using hex value
<body vlink="#ffffff">
Sets the color of already visited links, using hex value
<body alink="#ffffff">
Sets the color of available links
Text Tags
<hl></hl>
Creates the largest headline
<h3></h3>
Creates a medium headline
<h6></h6>
Creates the smallest headline
<b></b>
Creates bold text
<i></i>
Creates italic text
<em></em>
Emphasizes a word (with italic or bold)
<strong></strong>
Emphasizes a word (with italic or bold)
<font size=?></font>
<font color="#ffffff"></font>
Sets font color, using hex value
but only of the text between the two tags
Links
<a href="http://www.maynardville.com"> Click Here</a>
Creates a hyperlink
to Maynardville.com that displays "Click Here" on the page
<a href="mailto:test@test.com">email test</a>
Creates an email link that displays on the page as "email test" and when clicked on will address an email to test@test.com
Formatting
<p></p>
Creates a new paragraph
<p align=center>
Aligns a paragraph to the center. can change center to left or right also.
<br>
Inserts a single space line break
<blockquote>
</blockquote>

Indents text from both sides
Graphical Elements
<img src="test.jpg">
Adds an image
that it finds in the same directory called test.jpg
<img src="test.jpg" align=center>
Aligns the test.jpg grapphic in the center of the page
.
<img src="name" border=0>
Sets size of border around an image
should usually be set to 0 and never above 2
<hr>
Inserts a horizontal dividing line
<hr size=10>
Sets height of horizontal dividing line example shown is 10 pixels high
<hr width=100>
Sets width of horizontal dividing line example shown is 100 pixels wide
<hr noshade>
Creates a horizontal dividing line without a shadow




Tables ...................ADVANCED ONLY
<table></table>
Creates a table

<tr></tr>
Sets off each row in a table

<td></td>
Sets off each cell in a row

Table Attributes ...................ADVANCED ONLY
<table border=#>
Sets width of border around table cells

<table cellspacing=#>
Sets amount of space between table cells

<table cellpadding=#>
Sets amount of space between a cell's border and its contents

<table width=# or %>
Sets width of table — in pixels or as a percentage of document width

<tr align=?> or <td align=?>
Sets alignment for cell(s) (left, center, or right)

<tr valign=?> or <td valign=?>
Sets vertical alignment for cell(s) (top, middle, or bottom)

<td colspan=#>
Sets number of columns a cell should span

<td rowspan=#>
Sets number of rows a cell should span (default=1)

<td nowrap>
Prevents the lines within a cell from being broken to fit

Frames ...................VERY ADVANCED ONLY
<frameset></frameset>
Replaces the <body> tag in a frames document; can also be nested in other framesets

<frameset rows="value,value">
Defines the rows within a frameset, using number in pixels, or percentage of w idth

<frameset cols="value,value">
Defines the columns within a frameset, using number in pixels, or percentage of width

<frame>
Defines a single frame — or region — within a frameset

<noframes></noframes>
Defines what will appear on browsers that don't support frames

Frames Attributes ...................VERY ADVANCED ONLY
<frame src="URL">
Specifies which HTML document should be displayed

<frame name="name">
Names the frame, or region, so it may be targeted by other frames

<frame marginwidth=#>
Defines the left and right margins for the frame; must be equal to or greater than 1

<frame marginheight=#>
Defines the top and bottom margins for the frame; must be equal to or greater than 1

<frame scrolling=VALUE>
Sets whether the frame has a scrollbar; value may equal "yes," "no," or "auto." The default, as in ordinary documents, is auto.

<frame noresize>
Prevents the user from resizing a frame

Forms ...................ADVANCED ONLY
<form></form>
Creates all forms

<select multiple name="NAME" size=?></select>
Creates a scrolling menu. Size sets the number of menu items visible before you need to scroll.

<option>
Sets off each menu item

<select name="NAME"></select>
Creates a pulldown menu

<textarea name="NAME" cols=40 rows=8></textarea>
Creates a text box area. Columns set the width; rows set the height.

<input type="checkbox" name="NAME">
Creates a checkbox. Text follows tag.

<input type="radio" name="NAME" value="x">
Creates a radio button. Text follows tag

<input type=text name="NAME" size=20>
Creates a one-line text area. Size sets length, in characters.

<input type="submit" value="NAME">
Creates a Submit button

<input type="image" border=0 name="NAME" src="name.gif">
Creates a Submit button using an image

<input type="reset">
Creates a Reset button