You Are Here: Home »Resources »   Html tags Saturday July 4th 2009

HTML Tag List

Body Tags Text Tags Page Formatting Graphic Tags Link Tags Tables Table Attributes Frames Frame Attributes Forms

 

Body Tags


<body link=?>
Sets the font color for links
(using name e.g Orange or hex value e.g #778899)

<body vlink=?>
Sets the color for visited links (name or hex)

<body alink=?>
Sets the color of links when clicked (name or hex)

<title></title>
Puts the name of the page in the title bar (name or hex)

<body text=?>
Sets the main text color (name or hex)

<body bgcolor=?>
Sets the background color(name or hex)

 

Text Tags


<pre></pre>
Creates preformated text

<h1></h1>
Creates the largest headline

<h6></h6>
Creates the smallest headline

<b></b>
Creates bold text

<i></i>
Createsitalic text

<tt></tt>
Creates typewriter style text

<em></em>
Emphasizes a word (with italic or bold

<strong></strong>
Emphasizes a word with italic or bold)

<cite></cite>
Creates a Citation (usually italic)

<font size=?>
Sets the font size (1-7)

<font color=?>
Sets the font color
(using name e.g Orange or hex value e.g #778899)

<font face=?>
Sets the font type (Verdana, Courier, verdana etc...)

 

Page Formatting


<p></p>
Creates a new paragraph

<p align=?>
Aligns a paragraph to the left right or center

<div align=?>
A generic tag used with stylesheets and for large blocks of HTML

<br>
Adds a line break

<dt>
Preceedes each definition term

<dd>
preceedes each definition

<dl></dl>
Creates a definition list

<ol></ol>
Creates a numbered list

<ul></ul>
Creates a bulleted list

<li></li>
Precedes each list item and adds a number

<blockquote></blockquote>
Indents text from both sides

 

Graphics


<img src="file">
Adds an image

<img src="file" align=?>
Aligns an image - left, right, center, bottom, top or middle

<img src="file" border=?>
Sets the size of a border to be placed round an image

<hr width=?>
Sets width of rule, in percentage or absolute value

<hr width=?>
Sets the size (height) of rule

<hr>
Inserts a horizontal rule

<hr noshade>
Creates a rule without shadow

 

Links


<a href="url"></a>
Creates a hyperlink

<a href="mailto:email"></a>
Creates an e-mail link

<a name="name"></a>
Creates a target location within a document

<a href="#name"></a>
Creates a link to the specified target location (name)

 

Tables


<table></table>
Creates a table

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

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

<th></th>
Sets off the table header
(a normal cell with bold, centered text)

 

Table Attributes


<table border=#>
Sets the size of the border around table cells

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

<table cellpadding=#>
Sets the distance between a table cells border and it's contents

<table width=# or %>
Sets the width of a table
(in pixels or as a percentage of the page width)

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

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

<td colspan=#>
Sets the number of collums for a cell to span

<td rowspan=#>
Sets the number of rows for a cell to span

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

 

Frames


<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 width

<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

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

 

Frame Attributes


<frame src="url">
Specifies the HTML doccument to 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


<form></form>
Creates all forms

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

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

<option>
Sets off each menu item

<textarea name="NAME" cols=40 rows=8></textarea>
Creates a textbox, cols = width rows = height

<input type="checkbox" name="NAME">
Creates a checkbox, text follows current tag

<input type="radio" name="NAME" value="x">
Creates a radio button, text follows current tag

<input type="text" name="foo" size="20">
Creates a one line text area, size= 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