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

HTML Tages

Uploaded by

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

HTML Tages

Uploaded by

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

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/">V
<A - anchor Visit Our Site
isit Our Site</A>
<B> bold <B>Example</B> Example
<BIG> big (text) <BIG>Example</BIG> Example
body of
<BODY> documen <BODY>The content of your page</BODY> Contents of your webpage
t
The contents of your page<BR>The The contents of your page
<BR> line break
contents of 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 term
<DD> descripti
<DT>Definition Term Definition Term
on
<DD>Definition of the term Definition of the
</DL> term
<DL> Definition Term
<DT>Definition Term Definition of the
definition <DD>Definition of the term term
<DL>
list <DT>Definition Term Definition Term
<DD>Definition of the term Definition of the
</DL> term
<DL> Definition Term
<DT>Definition Term Definition of the
definition <DD>Definition of the term term
<DT>
term <DT>Definition Term Definition Term
<DD>Definition of the term Definition of the
</DL> term
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" Music will begin playing


autostart="true" hidden="false" when your page is loaded
embed
<EMBED> loop="false"> and will only play one
object
<noembed><bgsound src="yourfile.mid" time. A control panel will
loop="1"></noembed> 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 FACE="Times New Roman"
<FONT> font
SIZE="+3" Example
COLOR="#FF0000">Example</FONT>
<FORM action="mailto:you@yourdomain.co
m">
Name: <INPUT name="Name" value="" Name:
size="10"><BR>
<FORM> form Email: <INPUT name="Email" value="" Email:
size="10"><BR> Submit
<CENTER><INPUT
type="submit"></CENTER>
</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
documen document</HEAD>
t

horizonta Contents of your webpage


<HR> <HR>
l rule
Contents of your webpage
Contents of your webpage
horizonta
<HR> <HR WIDTH="50%" SIZE="3">
l rule
Contents of your webpage
Contents of your webpage
horizonta
<HR> <HR WIDTH="50%" SIZE="3" NOSHADE>
l rule
Contents of your webpage
<HR> Contents of your webpage
horizonta <HR WIDTH="75%" COLOR="#FF0000"
(Internet
l rule SIZE="4">
Explorer) Contents of your webpage
<HR> Contents of your webpage
horizonta <HR WIDTH="25%"
(Internet
Explorer)
l rule COLOR="#6699FF" SIZE="6">
Contents of your webpage
<HTML><HEAD><META><TITLE>Title of
hypertext
your
<HTML> markup Contents of your webpage
webpage</TITLE></HEAD><BODY>Webpag
language
e contents</BODY></HTML>
<I> italic <I>Example</I> Example
<IMG SRC="Earth.gif" WIDTH="41"
<IMG> image HEIGHT="41" BORDER="0" ALT="a
sentence about your site">
input
<INPUT> Example 1: Example 1:
field
<FORM METHOD=post ACTION="/cgi-
Submit
bin/example.cgi">
<INPUT type="text" size="10"
maxlength="30">
<INPUT type="Submit" VALUE="Submit">
</FORM>
Example 2:

<FORM METHOD=post ACTION="/cgi- Example 2:


<INPUT> bin/example.cgi">
input <INPUT type="text" STYLE="color:
(Internet
field #FFFFFF; font-family: Verdana; font-weight: Submit
Explorer)
bold; font-size: 12px; background-color:
#72A4D2;" size="10" maxlength="30">
<INPUT type="Submit" VALUE="Submit">
</FORM>
Example 3:
Example 3:
<FORM METHOD=post ACTION="/cgi-
bin/example.cgi">
<TABLE BORDER="0" CELLSPACING="0"
input CELLPADDING="2"><TR><TD
<INPUT>
field 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:

<FORM METHOD=post ACTION="/cgi-


bin/example.cgi">
input Enter Your Comments:<BR>
<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> Example 5:
Select an option:
<SELECT> Select an
input <OPTION >option 1 option 2
<INPUT> <OPTION SELECTED>option 2 option:
field
<OPTION>option 3 Submit
<OPTION>option 4
<OPTION>option 5
<OPTION>option 6
</SELECT><BR>
<INPUT type="Submit"
VALUE="Submit"></CENTER>
</FORM>
Example 6:
Example 6:
<FORM METHOD=post ACTION="/cgi-
bin/example.cgi">
Select an option:<BR> Select an option:
<INPUT type="radio" name="option"> Option 1
Option 1
<INPUT type="radio" name="option" Option 2
CHECKED> 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>
Example 1: Example 1:

<MENU>  List item 1


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

<OL type="i"> i. List item 1


<LI>List item 1 ii. List item 2
<LI>List item 2 iii. List item 3
<LI>List item 3
iv. List item 4
<LI>List item 4
</OL>
Visit our <A
<LINK> link HREF="http://www.yourdomain.com/">site< Visit our site
/A>
<MARQUE <MARQUEE bgcolor="#CCCCCC" loop="-1"
E> scrolling
scrollamount="2" width="100%">Example
(Internet text
Explorer) Marquee</MARQUEE>
<MENU>  List item 1
<LI type="disc">List item 1 o List item 2
<MENU> menu <LI type="circle">List item 2  List item 3
<LI type="square">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 CONTENT="4;URL=http://www.yourdomain. Nothing will show
com/">
<META http-equiv="Pragma" content="no-
<META> meta Nothing will show
cache">
<META> meta <META name="rating" content="General"> Nothing will show
<META> meta <META name="ROBOTS" content="ALL"> Nothing will show
<META NAME="ROBOTS"
<META> meta Nothing will show
content="NOINDEX,FOLLOW">
Example 1:
Example 1:
<OL>
<LI>List item 1 1. List item 1
<LI>List item 2 2. List item 2
<LI>List item 3 3. List item 3
<LI>List item 4 4. List item 4
</OL>
ordered
<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 c. List item 3
<LI>List item 3 d. List item 4
<LI>List item 4
</OL>
<FORM METHOD=post ACTION="/cgi-
bin/example.cgi">
<CENTER>
Select an option:
<SELECT>
<OPTION>option 1 Select an option:
listbox <OPTION SELECTED>option 2
<OPTION> option 2
option <OPTION>option 3
<OPTION>option 4
<OPTION>option 5
<OPTION>option 6
</SELECT><BR>
</CENTER>
</FORM>
This is an example displaying the use of the This is an example
paragraph tag. <P> This will create a line displaying the use of the
break and a space between lines. paragraph tag.

Attributes: This will create a line


break and a space
Example 1:<BR> between lines.
<BR>
<P align="left">
Attributes:
paragrap This is an example<BR>
<P>
h displaying the use<BR>
of the paragraph tag.<BR> Example 1:
<BR>
Example 2:<BR> This is an example
<BR> displaying the use
<P align="right"> of the paragraph tag.
This is an example<BR>
displaying the use<BR> Example 2:
of the paragraph tag.<BR>
<BR> This is an example
Example 3:<BR> displaying the use
<BR> of the paragraph tag.
<P align="center">
This is an example<BR> Example 3:
displaying the use<BR>
of the paragraph tag. This is an example
displaying the use
of the paragraph tag.
small
<SMALL> <SMALL>Example</SMALL> Example
(text)
strong
<STRONG>
emphasis
<STRONG>Example</STRONG> Example
Example 1:

<TABLE BORDER="4"
CELLPADDING="2" CELLSPACING="2"
WIDTH="100%">
<TR>
<TD>Column 1</TD>
<TD>Column 2</TD>
</TR>
</TABLE>
Example 1:
Example 2: (Internet Explorer)
Column 1 Column 2
<TABLE BORDER="2"
BORDERCOLOR="#336699"
CELLPADDING="2" CELLSPACING="2"
WIDTH="100%"> Example 2:
<TR>
<TABLE> table <TD>Column 1</TD>
Column 1 Column 2
<TD>Column 2</TD>
</TR>
</TABLE>
Example 3:
Example 3:

<TABLE CELLPADDING="2" Column 1 Column 2


CELLSPACING="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>
<TD> table data <TD>Column 1</TD>
<TD>Column 2</TD> Column 1 Column 2
</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> Column Column Column
</TR> 1 2 3
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>
Title of your webpage will
documen
<TITLE> <TITLE>Title of your webpage</TITLE> be viewable in the title
t title
bar.
<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>
<BR> Example 1:
<UL>
<LI>List item 1  List item 1
<LI>List item 2  List item 2
</UL>
<BR>
unordere Example 2:<BR>
<UL> Example 2:
d list <UL type="disc">
<LI>List item 1
<LI>List item 2  List item 1
<UL type="circle">  List item 2
<LI>List item 3 o List item 3
<LI>List item 4 o List item 4
</UL>
</UL>

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy