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

HTML Tags Reference

This document provides definitions and descriptions of common HTML tags and their attributes. It lists over 50 different tags (such as <A>, <BODY>, <FORM>, <IMG>) and summarizes their purpose and most important attributes like HREF, SRC, NAME, etc. The document acts as a reference for basic HTML tags and syntax.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

HTML Tags Reference

This document provides definitions and descriptions of common HTML tags and their attributes. It lists over 50 different tags (such as <A>, <BODY>, <FORM>, <IMG>) and summarizes their purpose and most important attributes like HREF, SRC, NAME, etc. The document acts as a reference for basic HTML tags and syntax.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 13

Sunbeam Institute of Information Technology

Tag Name Attributes


<!-- -->
HTML Comment
<!DOCTYPE ...>

<A ...> Anchor HREF: URL you are linking to
NAME: name a section of the page
TARGET = "_blank" | "_paren" | "_!el"" | "_#p" | window name
which winow the ocument shoul go in
T$T%E: suggeste title for the ocument to !e opene
#nCl&'k: script to run when the user clicks on this anchor
#nM#(!eO)er: when the mouse is o"er the link
#nM#(!eO(: when the mouse is no longer o"er the link
ACCE**+EY
<ADDRE**>

<APP ...>

<APP%ET ...>
CODE: the applet to run
CODE,A*E: path to the applet class
-$DTH: with of the applet
HE$GHT: height of the applet
A%$GN = %EFT | R$GHT | TOP | M$DD%E | ,OTTOM | ,A*E%$NE
alignment of applet to surrouning te#t
.*PACE: "ertical space !etween applet an surrouning te#t
H*PACE: hori$ontal space !etween applet an surrouning te#t
,ORDER: empty space surrouning the applet
NAME: name of applet for reference !y other applets
ARCH$.E: a compresse collection of applet components
MAY*CR$PT: %f &a"a can use &a"a'cript
<AREA ...>
HREF: URL you are linking to
A%T: alternate te#t if the image isn(t isplaye
*HAPE = RECT | C$RC%E | PO%Y | DEFA/%T
what shape is this area)
COORD*: coorinates for the link area shape
T$T%E: 'hort escription of the area
*
Sunbeam Institute of Information Technology
TARGET: what frame to go to
NOHREF: this area is not a link
#nCl&'k: script action when the user clicks this area
#nM#(!eO)er
#nM#(!eO(
<,> +ol
<,A*E ...> +ase Aress HREF: efault aress for hyperte#t links
TARGET = "_blank" | "_paren" | "_!el"" | "_#p" | frame name
efault winow for linke ocuments
<,A*EFONT ...> *$0E
CO%OR
FACE
<,G*O/ND ...>
*RC: URL of the soun
%OOP = $NF$N$TE | number of loops
how many times to play the soun
<,$G>

<,%$N+>

<,%OC+1/OTE ...> +lock ,uote
<,ODY ...>
,GCO%OR: !ackgroun color of the page
,AC+GRO/ND: !ackgroun picture for the page
TE2T: color of the te#t on the page
%$N+: color of links that ha"en(t !een followe yet
.%$N+: color of links that ha"e !een followe
A%$N+: color of links while you are clicking on them
,GPROPERT$E* = F$2ED
if the !ackgroun image shoul not scroll
TOPMARG$N: si$e of top an !ottom margins
%EFTMARG$N: si$e of left an right margins
MARG$NHE$GHT: si$e of top an !ottom margins
MARG$N-$DTH: si$e of left an right margins
#n%#a3: 'cript to run once the page is fully loae
#n/nl#a3
#nF#'(!
#n,l(r
-
Sunbeam Institute of Information Technology
*TY%E*RC: M' .ront/age e#tension
*CRO%% = YE* | NO
%f the ocument shoul ha"e a scroll !ar
<,R ...> Line +reak C%EAR = %EFT | R$GHT | A%% | ,OTH
go past a picture or other o!0ect
<,/TTON ...>
TYPE = ,/TTON | */,M$T | RE*ET
what type of !utton is this
#nCl&'k: script to run when the user clicks here
NAME: name of this !utton element
.A%/E: the "alue sent with the form
D$*A,%ED: isa!le this !utton
ACCE**+EY: shortcut key for this !utton
TA,$NDE2: ta! orer
<CAPT$ON ...>
A%$GN = TOP | ,OTTOM | %EFT | R$GHT
alignment of caption to ta!le
.A%$GN = TOP | ,OTTOM
if caption shoul !e a!o"e or !elow ta!le
<CENTER ...>

<C$TE> Citation
<CODE>

<CO% ...> Column *PAN: how many columns this affects
A%$GN = %EFT | CENTER | R$GHT | 4/*T$FY
hori$ontal alignment
-$DTH: with of the column
,GCO%OR: !ackgroun color of the column
<CO%GRO/P ...> Column 1roup *PAN: how many columns this affects
A%$GN: alignment of cell contents
-$DTH: 2ith of the column group
<COMMENT>

<DD> 3efinition 3escription
<DE%> 3elete
<DFN> 3efinition
<D$R ...> 3irectory List
<D$. ...>
A%$GN = %EFT | CENTER | R$GHT | 4/*T$FY
4
Sunbeam Institute of Information Technology
te#t alignment
<D% ...> 3efinition List COMPACT: take up less space
<DT> 3efinition Term
<EM> 5mphasis
<EM,ED ...>
*RC: URL of resource to !e em!ee
-$DTH: with of area in which to show resource
HE$GHT: height of area in which to show resource
A%$GN = A,*,OTTOM | A,*M$DD%E | M$DD%E | TE2TTOP | R$GHT | %EFT
| ,A*E%$NE | CENTER | ,OTTOM | TOP
how te#t shoul flow aroun the picture
NAME: name of the em!ee o!0ect
P%/G$N*PAGE: where to get the plugin software
P%/G$N/R%: where to get the &AR archi"e for automatic installation
H$DDEN = FA%*E | TR/E
if the o!0ect is "isi!le or not
HREF: make this o!0ect a link
TARGET: frame to link to
A/TO*TART = TR/E | FA%*E
if the soun6mo"ie shoul start automatically
%OOP = TR/E | FA%*E | # of loops
how many times to play the soun6mo"ie
P%AYCO/NT: how many times to play the soun6mo"ie
.O%/ME: how lou to play the soun
CONTRO%* = .O%/ME%E.ER | *TOP,/TTON | PA/*E,/TTON |
P%AY,/TTON | *MA%%CON*O%E | CON*O%E
which soun control to isplay
CONTRO%%ER = TR/E | FA%*E
if controls shoul !e isplaye
MA*TER*O/ND: inicates the o!0ect in a soun group with the soun
to use
*TARTT$ME: how far into the soun to start an stop
ENDT$ME: when to finish playing
<F$E%D*ET>

<FONT ...>
*$0E: si$e of the font
CO%OR: color of the te#t
7
Sunbeam Institute of Information Technology
FACE: set the typestyle for te#t
PO$NT-*$0E
-E$GHT
<FORM ...>
ACT$ON: URL of the C1% program
METHOD = GET | PO*T
how to transfer the ata to the C1%
NAME: name of this form
ENCTYPE = "5(l&par6"#r5-3aa" | "appl&'a&#n67-888-
"#r5-(rlen'#3e3" | "e76pla&n"
what type of form this is
TARGET = "_blank" | "_paren" | "_!el"" | "_#p" | frame name
what frames to put the results in
#n*(b5&: script to run !efore the form is su!mitte
#nRe!e: script to run !efore the form is reset
<FRAME ...>
*RC: what file to put in the frame
NAME: the name of the frame
*CRO%%$NG = YE* | NO | A/TO
shoul the frame ha"e a scroll!ar)
NORE*$0E: on(t let the user make the frame !igger or smaller
FRAME,ORDER = YE* | 9 | NO | :
shoul this frame ha"e a !orer)
,ORDERCO%OR: color of the surrouning !orer
MARG$N-$DTH: the internal left an right margins for the frame
MARG$NHE$GHT: the internal top an !ottom margins for the frame
<FRAME*ET ...>
CO%*: how many cols in the frameset
RO-*: how many rows in the frameset
FRAME,ORDER = YE* | 9 | NO | :
if the frames shoul ha"e !orers
FRAME*PAC$NG: space !etween the frames
,ORDER: space !etween frames
,ORDERCO%OR: color of frame !orers
<H; ...> Heaers<H9 ...>8 <H< ...>8
<H= ...>8
<H> ...>8
<H? ...>8
<H@ ...>
A%$GN = %EFT | R$GHT | CENTER | 4/*T$FY
alignment
9
Sunbeam Institute of Information Technology
<HEAD>

<HR ...> Hori$ontal Rule NO*HADE: on(t use shaow effect
*$0E: height
-$DTH: hori$ontal with of the line
A%$GN = %EFT | R$GHT | CENTER
hori$ontal alignment of the line
CO%OR: color of the line
<HTM%>

<HTM%P%/* ...>

<HYPE>

<$> %talics
<$FRAME ...> %nline .rame *RC: URL of the ocument to go in the frame
HE$GHT: height of the inline frame
-$DTH: with of the inline frame
NAME: name of this inline frame
%ONGDE*C: URL of a long escription of the contents of the frame
FRAME,ORDER = 9 | :
if the frame shoul ha"e a !orer aroun it
MARG$N-$DTH: internal left6right margin for the frame
MARG$NHE$GHT: internal top6!ottom margin for the frame
*CRO%%$NG = YE* | NO | A/TO
if the frame shoul ha"e scroll !ars
A%$GN = %EFT | R$GHT | TOP | TE2TTOP | M$DD%E | A,*M$DD%E |
CENTER | ,OTTOM | A,*,OTTOM | ,A*E%$NE
alignment of the frame o!0ect to te#t aroun it
.*PACE: space a!o"e an !elow the frame
H*PACE: space to the left an right of the frame
<$MG ...> %mage *RC: where to get the picture
A%T: te#t to show if you on(t show the picture
NAME
%ONGDE*C: URL of a long escription of the image
-$DTH: how wie is the picture
HE$GHT: how tall is the picture
:
Sunbeam Institute of Information Technology
A%$GN = %EFT | R$GHT | TOP | TE2TTOP | M$DD%E | A,*M$DD%E |
,OTTOM | A,*,OTTOM | ,A*E%$NE
how te#t shoul flow aroun the picture
,ORDER: !orer aroun the picture
H*PACE: hori$ontal istance !etween the picture an the te#t
.*PACE: "ertical istance !etween the picture an the te#t
$*MAP: is this a clicka!le map)
/*EMAP: name of the map efinition
%O-*RC: a "ersion of the picture that isn(t such a !ig file
NAT/RA%*$0EF%AG: meaningless
NO*A.E: meaningless
DYN*RC: play a mo"ie file
CONTRO%*: show the !uttons which control the mo"ie
%OOP = $NF$N$TE | -9 | # of loops
how many times to loop the mo"ie
*TART = F$%EOPEN | MO/*EO.ER
when to start playing the mo"ie
#n%#a3: script to runs after the image is ownloae
*/PPRE** = TR/E | FA%*E
3on(t show icons of images that ha"en(t ownloae yet
<$NP/T ...>
TYPE = TE2T | CHEC+,O2 | RAD$O | PA**-ORD | H$DDEN | */,M$T |
RE*ET | ,/TTON | F$%E | $MAGE
what type of fiel
NAME: name of this form fiel
.A%/E: initial or only "alue of this fiel
*$0E: how wie the te#t fiel shoul !e
MA2%ENGTH: ma#imum num!er of characters
CHEC+ED: check this check!o# or raio !utton
,ORDER: !orer aroun image
*RC: URL of image
A%T: te#t to show if you on(t show the picture
%O-*RC: a "ersion of the picture that isn(t such a !ig file
-$DTH: with of image
HE$GHT: height of image
;
Sunbeam Institute of Information Technology
A%$GN = %EFT | R$GHT | TOP | TE2TTOP | M$DD%E | A,*M$DD%E |
CENTER | ,OTTOM | A,*,OTTOM | ,A*E%$NE
how te#t shoul flow aroun the picture
.*PACE: "ertical istance !etween the picture an the te#t
H*PACE: hori$ontal istance !etween the picture an the te#t
READON%Y: the "alue of this fiel cannot !e change
D$*A,%ED: on(t let the user o anything with this fiel
ACCE**+EY
TA,$NDE2: ta! orer
%ANG/AGE = "4a)a*'r&p" | "4a)a*'r&p9.9" | "4*CR$PT" |
".,*'r&p" | ".,*" | other language
scripting language to use
#nCl&'k: when the user clicks here
#nCAanBe: when this fiel is change
#nF#'(!: when this fiel gets the focus
#n,l(r: when this fiel loses the focus
#n+eCPre!!: script to run when a key is presse
#n+eC/p: script for when a key goes up while the fiel has the focus
#n+eCD#8n: script for when a key goes own while the fiel has the
focus
A/TOCOMP%ETE = ON | OFF
%f the !rowser shoul use autocompletion for the fiel
<$N*> %nserte<DE%>
<$*$NDE2 ...>
PROMPT: prompt string to show !efore the te#t entry area
ACT$ON: the C1% to call
<+,D> <ey!oar
<%A,E% ...>
FOR: form element for which this is a la!el
<%EGEND ...>
A%$GN = R$GHT | CENTER | %EFT
<%$ ...> List %tem TYPE = D$*C | C$RC%E | *1/ARE | 9 | A | a | $ | &
type of !ullet or numeral
.A%/E: where to continue counting
<%$N+ ...>
RE%: relationship to this page
RE.: re"erse relationship to this page
HREF: URL of relate ocument
=
Sunbeam Institute of Information Technology
T$T%E: suggeste title
MED$A = *CREEN | PR$NT | PRO4ECT$ON | A/RA% | ,RA$%%E | A%% |
other media
2hat meia type the link applies to
TYPE: M%M5 type of linke resource
<%$*T$NG>

<MAP ...>
NAME: name of this map
<MAR1/EE ...>
-$DTH: how wie the mar>uee is
HE$GHT: how tall the mar>uee is
D$RECT$ON = %EFT | R$GHT
which irection the mar>uee shoul scroll
,EHA.$OR = *CRO%% | *%$DE | A%TERNATE
what type of scrolling
*CRO%%DE%AY: how long to elay !etween each 0ump
*CRO%%AMO/NT: how far to 0ump
%OOP = $NF$N$TE | number of loops
how many times to loop
,GCO%OR: !ackgroun color
H*PACE: hori$ontal space aroun the mar>uee
.*PACE: "ertical space aroun the mar>uee
<MEN/ ...>

<META ...>
NAME = +EY-ORD* | DE*CR$PT$ON | REFRE*H | many others
The pupose of this M5TA tag
HTTP-E1/$.: ?ame of the preten HTT/ heaer
CONTENT: Metainformation content
<M/%T$CO% ...>
CO%*: how many columns
G/TTER: space !etween columns
-$DTH: with of a single column
<NO,R> ?o +reak
<NOEM,ED>

<NOFRAME*>

<NO*CR$PT>

<O% ...> @rere List TYPE = 9 | A | a | $ | &
type of numerals
A
Sunbeam Institute of Information Technology
*TART: where to start counting
<OPT$ON ...>
.A%/E: what(s the "alue if this option is chosen
*E%ECTED: this option is selecte !y efault
<P ...> /aragraph A%$GN = %EFT | CENTER | R$GHT | 4/*T$FY
alignment of te#t within the paragraph
C%EAR = %EFT | R$GHT | A%% | ,OTH
mo"e past picture an other o!0ects
<PARAM ...> /arameter NAME: name of the parameter
.A%/E: "alue of the parameter
<P%A$NTE2T>

<PRE ...> /reformatte Te#t
<*> 'trikeout
<*AMP> 'ample
<*CR$PT ...>
TYPE = "e76Da)a!'r&p" | "e76)b!'r&p" | other
scripting language
2hich scripting language to use
*RC: 5#ternal source for script
DEFER: Continue loaing page while ownloaing script
%ANG/AGE = 4A.A*CR$PT | %$.E*CR$PT | .,*CR$PT | other
3eprecate inicator of language
FOR: o!0ect for which this script is an e"ent hanler
E.ENT: the e"ent this script hanles
<*E%ECT ...>
NAME: name of this form element
M/%T$P%E: allow more than one choice
*$0E: how many options to show
READON%Y: on(t let the user change the "alue of this fiel
D$*A,%ED: on(t let the user o anything with this fiel
%ANG/AGE = "4a)a*'r&p" | "4a)a*'r&p9.9" | ".,*'r&p" |
other language
scripting language to use
#nCAanBe: what to o when a new option is selecte
TA,$NDE2: ta! orer
#nF#'(!: script to run when this fiel gets the focus
#n,l(r: script to run when this fiel loses the focus
*B
Sunbeam Institute of Information Technology
<*MA%%>

<*O/ND ...>

<*PACER ...>
TYPE = HOR$0ONTA% | .ERT$CA% | ,%OC+
what type of space is this
A%$GN = %EFT | R$GHT
align left or right
*$0E: how tall or wie
-$DTH: how wie
HE$GHT: how tall
<*PAN ...>

<*TR$+E> 'trikeout<*>
<*TRONG>

<*TY%E ...>
TYPE: style language
MED$A: type of meia this syle applies to
<*/,> 'u!script
<*/P> 'uperscript
<TA,%E ...>
,ORDER: si$e of !orer aroun the ta!le
CE%%PADD$NG: space !etween the ege of a cell an the contents
CE%%*PAC$NG: space !etween cells
-$DTH: with of the ta!le as a whole
,GCO%OR: color of the !ackgroun
,AC+GRO/ND: picture to use as !ackgroun
A%$GN = %EFT | R$GHT
alignment of ta!le to surrouning te#t
H*PACE: hori$ontal space !etween ta!le an surrouning te#t
.*PACE: "ertical space !etween ta!le an surrouning te#t
HE$GHT: height of the ta!le as a whole
FRAME = .O$D | ,O2 | ,ORDER | A,O.E | ,E%O- | %H* | RH* | H*$DE* |
.*$DE*
parts of outsie !orer that are "isi!le
R/%E* = NONE | A%% | CO%* | RO-* | GRO/P*
if there shoul !e internal !orers
,ORDERCO%OR: color of !orer aroun the ta!le
,ORDERCO%OR%$GHT: color of ClightC part of !orer aroun the ta!le
**
Sunbeam Institute of Information Technology
,ORDERCO%ORDAR+: color of CarkC part of !orer aroun the ta!le
*/MMARY: 'ummary of the purpose of the ta!le
<T,ODY ...> Ta!le +oy 'ection
<TD ...> Ta!le 3ata A%$GN = %EFT | CENTER | M$DD%E | R$GHT
hori$ontal alignment of cell contents
.A%$GN = TOP | M$DD%E | CENTER | ,OTTOM | ,A*E%$NE
"ertical alignment of cell contents
-$DTH: with of cell
HE$GHT: height of cell
CO%*PAN: num!er of columns to co"er
RO-*PAN: num!er of rows to co"er
NO-RAP: on(t wor wrap
,GCO%OR: color of the !ackgroun
,ORDERCO%OR: color of !orer aroun the ta!le
,ORDERCO%ORDAR+: color of CarkC part of !orer aroun the ta!le
,ORDERCO%OR%$GHT: color of ClightC part of !orer aroun the ta!le
,AC+GRO/ND: picture to use as !ackgroun
<TE2TAREA ...>
NAME: name of this form fiel
CO%*: how many characters wie
RO-*: how many rows
-RAP = *OFT | HARD | OFF
how to wrap the te#t
READON%Y: on(t let the user change the contents of the fiel
D$*A,%ED: on(t let the user o anything with this fiel
TA,$NDE2: ta! orer
%ANG/AGE = "4a)a*'r&p" | "4a)a*'r&p9.9" | ".,*'r&p" |
other language
scripting language
#nCAanBe: 'cript to run when the user has change the te#tarea
#n+eCPre!!: script to run when a key is presse
<TFOOT ...> Ta!le .ooter 'ection
<TH ...> Ta!le Heaer
<THEAD ...> Ta!le Heaer 'ection<T,ODY
...>8 <TFOOT ...>

*-
Sunbeam Institute of Information Technology
<T$T%E>

<TR ...> Ta!le Row A%$GN = %EFT | CENTER | R$GHT
hori$ontal alignment of cell contents
HA%$GN = %EFT | CENTER | R$GHT
.A%$GN = TOP | M$DD%E | ,OTTOM | ,A*E%$NE
"ertical alignment of cell contents
,GCO%OR: !ackgroun color
,AC+GRO/ND: !ackgroun image
,ORDERCO%OR: color of !orer aroun each cell
,ORDERCO%OR%$GHT: color of ClightC part of !orer aroun each cell
,ORDERCO%ORDAR+: color of CarkC part of !orer aroun each cell
<TT> Teletype
</> Unerline
</% ...> Unorere List TYPE = D$*C | C$RC%E | *1/ARE
type of !ullets
<.AR> Daria!le
<-,R>

<2MP>

*4

You might also like