Docsity

Html tags with uses examples, Study Guides, Projects, Research of Programming Languages

Toggle sidebar
bg1
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.
Ta g Na m e C od e E xam ple B ro w ser Vie w
<!-- co m m e nt < !- -This can be viewed in the
HTML
part of a
document--> Nothing will show (Tip)
<a - an ch or < a hr ef=
"http://www.domain.com/">
Visit Our Site< / a> Visit Our Site (Tip)
<b>
bold < b > Example< / b> E x a m p le
<big> b ig (t ex t)
< big> Example< / b ig>
Example
(Tip)
<body>
b od y o f
HTML
d oc um e n
t
< bod y> The content of
your HTML page< / bod y> Contents of your web
page (Tip)
<br> lin e
bre ak The contents of your page< br> The contents
of your page
ts of your web
page
The contents of your web
page
<center> ce nte r < cen ter >
This will center your
contents< / cente r>
This will center your
contents
<dd> d efin itio n
descripti
on
<dl>
<dt>Definition Term</dt>
< dd > D efin iti on of the te rm < / dd >
<dt>Definition Term</dt>
< dd > D efin iti on of the te rm < / dd >
</dl>
Definition Term
D efinit ion of t he
ter m
Definition Term
D efinit ion of t he
ter m
<dl> d efin itio n
list
< d l>
<dt>Definition Term</dt>
<dd>Definition of the term</dd>
<dt>Definition Term</dt>
<dd>Definition of the term</dd>
< / d l>
Definition Term
Definition of the
term
Definition Term
Definition of the
term
<dt> d efin ition
ter m
<dl>
< dt > D efin itio n Ter m< / d t>
<dd>Definition of the term</dd>
< dt > D efin itio n Ter m< / d t>
<dd>Definition of the term</dd>
</dl>
D efinit ion Ter m
Definition of the
term
D efinit ion Ter m
Definition of the
term
<em> em p h as is
This is an
< em >
Example
< / e m>
of using
the emphasis tag
This is an
Example
of using
the emphasis tag
<embed> e m bed
obj ect < e m bed
src="yourfile.mid" width="100%"
height="60" align="center">
(Tip)
<embed> e m bed
obj ect
<emb e d src="yourfile.mid" autostart="true"
hidden="false" loop="false">
<noembed><bgsound src="yourfile.mid"
loop="1"></noembed>
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.
<font> font < font
face="Times New
Roman">Example< / fon t> Example (Tip)
pf3
pf4
pf5
pf8

Partial preview of the text

Download Html tags with uses examples and more Study Guides, Projects, Research Programming Languages in PDF only on Docsity!

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. Ta g N a m e Cod e E x a m p le B r o w ser View ** Nothing will show (Tip)

Visit Our Site < / a> Visit Our Site (Tip) b o ld < b > Example < / b > E x a m p le

b ig ( t e x t ) < b ig > Example < / b ig > Example (Tip)

b od y o f H TML d o cu m e n t < b o d y > The content of your H TML page < / b o d y > Contents of your web page (Tip)
lin e b r e ak^ The contents of your page of your page < b r >^ The contents The contents of your web page The contents of your web page ce n t e r < ce n t e r > This will center your contents < / ce n t e r > This will center your contents

d e fin it io n d escr ip t i o n

Definition Term < d d > D e fin it io n of t h e t er m < / d d > Definition Term < d d > D e fin it io n of t h e t er m < / d d >

Definition Term D e fin it io n o f t h e t e r m Definition Term D e fin it io n o f t h e t e r m

d e fin it io n list < d l> Definition Term Definition of the term Definition Term Definition of the term < / d l> Definition Term Definition of the term Definition Term Definition of the term

d e fin it io n t e r m

< d t> D e fin itio n Te r m < / d t > Definition of the term < d t> D e fin itio n Te r m < / d t > Definition of the term

D e fin it io n Ter m Definition of the term D e fin it io n Ter m Definition of the term e m p h a sis This is an^ < em >^ Example < / e m >^ of using the emphasis tag This is an Ex ample of using the emphasis tag

e m b ed o b j e ct < e m b ed src="yourfile.mid" width="100%" height="60" align="center"> (Tip) e m b ed o b j e ct < e m b e d src="yourfile.mid" autostart="true" hidden="false" loop="false">

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. fo n t < fo n t^ face="Times New Roman">Example < / fo n t > Example (Tip)

in p u t fie ld Example 1:

< in p u t type="text" size="10" maxlength="30"> < in p u t type="Submit" value="Submit">

Example 1: (Tip) Submit

(Internet Explorer) in p u t fie ld Example 2:

< in p u t type="text" style="color: #ffffff; font-family: Verdana; font-weight: bold; font- size: 12px; background-color: #72a4d2;" size="10" maxlength="30"> < in p u t type="Submit" value="Submit">

Example 2: (Tip) Submit in p u t fie ld Example 3:

Example 3: (Tip) in p u t fie ld Example 4:

Enter Your Comments:

< in p u t type="Submit" value="Submit"> < in p u t type="Reset" value="Clear">

Example 4: (Tip) Submit Clear

in p u t fie ld Example 5:

Select an option:


< in p u t type="Submit" value="Submit">

Example 5: Tip) Select an option: option 2 Submit in p u t fie ld^ Example 6:^ Example 6:^ (Tip)

fo n t < fo n t face="Times New Roman"

size="4">Example < / fo n t > Example^ (Tip)

fo n t < fo n t face="Times New Roman" size="+3"

color="#ff0000">Example < / fo n t > Example^ (Tip)

fo r m < fo r m action="mailto:[email protected] "> Name:
Email:

< / fo r m > Name: (Tip) Email: Submit

h e a d in g 1 h e a d in g 2 h e a d in g 3 h e a d in g 4 h e a d in g 5 h e a d in g 6 < h 1 > Heading 1 Example < / h 1 > < h 2 > Heading 2 Example < / h 2 > < h 3 > Heading 3 Example < / h 3 > < h 4 > Heading 4 Example < / h 4 > < h 5 > Heading 5 Example < / h 5 > < h 6 > Heading 6 Example < / h 6 >

h e a d in g o f H TML d o cu m e n t < h e ad > Contains elements describing the document < / h e ad > Nothing will show h o r izo n t a l r u le < h r / > Contents of your web page (Tip) Contents of your web page h o r izo n t a l r u le < h r width="50%" size="3" /> Contents of your web page Contents of your web page h o r izo n t a l r u le < h r width="50%" size="3" noshade /> Contents of your web page Contents of your web page

(Internet Explorer) h o r izo n t a l r u le < h r width="75%" color="#ff0000" size="4" /> Contents of your web page Contents of your web page

(Internet Explorer) h o r izo n t a l r u le < h r width="25%" color="#6699ff" size="6" /> Contents of your web page Contents of your web page

h y p e r t e x t m a r k u p la n g u a g e < h t m l>

Title of your web page

H TML w eb p ag e contents

< / h t m l> Contents of your web page it a lic < i> Example < / i> Ex ample im a g e < im g src="Earth.gif" width="41" height="41" border="0" alt="text describing the image" /> (Tip)

d e le t ed t e x t < str ik e >^ Example < / st r ik e>^ Example st r on g e m p h a sis < str o n g >^ Example < / st r on g >^ E x a m p le t a b le Example 1: < t a b le b o r d e r = "4" cellpadding="2" cellspacing="2" width="100%">

Column 1 Column 2

< / t a b le > Example 2: (Internet Explorer) < t a b le b o r d e r = "2" bordercolor="#336699" cellpadding="2" cellspacing="2" width="100%">

Column 1 Column 2

< / t a b le > Example 3: < t a b le ce llp ad d in g = "2" cellspacing="2" width="100%">

Column 1 Column 2

Row 2 Row 2

< / t a b le > Example 1: (Tip) Column 1 Column 2 Example 2: (Tip) Column 1 Column 2 Example 3: (Tip) Column 1 Column 2 Row 2 Row 2 t a b le d a t a

< t d > Co lu m n 1 < / td > < t d > Co lu m n 2 < / td >

Co lu m n 1 Co lu m n 2 t a b le h e a d er

< t h > Co lu m n 1< / t h > < t h > Co lu m n 2< / t h > < t h > Co lu m n 3< / t h >

Row 2 Row 2 Row 2

Row 3 Row 3 Row 3 Colum n 1 Colum n 2 Colum n 3 Row 2 Row 2 Row 2 Row 3 Row 3 Row 3 Row 4 Row 4 Row 4

Select an option:
< in p u t type="radio" name="option"> Option 1 < in p u t type="radio" name="option" checked> Option 2 < in p u t type="radio" name="option"> Option 3

Select an option:
< in p u t type="checkbox" name="selection"> Selection 1 < in p u t type="checkbox" name="selection" checked> Selection 2 < in p u t type="checkbox" name="selection"> Selection 3 < in p u t type="Submit" value="Submit">

Select an option: Option 1 Option 2 Option 3 Select an option: Selection 1 Selection 2 Selection 3 Submit list it em Example 1:

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

Example 2:

< li> List item 1 < / li> < li> List item 2 < / li> < li> List item 3 < / li> < li> List item 4 < / li>

Example 1: (Tip)

 List it em 1

o List it em 2

 List it em 3

Example 2: i. List it em 1 ii. List it em 2 iii. List it em 3 iv. List it em 4 lin k

(Internet Explorer) scr ollin g t e x t < m a r q u e e bgcolor="#cccccc" loop="-1" scrollamount="2" width="100%">Example Marquee < / m a r q u e e > (Tip) m e n u < m e n u > List item 1 List item 2 List item 3 < / m e n u >

 List item 1

o List item 2

 List item 3

m e t a < m e t a name="Description" content="Description of your site"> < m e t a name="keywords" content="keywords describing your site"> Nothing will show (Tip) m e t a < m e t a HTTP-EQUIV="Refresh" CONTENT="4;URL=http://www.yourdomain.c om/"> Nothing will show (Tip)

Row 4 Row 4 Row 4

d o cu m e n t t it le < t it le >^ Title of your^ H TML p ag e < / t itle > Title of your web page will be viewable in the title bar.(Tip) <tr> t a b le r o w <table border="2" cellpadding="2" cellspacing="2" width="100%"> < t r > <td>Column 1</td> <td>Column 2</td> < / t r > </table> Co lu m n 1 Co lu m n 2

<tt> t e le t y p e < t t > Example < / t t > Example

<u> u n d er lin e <u>Example</u> Example <ul> u n o r d e r e d list Example 1:<br> <br> < u l> <li>List item 1</li> <li>List item 2</li> < / u l> <br> Example 2:<br> < u l ty p e = " d isc" > <li>List item 1</li> <li>List item 2</li> < u l ty p e = " cir cle " > <li>List item 3</li> <li>List item 4</li> < / u l> < / u l> Example 1:

 List item 1

 List item 2

Example 2:

 List item 1

 List item 2

o List item 3

o List item 4