Você está na página 1de 9

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
<!-- comment Nothing will show (Tip)
of a 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> <big>Example</big> Example (Tip)
(text)
body of
HTML <body>The content of Contents of your web
<body>
documen your HTML page</body> page (Tip)
t
The contents of your
line The contents of your page<br>The web page
<br>
break contents of your page The contents of your
web page

<center>This will center your


<center> center This will center your
contents</center>
contents
<dl> Definition Term
definitio <dt>Definition Term</dt> Definition of
n <dd>Definition of the term</dd> the term
<dd>
descripti <dt>Definition Term</dt> Definition Term
on <dd>Definition of the term</dd> Definition of
</dl> the term
<dl> Definition Term
<dt>Definition Term</dt> Definition of the
definitio <dd>Definition of the term</dd> term
<dl>
n 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
definitio <dd>Definition of the term</dd> term
<dt>
n term <dt>Definition Term</dt> Definition Term
<dd>Definition of the term</dd> Definition of the
</dl> term
emphasi This is an <em>Example</em> of using This is an Example of
<em>
s the emphasis tag using the emphasis tag
<embed src="yourfile.mid"
embed
<embed> width="100%" height="60"
object (Tip)
align="center">
<embed src="yourfile.mid" Music will begin playing
autostart="true" hidden="false" when your page is
embed
<embed> loop="false"> loaded and will only play
object
<noembed><bgsound src="yourfile.mid" one time. A control
loop="1"></noembed> panel will be displayed
to enable your visitors
to stop the music.
<font face="Times New
<font> font Example (Tip)
Roman">Example</font>
<font face="Times New Roman"
<font> font
size="4">Example</font> Example (Tip)
<font face="Times New Roman"
<font> font size="+3"
color="#ff0000">Example</font>
Example  (Tip)

<form action="mailto:you@yourdomain.
com">
Name: <input name="Name" value=""
Name:   (Tip) 
size="10"><br> 
<form> form Email: <input name="Email" value="" Email: 
size="10"><br>
<center><input Submit
type="submit"></center>
</form>
heading
1
heading
<h1> 2 <h1>Heading 1 Example</h1>
<h2> heading <h2>Heading 2 Example</h2>
<h3> 3 <h3>Heading 3 Example</h3>
<h4> heading <h4>Heading 4 Example</h4>
<h5> 4 <h5>Heading 5 Example</h5>
<h6> heading <h6>Heading 6 Example</h6>
5
heading
6
heading
of HTML <head>Contains elements describing the
<head> Nothing will show
documen document</head>
t

Contents of your web


horizont page (Tip)
<hr> <hr />
al rule
Contents of your web
page
Contents of your web
page
horizont
<hr> <hr width="50%" size="3" />
al rule
Contents of your web
page
<hr> horizont <hr width="50%" size="3" noshade /> Contents of your web
page
al rule
Contents of your web
page
Contents of your web
<hr> page
horizont <hr width="75%" color="#ff0000"
(Internet 
al rule size="4" />
Explorer) Contents of your web
page
Contents of your web
<hr> page
horizont <hr width="25%" color="#6699ff"
(Internet 
al rule size="6" />
Explorer) Contents of your web
page
<html>
<head>
<meta>
hypertex
<title>Title of your web page</title> Contents of your web
<html> t markup
</head> page
language
<body>HTML web page contents
</body>
</html>
<i> italic <i>Example</i> Example
<img src="Earth.gif" width="41"
<img> image height="41" border="0" alt="text
describing the image" />  (Tip)
Example 1:

<form method=post action="/cgi- Example 1: (Tip)


input bin/example.cgi">
<input>
field <input type="text" size="10" Submit
maxlength="30">  
<input type="Submit" value="Submit">
</form>
Example 2:

<form method=post action="/cgi-


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

<form method=post action="/cgi-


Example 3: (Tip)
bin/example.cgi">
input
<input> <table border="0" cellspacing="0"
field
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>
Example 4:
Example 4: (Tip)
<form method=post action="/cgi-
bin/example.cgi">
Enter Your Comments:<br>
input
<input> <textarea wrap="virtual"
field
name="Comments" rows=3 cols=20
maxlength=100></textarea><br>
<input type="Submit" value="Submit"> Submit Clear
<input type="Reset" value="Clear">  
</form>
Example 5:

<form method=post action="/cgi-


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

<form method=post action="/cgi- Example 6: (Tip)


bin/example.cgi">
Select an option:<br> Select an option:
<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
input Option 3
<input>
field <br>
Select an option:
<br>
Select an option:<br>  Selection 1
<input type="checkbox"
name="selection"> Selection 1  Selection 2
<input type="checkbox"
name="selection" checked>Selection 2  Selection 3
<input type="checkbox" Submit
name="selection"> Selection 3
<input type="Submit" value="Submit">
</form>
<li> list item Example 1: Example 1: (Tip)
 List item 1
<menu>
<li type="disc">List item 1</li>
o List item 2
<li type="circle">List item 2</li>
<li type="square">List item 3</li>
</MENU>  List item 3

Example 2:
Example 2:
<ol type="i">
<li>List item 1</li>
i. List item 1
<li>List item 2</li>
ii. List item 2
<li>List item 3</li>
iii. List item 3
<li>List item 4</li>
</ol>
iv. List item 4
<head>
<link rel="stylesheet" type="text/css"
<link> link
href="style.css" />
</head>

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


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

<menu>  List item 1


<li type="disc">List item 1</li>
<menu> menu <li type="circle">List item 2</li> o List item 2
<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 CONTENT="4;URL=http://www.yourdoma Nothing will show (Tip)
in.com/">
<meta http-equiv="Pragma"
<meta> meta Nothing will show (Tip)
content="no-cache">
<meta name="rating"
<meta> meta Nothing will show (Tip)
content="General">
<meta> meta <meta name="robots" content="all"> Nothing will show (Tip)
<meta name="robots"
<meta> meta Nothing will show (Tip)
content="noindex,follow">
<ol> ordered Numbered Numbered
list 1. List item 1
<ol> 2. List item 2
<li>List item 1</li> 3. List item 3
<li>List item 2</li> 4. List item 4
<li>List item 3</li>
<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>
</ol> Lowercase Letters

Lowercase Letters a. List item 1


b. List item 2
<ol type="a"> c. List item 3
<li>List item 1</li> d. List item 4
<li>List item 2</li>
<li>List item 3</li> Capital Letters
<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
<li>List item 2</li> Special Start
<li>List item 3</li>
<li>List item 4</li>
</ol> C. List item 1
D. List item 2
Capital Letters Special Start E. List item 3
F. List item 4
<ol type="A" start="3">
<li>List item 1</li> Lowercase Roman
<li>List item 2</li> Numerals
<li>List item 3</li>
<li>List item 4</li> i. List item 1
</ol> ii. List item 2
iii. List item 3
Lowercase Roman Numerals iv. List item 4

<ol type="i"> Capital 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
Capital Roman Numerals
Capital Roman
<ol type="I"> Numerals Special
<li>List item 1</li> 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

Capital Roman Numerals Special Start X. List item 4

<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>
listbox <option selected>option 2</option> Select an option: (Tip)
<option>
option <option>option 3</option>
<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 displaying the use of the
the paragraph tag. <p> This will create a paragraph tag.
line break and a space between lines.
This will create a line
Attributes: break 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
paragrap <br> displaying the use
<p>
h 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> <small>Example</small> Example (Tip)
(text)
<strike> deleted <strike>Example</strike> Example
text
strong
<strong> emphasi <strong>Example</strong> Example
s
Example 1:

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


cellspacing="2" width="100%">
<tr>
<td>Column 1</td>
<td>Column 2</td>
</tr>
</table>
Example 1: (Tip)
Example 2: (Internet Explorer) 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 Column 1 Column 2
<td>Column 2</td>
</tr>
</table>
Example 3: (Tip)
Example 3:

<table cellpadding="2" cellspacing="2" Column 1 Column 2


width="100%"> Row 2 Row 2
<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>
table
<td> <td>Column 1</td>
data Column 1 Column 2
<td>Column 2</td>
</tr>
</table>
<th> table <div align="center"> Colum Colum Colum
header <table>
<tr>
n1 n2 n3
<th>Column 1</th> Row 2 Row 2 Row 2
<th>Column 2</th> Row 3 Row 3 Row 3
<th>Column 3</th> Row 4 Row 4 Row 4
</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>
Title of your web page
documen
<title> <title>Title of your HTML page</title> will be viewable in the
t title
title bar. (Tip)
<table border="2" cellpadding="2"
cellspacing="2" width="100%">
<tr>
table <td>Column 1</td>
<tr> Column 1 Column 2
row <td>Column 2</td>
</tr>
</table>
<tt> teletype <tt>Example</tt> Example
underlin
<u> <u>Example</u> Example
e

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:
unordere Example 2:<br>
<ul>
d 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>
</ul> o List item
</ul> 4

Você também pode gostar