0% found this document useful (0 votes)
6 views

HTML Tags

List of all html tags

Uploaded by

Vistas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

HTML Tags

List of all html tags

Uploaded by

Vistas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

HTML Tags Chart

Tag Name Code Example Browser View


<!--This can be viewed in the HTML part of a
<!-- comment Nothing will show
document-->
<A HREF="http://www.yourdomain.com/">Visit Our
<A - anchor Visit Our Site
Site</A>
<B> bold <B>Example</B> Example
<BIG> big (text) <BIG>Example</BIG> Example
body of
<BODY> <BODY>The content of your page</BODY> Contents of your webpage
document
The contents of your page<BR>The contents of The contents of your page
<BR> line break
your page The contents of your page
<CENTER>This will center your This will center your
<CENTER> center
contents</CENTER> contents
<DL>
Definition Term
<DT>Definition Term
Definition of the
definition <DD>Definition of the term
<DD> term
description <DT>Definition Term
Definition Term
<DD>Definition of the term
Definition of the term
</DL>
<DL>
Definition Term
<DT>Definition Term
Definition of the
definition <DD>Definition of the term
<DL> term
list <DT>Definition Term
Definition Term
<DD>Definition of the term
Definition of the term
</DL>
<DL>
Definition Term
<DT>Definition Term
Definition of the
definition <DD>Definition of the term
<DT> term
term <DT>Definition Term
Definition Term
<DD>Definition of the term
Definition of the term
</DL>
This is an <EM>Example</EM> of using This is an Example of
EM> emphasis
the emphasis tag using the emphasis tag
embed <EMBED src="yourfile.mid" width="100%"
<EMBED>
object height="60" align="center">

<EMBED src="yourfile.mid" autostart="true" Music will begin playing


embed hidden="false" loop="false"> when your page is loaded
<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 FACE="Times New
<FONT> font
Roman">Example</FONT>
Example
<FONT FACE="Times New Roman"
<FONT> font
SIZE="4">Example</FONT> Example
<FONT> font
<FONT FACE="Times New Roman" SIZE="+3"
COLOR="#FF0000">Example</FONT> Example
<FORM action="mailto:[email protected]">
Name: <INPUT name="Name" value="" Name:
size="10"><BR>
Email:
<FORM> form Email: <INPUT name="Email" value=""
size="10"><BR>
<CENTER><INPUT type="submit"></CENTER> Bottom of Form
</FORM>
<H1> heading 1 <H1>Heading 1 Example</H1> Heading 1 Example
<H2> heading 2 <H2>Heading 2 Example</H2> Heading 2 Example
<H3> heading 3 <H3>Heading 3 Example</H3> Heading 3 Example
<H4> heading 4 <H4>Heading 4 Example</H4> Heading 4 Example
<H5> heading 5 <H5>Heading 5 Example</H5> Heading 5 Example
<H6> heading 6 <H6>Heading 6 Example</H6> Heading 6 Example
heading of <HEAD>Contains elements describing the
<HEAD> Nothing will show
document document</HEAD>

horizontal Contents of your webpage


<HR> <HR>
rule
Contents of your webpage
Contents of your webpage
horizontal
<HR> <HR WIDTH="50%" SIZE="3">
rule
Contents of your webpage
Contents of your webpage
horizontal
<HR> <HR WIDTH="50%" SIZE="3" NOSHADE>
rule
Contents of your webpage
<HR> Contents of your webpage
horizontal <HR WIDTH="75%" COLOR="#FF0000"
(Internet
rule SIZE="4">
Explorer) Contents of your webpage
<HR> Contents of your webpage
horizontal <HR WIDTH="25%"
(Internet
rule COLOR="#6699FF" SIZE="6">
Explorer) Contents of your webpage
hypertext <HTML><HEAD><META><TITLE>Title of your
<HTML> markup webpage</TITLE></HEAD><BODY>Webpage Contents of your webpage
language contents</BODY></HTML>
<I> italic <I>Example</I> Example
<IMG SRC="Earth.gif" WIDTH="41" HEIGHT="41"
<IMG> image
BORDER="0" ALT="a sentence about your site">
Example1:

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

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

<FORM METHOD=post
ACTION="/cgi-bin/example.cgi">
<INPUT> input field <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"
<INPUT> input field Example4:

<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>
Example5:

<FORM METHOD=post
ACTION="/cgi-bin/example.cgi">
<CENTER>
Select an option:
<SELECT>
<OPTION>option1
<INPUT> input field <OPTIONSELECTED>option2
<OPTION>option3
<OPTION>option4
<OPTION>option5
<OPTION>option6
</SELECT><BR>
<INPUT type="Submit"
VALUE="Submit"></CENTER>
</FORM>
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
<INPUT> input field <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>
Example 1:

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

<OL type="i">
<LI>List item 1
<LI>List item 2
<LI>List item 3
<LI>List item 4
</OL>
Visit our <A
<LINK> link Visit our site
HREF="http://www.yourdomain.com/">site</A>
<MARQUEE <MARQUEE bgcolor="#CCCCCC" loop="-1"
> scrolling
scrollamount="2" width="100%">Example
(Internet text
Explorer) Marquee</MARQUEE>
 List item 1
<MENU>
<LI type="disc">List item 1 o List item 2
<MENU> menu <LI type="circle">List item 2
<LI type="square">List item 3  List item 3
</MENU>

<META name="Description" content="Description


of your site">
<META> meta Nothing will show
<META name="keywords" content="keywords
describing your site">
<META HTTP-EQUIV="Refresh"
<META> meta Nothing will show
CONTENT="4;URL=http://www.yourdomain.com/">
Example 1: Example 1:

<OL> 1. List item 1


<LI>List item 1
2. List item 2
<LI>List item 2
<LI>List item 3 3. List item 3
<LI>List item 4 4. List item 4
ordered </OL>
<OL>
list Example 2:
Example 2:
<OL type="a"> a. List item 1
<LI>List item 1 b. List item 2
<LI>List item 2
<LI>List item 3 c. List item 3
<LI>List item 4
</OL> List item 4
<FORM METHOD=post
ACTION="/cgi-bin/example.cgi">
<CENTER>
Select an option:
<SELECT>
<OPTION>option 1
listbox <OPTION SELECTED>option 2
<OPTION>
option <OPTION>option 3
<OPTION>option 4
<OPTION>option 5
<OPTION>option 6
</SELECT><BR>
</CENTER>
</FORM>
<P> paragraph This is an example displaying the use of the This is an example
paragraph tag. <P> This will create a line break displaying the use of the
and a space between lines. paragraph tag.

Attributes: This will create a line break


and a space between lines.
Example 1:<BR>
<BR>
<P align="left"> Attributes:
This is an example<BR>
displaying the use<BR> Example 1:
of the paragraph tag.<BR>
<BR> This is an example
Example 2:<BR> displaying the use
of the paragraph tag.
<BR>
<P align="right"> Example 2:
This is an example<BR>
displaying the use<BR> This is an example
of the paragraph tag.<BR> displaying the use
<BR> of the paragraph tag.
Example 3:<BR>
<BR> Example 3:
<P align="center">
This is an example<BR> This is an example
displaying the use<BR> displaying the use
of the paragraph tag. of the paragraph tag.

small
<SMALL> <SMALL>Example</SMALL> Example
(text)
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)

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

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>
<TABLE BORDER="2" CELLPADDING="2"
CELLSPACING="2" WIDTH="100%">
<TR>
<TD> table data <TD>Column 1</TD>
<TD>Column 2</TD>
</TR>
</TABLE>
<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> Colum Colum Colum
</TR> n1 n2 n3
table Row 2 Row 2 Row 2
<TH> <TR>
header
<TD>Row 3</TD> Row 3 Row 3 Row 3
<TD>Row 3</TD> Row 4 Row 4 Row 4
<TD>Row 3</TD>
</TR>
<TR>
<TD>Row 4</TD>
<TD>Row 4</TD>
<TD>Row 4</TD>
</TR>
</TABLE>
</DIV>
document Title of your webpage will
<TITLE> <TITLE>Title of your webpage</TITLE>
title be viewable in the title bar.
<TABLE BORDER="2" CELLPADDING="2"
CELLSPACING="2" WIDTH="100%">
<TR>
<TR> table row <TD>Column 1</TD>
<TD>Column 2</TD>
</TR>
</TABLE>
<TT> teletype <TT>Example</TT> Example
<U> underline <U>Example</U> Example
Example 1:
Example 1:<BR>
<BR>
<UL>
<LI>List item 1
<LI>List item 2  List item 1
</UL>  List item 2
<BR>
unordered Example 2:<BR>
<UL>
list <UL type="disc"> Example 2:
<LI>List item 1
<LI>List item 2
<UL type="circle">  List item 1
<LI>List item 3  List item 2
<LI>List item 4 o List item 3
</UL> o List item 4
</UL>

You might also like