You are on page 1of 8

1 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.

Tag Name Code Example Browser View


<!--This can be viewed in the HTML part of a
<!-- comment Nothing will show (Tip)
document-->
<a href="http://www.domain.com/">
<a - anchor Visit Our Site (Tip)
Visit Our Site</a>
<b> bold <b>Example</b> Example
<big> big (text) <big>Example</big> Example (Tip)
body of HTML Contents of your web
<body> <body>The content of your HTML page</body>
document page (Tip)
The contents of your web
The contents of your page<br>The contents of your page
<br> line break
page The contents of your web
page
This will center your
<center> center <center>This will center your contents</center>
contents
<dl> Definition Term
<dt>Definition Term</dt> Definition of
definition <dd>Definition of the term</dd> the term
<dd>
description <dt>Definition Term</dt> Definition Term
<dd>Definition of the term</dd> Definition of
</dl> the term
<dl> Definition Term
<dt>Definition Term</dt> Definition of the
<dd>Definition of the term</dd> term
<dl> definition list
<dt>Definition Term</dt> Definition Term
<dd>Definition of the term</dd> Definition of the
</dl> term
<dl> Definition Term
<dt>Definition Term</dt> Definition of the
definition <dd>Definition of the term</dd> term
<dt>
term <dt>Definition Term</dt> Definition Term
<dd>Definition of the term</dd> Definition of the
</dl> term
This is an <em>Example</em> of using This is an Example of using
<em> emphasis
the emphasis tag the emphasis tag
<embed src="yourfile.mid" width="100%"
<embed> embed object
height="60" align="center"> (Tip)

 
<embed src="yourfile.mid" autostart="true" Music will begin playing
hidden="false" loop="false"> when your page is loaded
<embed> embed object
<noembed><bgsound src="yourfile.mid" and will only play one time.
loop="1"></noembed> A control panel will be
displayed to enable your
visitors to stop the music.
<font> font <font face="Times New Roman">Example</font> Example (Tip)
<font face="Times New Roman"
<font> font Example (Tip)
size="4">Example</font>
2 HTML Tags Chart
<font face="Times New Roman" size="+3"
<font> font Example (Tip)
color="#ff0000">Example</font>
<form action="mailto:you@yourdomain.com">
Name: <input name="Name" value="" Name:   (Tip) 
size="10"><br> 
<form> form
Email: <input name="Email" value="" size="10"><br> Email: 
<center><input type="submit"></center> Submit
</form>

<h1> heading 1 <h1>Heading 1 Example</h1>


<h2> heading 2 <h2>Heading 2 Example</h2>
<h3> heading 3 <h3>Heading 3 Example</h3>
<h4> heading 4 <h4>Heading 4 Example</h4>
<h5> heading 5 <h5>Heading 5 Example</h5>
<h6> heading 6 <h6>Heading 6 Example</h6>

heading of
<head>Contains elements describing the
<head> HTML Nothing will show
document</head>
document

Contents of your web


horizontal page (Tip)
<hr> <hr />
rule
Contents of your web page
Contents of your web page
horizontal
<hr> <hr width="50%" size="3" />
rule
Contents of your web page
Contents of your web page
horizontal
<hr> <hr width="50%" size="3" noshade />
rule
Contents of your web page
<hr> Contents of your web page
horizontal
(Internet  <hr width="75%" color="#ff0000" size="4" />
rule
Explorer) Contents of your web page
<hr> Contents of your web page
horizontal
(Internet  <hr width="25%" color="#6699ff" size="6" />
rule
Explorer) Contents of your web page
<html>
<head>
<meta>
hypertext
<title>Title of your web page</title>
<html> markup Contents of your web page
</head>
language
<body>HTML web page contents
</body>
</html>
<i> italic <i>Example</i> Example

<img src="Earth.gif" width="41" height="41"


<img> image
border="0" alt="text describing the image" />
 (Tip)
<input> input field Example 1: Example 1: (Tip)
3 HTML Tags Chart
<form method=post action="/cgi-bin/example.cgi">
<input type="text" size="10" maxlength="30"> Submit
<input type="Submit" value="Submit">  
</form>
Example 2:

<form method=post action="/cgi-bin/example.cgi"> Example 2: (Tip)


<input> <input type="text" style="color: #ffffff; font-family:
(Internet input field Verdana; font-weight: bold; font-size: 12px;
Explorer) background-color: #72a4d2;" size="10" Submit
maxlength="30">  
<input type="Submit" value="Submit">
</form>
Example 3:

<form method=post action="/cgi-bin/example.cgi">


<table border="0" cellspacing="0" Example 3: (Tip)
cellpadding="2"><tr><td bgcolor="#8463ff"><input
<input> input field
type="text" size="10" maxlength="30"></td><td
bgcolor="#8463ff" valign="Middle"> <input
type="image" name="submit"
src="yourimage.gif"></td></tr> </table>
</form>
Example 4: Example 4: (Tip)

<form method=post action="/cgi-bin/example.cgi">


Enter Your Comments:<br>
<input> input field <textarea wrap="virtual" name="Comments" rows=3
cols=20 maxlength=100></textarea><br>
<input type="Submit" value="Submit">
<input type="Reset" value="Clear"> Submit Clear
</form>  
Example 5:

<form method=post action="/cgi-bin/example.cgi">


<center> Example 5: Tip)
Select an option:
<select> Select an
<option >option 1</option> option 2
<input> input field <option selected>option 2</option>
<option>option 3</option> option:   
<option>option 4</option> Submit
<option>option 5</option>
<option>option 6</option>
</select><br>
<input type="Submit" value="Submit"></center>
</form>
<input> input field Example 6: Example 6: (Tip)

<form method=post action="/cgi-bin/example.cgi"> Select an option:


Select an option:<br>
<input type="radio" name="option"> Option 1  Option 1
<input type="radio" name="option" checked> Option
2  Option 2
<input type="radio" name="option"> Option 3
<br>  Option 3
<br>
4 HTML Tags Chart
Select an option:<br> Select an option:
<input type="checkbox" name="selection"> Selection
1  Selection 1
<input type="checkbox" name="selection"
checked> Selection 2  Selection 2
<input type="checkbox" name="selection"> Selection
3  Selection 3
<input type="Submit" value="Submit"> Submit
</form>
Example 1: (Tip)
Example 1:
 List item 1
<menu>
<li type="disc">List item 1</li>
<li type="circle">List item 2</li> o List item 2
<li type="square">List item 3</li>
</MENU>  List item 3
<li> list item
Example 2:
Example 2:
<ol type="i">
<li>List item 1</li>
<li>List item 2</li> i. List item 1
<li>List item 3</li> ii. List item 2
<li>List item 4</li> iii. List item 3
</ol> iv. List item 4

<head>
<link rel="stylesheet" type="text/css"
<link> link
href="style.css" />
</head>

<marquee> <marquee bgcolor="#cccccc" loop="-1"


(Internet  scrolling text scrollamount="2" width="100%">Example
Explorer) Marquee</marquee>

(Tip)
 List item 1
<menu>
<li type="disc">List item 1</li> o List item 2
<menu> menu <li type="circle">List item 2</li>
<li type="square">List item 3</li>
</menu>  List item 3

<meta name="Description" content="Description of
your site">
<meta> meta Nothing will show (Tip)
<meta name="keywords" content="keywords
describing your site">
<meta HTTP-EQUIV="Refresh"
<meta> meta Nothing will show (Tip)
CONTENT="4;URL=http://www.yourdomain.com/">
<meta> meta <meta http-equiv="Pragma" content="no-cache"> Nothing will show (Tip)
<meta> meta <meta name="rating" content="General"> Nothing will show (Tip)
<meta> meta <meta name="robots" content="all"> Nothing will show (Tip)
<meta> meta <meta name="robots" content="noindex,follow"> Nothing will show (Tip)
5 HTML Tags Chart
<ol> ordered list Numbered Numbered

<ol> 1. List item 1


<li>List item 1</li> 2. List item 2
<li>List item 2</li> 3. List item 3
<li>List item 3</li> 4. List item 4
<li>List item 4</li>
</ol>
Numbered Special Start
Numbered Special Start
5. List item 1
<ol start="5"> 6. List item 2
<li>List item 1</li> 7. List item 3
<li>List item 2</li> 8. List item 4
<li>List item 3</li>
<li>List item 4</li> Lowercase Letters
</ol>
a. List item 1
Lowercase Letters
b. List item 2
c. List item 3
<ol type="a"> d. List item 4
<li>List item 1</li>
<li>List item 2</li>
Capital Letters
<li>List item 3</li>
<li>List item 4</li>
</ol> A. List item 1
B. List item 2
Capital Letters C. List item 3
D. List item 4
<ol type="A">
<li>List item 1</li> Capital Letters Special
<li>List item 2</li> Start
<li>List item 3</li>
<li>List item 4</li> C. List item 1
</ol> D. List item 2
E. List item 3
Capital Letters Special Start F. List item 4

<ol type="A" start="3"> Lowercase Roman


<li>List item 1</li> Numerals
<li>List item 2</li>
<li>List item 3</li> i. List item 1
<li>List item 4</li> ii. List item 2
</ol> iii. List item 3
iv. List item 4
Lowercase Roman Numerals
Capital Roman
<ol type="i"> Numerals
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li> I. List item 1
<li>List item 4</li> II. List item 2
</ol> III. List item 3
IV. List item 4
Capital Roman Numerals
Capital Roman
<ol type="I">
6 HTML Tags Chart

<li>List item 1</li> Numerals Special Start


<li>List item 2</li>
<li>List item 3</li> VII. List item 1
<li>List item 4</li> VIII. List item 2
</ol> IX. List item 3
X. List item 4
Capital Roman Numerals Special Start

<ol type="I" start="7">


<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
<li>List item 4</li>
</ol>
<form method=post action="/cgi-bin/example.cgi">
<center>
Select an option:
<select>
<option>option 1</option>
<option selected>option 2</option> Select an option: (Tip)
<option> listbox option <option>option 3</option> option 2
<option>option 4</option>
<option>option 5</option>
<option>option 6</option>
</select><br>
</center>
</form>
This is an example
This is an example displaying the use of the paragraph displaying the use of the
tag. <p> This will create a line break and a space paragraph tag.
between lines.
This will create a line break
Attributes: and a space between
lines. 
Example 1:<br>
<br> Attributes:
<p align="left">
This is an example<br> Example 1: 
displaying the use<br>
of the paragraph tag.<br> This is an example
<br> displaying the use
<p> paragraph
Example 2:<br> of the paragraph tag.
<br>
<p align="right">
This is an example<br> Example 2:
displaying the use<br>
of the paragraph tag.<br> This is an example
<br> displaying the use
Example 3:<br> of the paragraph tag.
<br>
<p align="center"> Example 3: 
This is an example<br>
displaying the use<br> This is an example
of the paragraph tag. displaying the use
of the paragraph tag.
<small> small (text) <small>Example</small> Example (Tip)
7 HTML Tags Chart
<strike> deleted text <strike>Example</strike> Example
strong
<strong> <strong>Example</strong> Example
emphasis
Example 1:

<table border="4" cellpadding="2" cellspacing="2"


width="100%">
<tr>
<td>Column 1</td>
<td>Column 2</td>
</tr>
</table>

Example 2: (Internet Explorer) Example 1: (Tip)


Column 1 Column 2
<table border="2" bordercolor="#336699"
cellpadding="2" cellspacing="2" width="100%">
Example 2: (Tip)
<tr>
<td>Column 1</td>
<table> table <td>Column 2</td> Column 1 Column 2
</tr>
</table> Example 3: (Tip)

Example 3:
Column 1 Column 2
<table cellpadding="2" cellspacing="2" Row 2 Row 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>
<table border="2" cellpadding="2" cellspacing="2"
width="100%">
<tr>
<td> table data <td>Column 1</td>
Column 1 Column 2
<td>Column 2</td>
</tr>
</table>
<th> table header <div align="center"> Colum Colum Colum
<table> n1 n2 n3
<tr> Row 2 Row 2 Row 2
<th>Column 1</th> Row 3 Row 3 Row 3
<th>Column 2</th>
Row 4 Row 4 Row 4
<th>Column 3</th>
</tr>
<tr>
<td>Row 2</td>
<td>Row 2</td>
<td>Row 2</td>
</tr>
<tr>
<td>Row 3</td>
8 HTML Tags Chart
<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>
Title of your web page will
document
<title> <title>Title of your HTML page</title> be viewable in the title
title
bar. (Tip)
<table border="2" cellpadding="2" cellspacing="2"
width="100%">
<tr>
<tr> table row <td>Column 1</td> Column 1 Column 2
<td>Column 2</td>
</tr>
</table>
<tt> teletype <tt>Example</tt> Example
<u> underline <u>Example</u> Example
Example 1:<br> Example 1:
<br>
<ul>  List item 1
<li>List item 1</li>  List item 2
<li>List item 2</li>
</ul>
<br>
Example 2:
Example 2:<br>
<ul> unordered list
<ul type="disc">
<li>List item 1</li>  List item 1
<li>List item 2</li>  List item 2
<ul type="circle"> o List item
<li>List item 3</li> 3
<li>List item 4</li> o List item
</ul> 4
</ul>

You might also like