Home Page > Web Design >
  HTML Tages / Codes

   

If you're doing business on the Internet, taking the time to learn how to design your own web site and write your own HTML code (hypertext markup language) will play a major role in your success. Not only will learning HTML coding provide you with the freedom to update your own HTML documents, but it will also save you a great deal of money, as you will be able to avoid hiring a professional web designer.

If you're looking for some HTML tags to spice up your web site, you've come to the right place. You will find a variety of HTML codes and tips to assist you below.

However, before reviewing the HTML tags, if you're new to HTML and web site design, the following section will assist you in creating an HTML web page. For additional web site design information, make sure you don't miss the web design articles and tutorials at the bottom of this page.


Creating an HTML Page

A web page is created using a language called, Hypertext Markup Language, better known as HTML Code. You can write your own coding within a plain text editor, such as Note Pad, or use an HTML editor, which will write the code for you.

HTML codes, also referred to as HTML tags, are enclosed by the lesser than (<) and greater than (>) brackets and may be written in capital or lower case letters.

The opening bracket is followed by an element, which is a browser command, and ends with the closing bracket.

<font size=2>

An element may also be followed by attributes, which are words describing the properties of the element, and further instruct the browser.

<font size=2>

Attributes are only contained in the opening HTML tags to the right of the element and are separated by a space and followed by an equal (=) sign.

The value follows the equal sign and is enclosed in quotes.

<font size=2>


Basic HTML Document Code Structure

Begin writing your HTML tags by creating your document's basic layout. Copy and paste this code into your text or HTML editor.

<HTML>
<HEAD>

<TITLE>Your Page Title</TITLE>
</HEAD>
<BODY>


This area will contain everything that will be visible through a web browser, such as text and graphics. All of the information will be HTML coded.

For a complete list of HTML codes, tags and examples, see the HTML chart below.

</BODY>
</HTML>

<HTML> - Begins your HTML document.

<HEAD> - Contains information about the page such as the TITLE, META tags for proper Search Engine indexing, STYLE tags, which determine the page layout, and JavaScript coding for special effects.


<TITLE> - The TITLE of your page. This will be visible in the title bar of the viewers’ browser.

<TITLE> - Closes the HTML <
/TITLE> tag.

<HEAD> - Closes the HTML <
/HEAD> tag.

<BODY> - This is where you will begin writing your document and placing your HTML codes.

<BODY> - Closes the HTML <
/BODY> tag.

<HTML> - Closes the <
/HTML> tag.


How to Copy and Paste HTML Tags / Codes

To copy and paste the HTML tags / codes from the HTML chart below into the HTML of your web page, place your mouse pointer over the beginning of the HTML code you would like to copy.  Next, click and hold your left mouse button and drag your mouse over all the HTML code you would like to copy (Example of highlighted text). Your HTML code should now be highlighted. Go to "Edit" - "Copy" on your web browser's toolbar and then place your cursor within your HTML code where you would like to place the code. Right click on your mouse and go to "Paste." Your HTML code should now be displaying within your HTML document.



HTML Tags Chart

To use any of the following HTML tags, simply select the HTML code you'd like and copy and paste it into your web page.

 
Browser View Code Example Name Tag
Nothing will show

<!--This can be viewed in the HTML part of a document-->

comment <!--
Visit Our Site <A href="http://www.yourdomain.com/">Visit Our Site</A> anchor <A -
Example <B>Example</B> bold <B>
Example <BIG>Example</BIG> big (text) <BIG>
Contents of your web page <BODY>The content of your HTML page</BODY> body of HTML document <BODY>
The contents of your web page
The contents of your web page
The contents of your page<BR>The contents of your page line break <BR>

This will center your contents

<CENTER>This will center your contents</CENTER> center <CENTER>

Definition Term
           Definition of the term

Definition Term
          
Definition of the term

<DL>
<DT>Definition Term
<DD>Definition of the term
<DT>Definition Term
<DD>Definition of the term
</DL>
definition description <DD>

Definition Term
          
Definition of the term
Definition Term
          
Definition of the term

<DL>
<DT>Definition Term
<DD>Definition of the term
<DT>Definition Term
<DD>Definition of the term
</DL>
definition list <DL>
Definition Term
          
Definition of the term
Definition Term
          
Definition of the term
<DL>
<DT>Definition Term
<DD>Definition of the term
<DT>Definition Term
<DD>Definition of the term
</DL>
definition term <DT>
This is an Example of using the emphasis tag This is an <EM>Example</EM> of using the emphasis tag emphasis <EM>
  <EMBED src="yourfile.mid" width="100%" height="60" align="center"> embed object <EMBED>
Music will begin playing when your page is loaded and will only play one time. A control panel will be displayed to enable your visitors to stop the music. <EMBED src="yourfile.mid" autostart="true" hidden="false" loop="false">
<noembed><bgsound src="yourfile.mid" loop="1"></noembed>
embed object <EMBED>
Example <FONT FACE="Times New Roman">Example</FONT> font <FONT>
Example <FONT FACE="Times New Roman" SIZE="4">Example</FONT> font <FONT>
Example <FONT FACE="Times New Roman" SIZE="+3" COLOR="#FF0000">Example</FONT> font <FONT>

Name:
Email:

<FORM action="mailto:you@yourdomain.com">
Name: <INPUT name="Name" value="" size="10"><BR>
Email: <INPUT name="Email" value="" size="10"><BR>
<CENTER><INPUT type="submit"></CENTER>
</FORM>
form <FORM>
<H1>Heading 1 Example</H1>
<H2>Heading 2 Example</H2>
<H3>Heading 3 Example</H3>
<H4>Heading 4 Example</H4>
<H5>Heading 5 Example</H5>
<H6>Heading 6 Example</H6>
heading 1
heading 2
heading 3
heading 4
heading 5
heading 6
<H1>
<H2>
<H3>
<H4>
<H5>
<H6>
Nothing will show <HEAD>Contains elements describing the document</HEAD> heading of HTML document <HEAD>
Contents of your web page <HR> horizontal rule <HR>
Contents of your web page

Contents of your web page
<HR WIDTH="50%" SIZE="3"> horizontal rule <HR>
Contents of your web page

Contents of your web page
<HR WIDTH="50%" SIZE="3" NOSHADE> horizontal rule <HR>
Contents of your web page

Contents of your web page
<HR WIDTH="75%" COLOR="#FF0000" SIZE="4"> horizontal rule <HR>
(Internet
Explorer)
Contents of your web page

Contents of your web page
<HR WIDTH="25%" COLOR="#6699FF" SIZE="6"> horizontal rule <HR>
(Internet
Explorer)
Contents of your web page <HTML><HEAD><META><TITLE>Title of your web page</TITLE></HEAD><BODY>HTML web page contents</BODY></HTML> hypertext markup language <HTML>
<IMG SRC="Earth.gif" WIDTH="41" HEIGHT="41" BORDER="0" ALT="text describing the image"> image <I>

Example 1:

Example 1:

<FORM METHOD=post ACTION="/cgi-bin/example.cgi">
<INPUT type="text" size="10" maxlength="30">
<INPUT type="Submit" VALUE="Submit">
</FORM>
input field <INPUT>

Example 2:

Example 2:

<FORM METHOD=post ACTION="/cgi-bin/example.cgi">
<INPUT type="text" STYLE="color: #FFFFFF; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #72A4D2;" size="10" maxlength="30">
<INPUT type="Submit" VALUE="Submit">
</FORM>
input field <INPUT>
(Internet Explorer)

Example 3:

 

Example 3:

<FORM METHOD=post ACTION="/cgi-bin/example.cgi">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2"><TR><TD BGCOLOR="#8463FF"><INPUT type="text" size="10" MAXLENGTH="30"></TD><TD BGCOLOR="#8463FF" VALIGN="Middle"> <INPUT type="image" name="submit" src="yourimage.gif"></TD></TR> </TABLE>
</FORM>
input field <INPUT>

Example 4:


 

Example 4:

<FORM METHOD=post ACTION="/cgi-bin/example.cgi">
Enter Your Comments:<BR>
<TEXTAREA wrap="virtual" name="Comments" rows=3 cols=20 MAXLENGTH=100></TEXTAREA><BR>
<INPUT type="Submit" VALUE="Submit">
<INPUT type="Reset" VALUE="Clear">
</FORM>
input field <INPUT>
Example 5:

Select an option:
 
Example 5:

<FORM METHOD=post ACTION="/cgi-bin/example.cgi">
<CENTER>
Select an option:
<SELECT>
<OPTION >option 1
<OPTION SELECTED>option 2
<OPTION>option 3
<OPTION>option 4
<OPTION>option 5
<OPTION>option 6
</SELECT><BR>
<INPUT type="Submit" VALUE="Submit"></CENTER>
</FORM>
input field <INPUT>

Example 6:

Select an option:
Option 1
Option 2
Option 3

Select an option:
Selection 1
Selection 2
Selection 3

 
Example 6:

<FORM METHOD=post ACTION="/cgi-bin/example.cgi">
Select an option:<BR>
<INPUT type="radio" name="option"> Option 1
<INPUT type="radio" name="option" CHECKED> Option 2
<INPUT type="radio" name="option"> Option 3
<BR>
<BR>
Select an option:<BR>
<INPUT type="checkbox" name="selection"> Selection 1
<INPUT type="checkbox" name="selection" CHECKED> Selection 2
<INPUT type="checkbox" name="selection"> Selection 3
<INPUT type="Submit" VALUE="Submit">
</FORM>
input field <INPUT>

Example 1:

  • List item 1
  • List item 2
  • List item 3

  • Example 2:

    1. List item 1
    2. List item 2
    3. List item 3
    4. List item 4
    Example 1:

    <MENU>
    <LI type="disc">List item 1
    <LI type="circle">List item 2
    <LI type="square">List item 3
    </MENU>


    Example 2:

    <OL type="i">
    <LI>List item 1
    <LI>List item 2
    <LI>List item 3
    <LI>List item 4
    </OL>
    list item <LI>
    Visit our site Visit our <A HREF="http://www.yourdomain.com/">site</A> link <LINK>
    Example Marquee <MARQUEE bgcolor="#CCCCCC" loop="-1" scrollamount="2" width="100%">Example Marquee</MARQUEE> scrolling text <MARQUEE>
    (Internet
    Explorer)
    Example Marquee <MARQUEE bgcolor="#F3F3F3" scrollamount="2" width="100%" direction="up" height="43">Example Marquee</MARQUEE> scrolling text <MARQUEE>
    (Internet
    Explorer)
  • List item 1
  • List item 2
  • List item 3
  • <MENU>
    <LI type="disc">List item 1
    <LI type="circle">List item 2
    <LI type="square">List item 3
    </MENU>
    menu <MENU>
    Nothing will show <META name="Description" content="Description of your site">
    <META name="keywords" content="keywords describing your site">
    meta <META>
    Nothing will show <META HTTP-EQUIV="Refresh" CONTENT="4;URL=http://www.yourdomain.com/"> meta <META>
    Nothing will show <META http-equiv="Pragma" content="no-cache"> meta <META>
    Nothing will show <META name="rating" content="General"> meta <META>
    Nothing will show <META name="ROBOTS" content="ALL"> meta <META>
    Nothing will show <META NAME="ROBOTS" content="NOINDEX,FOLLOW"> meta <META>

    Numbered

    1. List item 1
    2. List item 2
    3. List item 3
    4. List item 4

    Numbered
    <OL>
    <LI>List item 1
    <LI>List item 2
    <LI>List item 3
    <LI>List item 4
    </OL>

    ordered list <OL>

    Numbered Special Start

    1. List item 1
    2. List item 2
    3. List item 3
    4. List item 4
    Numbered Special Start
    <OL start="5">
    <LI>List item 1
    <LI>List item 2
    <LI>List item 3
    <LI>List item 4
    </OL>

    Lowercase Letters

    1. List item 1
    2. List item 2
    3. List item 3
    4. List item 4
    Lowercase Letters
    <OL type="a">

    <LI>List item 1
    <LI>List item 2
    <LI>List item 3
    <LI>List item 4
    </OL>

    Capital Letters

    1. List item 1
    2. List item 2
    3. List item 3
    4. List item 4
    Capital Letters
    <OL type="A">

    <LI>List item 1
    <LI>List item 2
    <LI>List item 3
    <LI>List item 4
    </OL>

    Capital Letters Special Start

    1. List item 1
    2. List item 2
    3. List item 3
    4. List item 4
    Capital Letters Special Start
    <OL type="A" start="3">
    <LI>List item 1
    <LI>List item 2
    <LI>List item 3
    <LI>List item 4
    </OL>

    Lowercase Roman Numerals

    1. List item 1
    2. List item 2
    3. List item 3
    4. List item 4
    Lowercase Roman Numerals
    <OL type="i">

    <LI>List item 1
    <LI>List item 2
    <LI>List item 3
    <LI>List item 4
    </OL>

    Capital Roman Numerals

    1. List item 1
    2. List item 2
    3. List item 3
    4. List item 4
    Capital Roman Numerals
    <OL type="I">
    <LI>List item 1
    <LI>List item 2
    <LI>List item 3
    <LI>List item 4
    </OL>

    Capital Roman Numerals Special Start

    1. List item 1
    2. List item 2
    3. List item 3
    4. List item 4
    Capital Roman Numerals Special Start
    <OL type="I" start="7">

    <LI>List item 1
    <LI>List item 2
    <LI>List item 3
    <LI>List item 4
    </OL>

    Select an option:

     
    <FORM METHOD=post ACTION="/cgi-bin/example.cgi">
    <CENTER>
    Select an option:
    <SELECT>
    <OPTION>option 1
    <OPTION SELECTED>option 2
    <OPTION>option 3
    <OPTION>option 4
    <OPTION>option 5
    <OPTION>option 6
    </SELECT><BR>
    </CENTER>
    </FORM>
    list box option <OPTION>
    This is an example displaying the use of the paragraph tag.

    This will create a line break and a space between lines.

    Attributes:

    Example 1:
    This is an example
    displaying the use
    of the paragraph tag.

    Example 2:
    This is an example
    displaying the use
    of the paragraph tag.

    Example 3:
    This is an example
    displaying the use
    of the paragraph tag.
     

    This is an example displaying the use of the paragraph tag. <P> This will create a line break and a space between lines.

    Attributes:

    Example 1:<BR>
    <BR>
    <P align="left">
    This is an example<BR>
    displaying the use<BR>
    of the paragraph tag.<BR>
    <BR>
    Example 2:<BR>
    <BR>
    <P align="right">
    This is an example<BR>
    displaying the use<BR>
    of the paragraph tag.<BR>
    <BR>
    Example 3:<BR>
    <BR>
    <P align="center">
    This is an example<BR>
    displaying the use<BR>
    of the paragraph tag.
    paragraph <P>
    Example <SMALL>Example</SMALL> small (text) <SMALL>
    Example <STRIKE>Example</STRIKE> deleted text <STRIKE>
    Example <STRONG>Example</STRONG> strong emphasis <STRONG>

    Example 1:

    Column 1

    Column 2

    Example 1:

    <TABLE BORDER="4" CELLPADDING="2"  CELLSPACING="2" WIDTH="100%">
    <TR>
    <TD>Column 1</TD>
    <TD>Column 2</TD>
    </TR>
    </TABLE>
    table <TABLE>
    Example 2:
     

    Column 1

    Column 2

    Example 2: (Internet Explorer)

    <TABLE BORDER="2" BORDERCOLOR="#336699" CELLPADDING="2" CELLSPACING="2" WIDTH="100%">
    <TR>
    <TD>Column 1</TD>
    <TD>Column 2</TD>
    </TR>
    </TABLE>
    Example 3:

    Column 1 Column 2
    Row 2 Row 2
    Example 3:

    <TABLE CELLPADDING="2" CELLSPACING="2" WIDTH="100%">
    <TR>
    <TD BGCOLOR="#CCCCCC">Column 1</TD>
    <TD BGCOLOR="#CCCCCC">Column 2</TD>
    </TR>
    <TR>
    <TD>Row 2</TD>
    <TD>Row 2</TD>
    </TR>
    </TABLE>

    Column 1

    Column 2

     
    <TABLE BORDER="2" CELLPADDING="2" CELLSPACING="2" WIDTH="100%">
    <TR>
    <TD>Column 1</TD>
    <TD>Column 2</TD>

    </TR>
    </TABLE>
    table data <TD>
    Column 1 Column 2 Column 3
    Row 2 Row 2 Row 2
    Row 3 Row 3 Row 3
    Row 4 Row 4 Row 4
    <DIV align="center"><TABLE>
    <TR>
    <TH>Column 1</TH>
    <TH>Column 2</TH>
    <TH>Column 3</TH>

    </TR>
    <TR>
    <TD>Row 2</TD>
    <TD>Row 2</TD>
    <TD>Row 2</TD>
    </TR>
    <TR>
    <TD>Row 3</TD>
    <TD>Row 3</TD>
    <TD>Row 3</TD>
    </TR>
    <TR>
    <TD>Row 4</TD>
    <TD>Row 4</TD>
    <TD>Row 4</TD>
    </TR>
    </TABLE>
    </DIV>
    table header <TH>
    Title of your web page will be viewable in the title bar. <TITLE>Title of your HTML page</TITLE> document title <TITLE>