Site hosted by Angelfire.com: Build your free website today!

Basic HTML

 

Basic Tags

<html></html> Creates an HTML document
<head></head> The title and other information that isn't displayed on the web page itself
<body></body> The visible portion of the document
<title></title> Name of the document in the title bar

Body Tags

<body bgcolor=blue> Background color, using name or hex value
<body text-red> Text color, using name or hex value
<body link=yellow> Color of links, using name or hex value
<body vlink=green> Color of visited links, using name or hex value
<body alink=purple> Color of active links, using name or hex value

Text Tags

<h1></h1> Largest headline
<h6></h6> Smallest headline
<b></b> Bold text
<i></i> Italic text
<tt></tt> Typewriter-style text
<strong></strong> Bolds a word
<em></em> Emphasizes a word
<font size=3></font> Size of font, from 1 to 7
<font color="red"></font> Font color, using name or hex value

Graphic Tags

<img src="name"> Image
<img src="name" align=?> Image to: left, right, center OR bottom, top, middle
<img src="name" border=1> Border around an image
<hr> Horizontal line
<hr size=2> Height of line
<hr width=300> Width of line, in percentage or absolute value
<hr noshade> Line without a shadow

Link Tags

<a href="URL"></a> Hyperlink
<a href="mailto:EMAIL"></a> Mail to link
<a name="NAME"></a> Target within a document
<a href="#NAME"></a> Link to a target from the same document

Format Tags

<p></p> New paragraph
<p align=?></p> Paragraph alignment (left, right, center)
<br>
<blockquote></blockquote> indents text - both sides
<ol></ol> Numbered list
<li></li> Preceds each list item
<ul></ul> Bulleted list

Table Tags

<table></table> Table
<tr></tr> Row in a table
<td></td> Cell in a row
<th></th> Table header (a cell with bold, centered text)
<table border=1> Width of border around table cells
<table cellspacing=1> Space between table cells
<table cellpadding=1> Space between a cell's border and its contents
<table width=200 or %> Width of table - in absolute value or as a percentage
<tr align=?> or <td align=?> Horizontal alignment for cell(s) (left, center, or right)
<tr valign=?> or <td valign=?> Vertical alignment for cell(s) (top, middle, or bottom)
<td colspan=1> Number of columns of span for a cell
<td rowspan=1> Number of rows of span for a cell (default=1)
<td nowrap> Prevents the lines within a cell from being broken to fit

Form Tags

<form></form> Forms
<select name="my name"></select> Menu list
<option> Each menu item
<input type="checkbox" name="my name"> Checkbox
<input type="radio" name="my name" value = "x"> Radio button
<input type=text nam="my name" size=20> One line text area, Size-length
<input type="submit" value="NAME"> Submit button
<input type="image" border=0 name="my gif" src="myname.gif"> Submit button with an image
<input type="reset"> Reset button