HOME
MAIN
PREV
HTML Meta Elements Summary
HOME
MAIN
NEXT
BASEFONT Element: Base Font for Document
Usage:
<BASEFONT>
Can Contain: empty
Can Be Inside: ADDRESS, BLOCKQUOTE, BODY, CENTER, DIV, FORM, PRE,
DD, DT, LI, P, TD, TH, Hn,
A, CAPTION, character highlighting
Attributes: COLOR,
FACE, SIZE
BASEFONT specifies the default font characteristics--primarily font
size--for all text following BASEFONT. BASEFONT should ideally
appear prior to any displayed text in the BODY of the document. Localized
changes to the font size should be implemented using the FONT
element or-better yet-- by using SPAN and stylesheets.
- Attributes:
- COLOR="#rrggbb", "color"
(optional) (Internet Explorer only) Specifies the default text color,
either as an RGB value or as a named color.
- FACE="string" (optional) (Internet Explorer
only) Specifies the default font face for the document, either as a font
name or as a sequence of comma-separated font names. The browsers will
try all fonts from left to right, and will choose the first supported
font.
- SIZE="#number" (optional) Specifies the
default font sizes, as a value from 1 to 7. Default is 3. Note that BASEFONT
does not affect the size of text inside heading elements.
- Examples: <BASEFONT SIZE="4">
HOME
MAIN
NEXT
PREV
BGSOUND Element: Background Audio/Sound (Internet Explorer only)
Usage:
<BGSOUND>
Can Contain: empty
Can Be Inside: unclear: can apparently appear inside the HEAD,
or inside any non-empty BODY element
Attributes: LOOP,
SRC
BGSOUND inserts an inline audio snippet--the URL location of the audio
file is specified by the SRC attribute. By default
- Attributes:
- LOOP="number", "infinite" (optional) Specifies the
number of times playing the audio file. LOOP=-1, or
LOOP="infinite" instruct the browser plays continuously the
sound file until the user selects another document.
- SRC="url" (mandatory) Specifies the URL
location of the sound file.
TOP
This is the BgsoundEx1.htm file:
<HTML>
<HEAD>
<TITLE>HTML BGSOUND Example 1</TITLE>
</HEAD>
<BODY>
<EMBED SRC="sounds/MozartNo40.rmi"
HEIGHT="1"
WIDTH="1"
AUTOSTART="true"
HIDDEN="true">
<NOEMBED>
<BGSOUND SRC="sounds/MozartNo40.rmi"
LOOP="infinite">
</NOEMBED>
<P>HTML BGSOUND
Example 1: CLOSE THE WINDOW TO STOP THE MUSIC.</P>
</BODY>
</HTML>
Click here to pop-up a new window
with HREF="Bgsound.htm" to play the sound file sounds/MozartNo40.rmi".
HOME
MAIN
NEXT
PREV
MAP Element: Client-Side Imagemap Database
Usage:
<MAP>...</MAP>
Can Contain: AREA
Can Be Inside: ADDRESS, BLOCKQUOTE, BODY, CENTER, DIV, FORM, PRE,
DD, DT, LI, P, TD, TH, Hn,
A, CAPTION, character highlighting
Attributes: NAME
MAP contains client-side imagemap mapping data. Each MAP must be uniquely
identified by a NAME attribute. For example, <MAP NAME="map1">.
Such a map is referenced from an IMG element using
USEMAP attribute, for
example:
<IMG SRC="image.gif ... USEMAP="map1">
A single document can contain any number of MAP elements. MAP need
not be in the same document as the IMG from which it is referenced.
However, no browsers currently support such external MAP elements.
Example:
<IMG SRC="image.gif ... USEMAP="http://some.where.com/other.htm#map1">
MAP must contain AREA elements. AREA elements mark out the
regions of an image and the URLs to which these regions are linked.
- Attributes:
- NAME="name" (mandatory) Specified the unique name of
the MAP.
- Examples:
- Click here to see examples of using MAP.
HOME
MAIN
PREV
AREA Element: Client-Side Imagemap Mapping Area
Usage:
<AREA>
Can Contain: empty
Can Be Inside: MAP
Attributes: ALT,
COORDS, HREF, NOHREF, SHAPE, TARGET
AREA specifies shaped regions in a mapped image and the URLs associated
with the shape. AREA can overlap--in this case the browser searches
sequentially down through the different AREA elements, and selects the
first acceptable entry.
- Attributes:
- ALT="string" (optional) Give a text description of
the mapped region that can be presented to the user as a description of
the linked region; or it can be used by browsers that cannot display the
image.
- COORDS="x1,y1,x2,y2...) (mandatory) Specifies the
comma-separated coordinates of the defined SHAPE, as a sequence
of (x,y) pairs--the required number of pairs depends on the specified SHAPE.
Coordinates are specified in pixels measured from the upper left-hand
corner of the image.
- SHAPE="rect" COORDS="x1,y1,x2,y2"
--where (x1,y1) are the coordinates of the upper left-hand corner,
and (x2,y2) are the coordinates of the lower right-hand corner
- SHAPE="circle" COORDS="xc,yc,r"
--where (xc,yc) is the circle center, and (r) is the circle radius.
- SHAPE="poly" COORDS="x1,y1,x2,y2...xn,yn"
--where (x1,y1)...(xn,yn) are the coordinates of the vertices of the
polygon.
- SHAPE="default" No coordinates are specified.
This is the default behavior if the mouse is click in an undefined
region.
- NOHREF (one of HREF or NOHREF is required)
Indicates that the browser should take no action if the user clicks
inside the specified region, and should continue display the current
document.
- HREF="url" (one of HREF or NOHREF
is required) Specifies the URL to which the region is linked. Note that
partial URLs are evaluated relative to the URL of the MAP
file--and recall that the MAP need not be in the same document as
the IMG element referencing the MAP. Similarly, if the document
containing the MAP element also contains a BASE element, relative URLs
specified by the HREF will be evaluated relative to the base URL.
- SHAPE="rect", "circle", "poly",
"default" (optional) Indicates the type of shape being
specified in the AREA element. If SHAPE is not specified,
a browser assumes the default SHAPE="rect".
"Default" specifies no area, and corresponds to the default
behavior should none of the specified regions be selected.
- TARGET="string" (optional) (Netscape and
Internet Explorer only) Specifies the name of the frame or window to
which the data returned by the submitted form should be sent. This
attribute is used to the same purpose with the A
(anchor) element.
- Examples:
- Click here to see examples of using
AREA.
HOME
MAIN
PREV