HTML Tags


HTML CODE - Basic Tags                             

Text Tags

Links

Formatting

Graphical Elements

Tables

Table Attributes

Frames

Frames Attributes

Forms

Remove Underlining For A Link

Color Coding


HTML CODE - Basic Tags

<html></html>
Creates an HTML document

<head></head>
Sets off the title and other information that isn't displayed on the Web page itself

<body></body>
Sets off the visible portion of the document

Top

Header Tags

<title></title>
Puts the name of the document in the title bar

Top

 

Body Attributes

<body bgcolor=?>
Sets the background color, using name or hex value

<body text=?>
Sets the text color, using name or hex value

<body link=?>
Sets the color of links, using name or hex value

<body vlink=?>
Sets the color of followed links, using name or hex value

<body alink=?>
Sets the color of links on click

Top

Text Tags

<pre></pre>
Creates preformatted text

<hl></hl>
Creates the largest headline

<h6></h6>
Creates the smallest headline

<h1></h1>
Creates the largest headline

<b></b>
Creates bold text

<i></i>
Creates italic text

<tt></tt>
Creates teletype, or typewriter-style text

<cite></cite>
Creates a citation, usually italic

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

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

<font size=?></font>
Sets size of font, from 1 to 7)

<font color=?></font>
Sets font color, using name or hex value

Top

Links

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

<a href="mailto:EMAIL"></a>
Creates a mailto link

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

<a href="#NAME"></a>
Links to that target location from elsewhere in the document

 

Top

Formatting

<p></p>
Creates a new paragraph

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

<br>
Inserts a line break

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

<dl></dl>
Creates a definition list

<dt>
Precedes each definition term

<dd>
Precedes each definition

<ol></ol>
Creates a numbered list

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

<ul></ul>
Creates a bulleted list

<div align=?>
A generic tag used to format large blocks of HTML, also used for stylesheets

Top

Graphical Elements

<img src="name">
Adds an image

<img src="name" align=?>
Aligns an image: left, right, center; bottom, top, middle

<img src="name" border=?>
Sets size of border around an image

<hr>
Inserts a horizontal rule

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

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

<hr noshade>
Creates a rule without a shadow

 

Top

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)

 

Top

Table Attributes

<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

 

Top

Frames

<frameset></frameset>
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

 

Top

Frames Attributes

<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

 

Top

Forms

For functional forms, you'll have to run a CGI script. The HTML just creates the appearance of a form.

<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

<option>
Sets off each menu item

<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="foo" 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

 

Top

Remove Underlining For A Link

<STYLE type="text/css">A:link {color:black;text-decoration:none} A:visited {color:black ; text-decoration:none} A:active {color:black ; text-decoration:none}</STYLE>

 

Top

Color Coding

FFFFFF

FFFFCC

FFFF99

FFFF66

FFFF33

FFFF00

CCFFFF

CCFFCC

CCFF99

CCFF66

CCFF33

CCFF00

99FFFF

99FFCC

99FF99

66FFFF

99FF66

99FF33

66FFCC

FFCCFF

99FF00

33FFFF

FFCCCC

33FFCC

00FFFF

66FF99

FFCC99

66FF66

66FF33

00FFCC

66FF00

33FF99

FFCC66

FFCC33

CCCCFF

33FF66

33FF33

00FF99

FFCC00

33FF00

00FF66

00FF33

00FF00

CCCCCC

CCCC99

99CCFF

CCCC66

CCCC00

CCCC33

99CCCC

FF99FF

99CC99

66CCFF

FF99CC

99CC66

66CCCC

99CC33

00CCFF

33CCFF

99CC00

FF9999

66CC99

FF9966

66CC66

33CCCC

CC99FF

00CCCC

FF9933

FF9900

66CC33

66CC00

33CC99

00CC99

CC99CC

33CC66

00CC66

CC9999

FF66FF

33CC33

33CC00

CC9966

00CC33

9999FF

00CC00

CC9933

CC9900

FF66CC

9999CC

FF6699

999999

6699FF

FF6666

CC66FF

999966

6699CC

999933

FFCC33

FF6600

FF33FF

3399FF

999900

669999

CC66CC

0099FF

FF33CC

3399CC

CC6699

669966

FF00FF

339999

669933

669900

FF3399

0099CC

9966FF

CC6666

009999

CC6633

CC6600

339966

FF00CC

FF3366

009966

CC33FF

FF3333

339933

009933

9966CC

FF3300

FF0099

339900

009900

6666FF

CC33CC

FF0066

996699

FF0033

FF0000

CC00FF

CC3399

996666

6666CC

996633

996600

3366FF

CC3366

CC00CC

9933FF

0066FF

666699

CC3333

CC3300

3366CC

CC0099

9933CC

666666

666633

0066CC

9900FF

666600

CC0066

336699

993399

CC0033

6633FF

336666

006699

CC0000

993366

9900CC

336633

006666

336600

6633CC

3333FF

006633

993333

993300

6600FF

990099

006600

0033FF

663399

009966

3333CC

663366

6600CC

990033

0033CC

990000

3300FF

663333

663300

660099

0000FF

333399

3300CC

003399

333300

660066

333333

003366

0000CC

660033

333300

660000

330099

003333

003300

000099

330066

330033

000066

330000

000033

000000

 

Top

 

Hosted by www.Geocities.ws

1