HTML Code Chart

HTML Function

Example

Explanation

Alignment

<P ALIGN=RIGHT> </P>

Changes the image or text alignment to right or center. (Left is default and doesn't need to be specified). The image or text to be aligned goes within the tags.

Bold <B> </B> Bolds text within tags.

Center

<CENTER> </CENTER>

Centers the image or text within the tags.

Email Link

<A HREF=mailto:name@emailservice.com">E-Mail Me</A>

Directly links to an email address.

Font Color

<FONT COLOR="#008000"> </FONT>

Changes color of font within tags (default color is black). The color must be in a number format.

Font Face

<FONT FACE="Comic Sans MS"> </FONT>

Changes the typeface of font within tags. Note: If the selected font is not installed on a user's computer, the default font that the user sees is Times New Roman.

Font Size

<FONT SIZE="5"> </FONT>

Changes size of text, ranging from 1-7 (default size is 3).

Header

<H1> </H1>

Creates headings for your pages in 7 sizes, ranging from H1 (biggest and boldest) to H7 (smallest). Recommendation: Use only H1, H2, or H3.

Horizontal Rule

<HR>

Divides text with a line.

Image Source

<IMG SRC="img.gif">

Inserts a graphic. The complete URL must be specified, along with the directory name and the file name.

Italics

<I> </I>

Italicizes text within tags.

Line Break

<BR>

Creates a line break.

Line Item

<LI> </LI>

Identifies a line item within an ordered or unordered list. These tags begin and end each line of the list.

Link

<A HREF="http://computerlab.tripod.com">
Click here</A>

Links text to another Web page. The complete URL of the page you are linking to must be specified.

Ordered List

<OL> </OL>

Begins and ends a numbered list.

Paragraph

<P> </P>

Begins and ends a paragraph (equal to two line breaks).

Table

<TABLE> </TABLE>

Begins and ends a table.

Table Data

<TD> </TD>

Inserts text within each table cell.

Table Heading

<TH> </TH>

Inserts headers within the table cell (text will be bold).

Table Row

<TR> </TR>

Creates a row of data within a table.

Underline

<U> </U>

Underlines text between tags.

Unordered List

<UL> </UL>

Begins and ends a bulleted point list.