![]()
<FONT ...>
<FORM>
<FRAME
...>
<FRAMESET
...>
Netscape 1.0 (and above) and Microsoft's
Internet Explorer support different sized fonts within HTML
documents. This should be distinguished from Headings.
The element is <FONT SIZE=value>. Valid
values range from 1-7 and the default font size is 3. The value
given to size can optionally have a '+' or '-' character in front
of it to specify that it is relative to the document basefont (if
the size specified takes the font size above 7 or below 1, then
values of 7 and 1 would be used). As said, the default font size
is 3, and can be changed with the <BASEFONT
...> element.
<FONT SIZE=4> changes the font size to 4 </FONT>
<FONT SIZE=+2> changes the font size to <BASEFONT SIZE
...> + 2 </FONT>, or to 5 if no <BASEFONT SIZE
...> has been set.
Internet Explorer and Netscape support the ability to change the
font colour as well as face type. They use the COLOR
and FACE attributes to the <FONT> element
COLOR = #rrggbb or colourname
The colour attribute sets the colour which text will appear in on
the screen. Rrggbb is a hexadecimal colour denoting a colour
value. Alternately, the colour can be set to one of the named
colours supported by the browsers.
Example:
<FONT COLOR=#ff0000>This text is red.</FONT>
or
<FONT COLOR=Red>This text is also red.</FONT>
FACE=name [,name] [,name]
The FACE attribute sets the typeface that will be used to display
the text on the screen. The type face displayed must already be
installed on the users computer. Substitute type faces can be
specified in case the chosen type face is not installed on the
customers computer. If no match is found, the text will be
displayed in the default type according to the browser preference
settings.
Example:
<FONT FACE="Arial, Lucida Sans"> This text will
be displayed in either Arial, Lucida Sans, or Times Roman,
depending on which fonts you have installed on your system.
</FONT>
NOTE : When using this element, care should be taken to try to
use font types that will be installed on the users computer if
you want the text to appear as desired. Changing the font face is
supported by Internet Explorer and Netscape only.
The Form element is used to delimit a data
input form. There can be several forms in a single document, but
the Form element cannot be nested.
The ACTION attribute is a URL specifying the
location to which the contents of the form are submitted to
elicit a response, typically this will be a form handling CGI
script. If the ACTION attribute is missing, the URL of the
document itself is assumed. The way data is submitted varies with
the access protocol of the URL, and with the values of the METHOD
and ENCTYPE attributes.
In general:
the METHOD attribute selects variations in the protocol.
the ENCTYPE attribute specifies the format of the submitted data
in case the protocol does not impose a format itself.
For more information, refer to Forms topic.
This tag defines a single frame in a frameset.
It has 6 possible attributes: SRC, NAME, MARGINWIDTH,
MARGINHEIGHT, SCROLLING, and NORESIZE. The FRAME tag is
not a container so it has no matching end tag.
SRC="url"
The SRC attribute takes as its value the URL of the document to
be displayed in this particular frame. FRAMEs without SRC
attributes are displayed as a blank space.
NAME="window_name"
The NAME attribute is used to assign a name to a frame so it can
be targeted by links in other documents (These are usually from
other frames in the same document.) The NAME attribute is
optional; by default all windows are unnamed. Names must begin
with an alphanumeric character. However, several reserved names
have been defined, which start with an underscore. These are
currently:
_blank Always load this link into a new, unnamed window.
_self Always load this link over yourself.
_parent Always load this link over your parent. (becomes self if
you have no parent).
_top Always load this link at the top level. (becomes self if you
are at the top).
NOTE : Although these are reserved names for the NAME attribute
of the <FRAME> element, they should only be referred to
using an Anchor Target. That is, used to target specific windows,
allowing smoother transition between framed documents and between
framed and normal documents.
MARGINWIDTH="value"
The MARGINWIDTH attribute is used when the document author wants
some control of the margins for this frame. If specified, the
value for MARGINWIDTH is in pixels. Margins can not be less than
one-so that frame objects will not touch frame edges-and can not
be specified so that there is no space for the document contents.
The MARGINWIDTH attribute is optional; by default, all frames
default to letting the browser decide on an appropriate margin
width.
MARGINHEIGHT="value"
The MARGINHEIGHT attribute is just like MARGINWIDTH above, except
it controls the upper and lower margins instead of the left and
right margins.
SCROLLING="yes|no|auto"
The SCROLLING attribute is used to describe if the frame should
have a scrollbar or not. Yes results in scrollbars always being
visible on that frame. No results in scrollbars never being
visible. Auto instructs the browser to decide whether scrollbars
are needed, and place them where necessary. The SCROLLING
attribute is optional; the default value is auto.
NORESIZE
The NORESIZE attribute has no value. It is a flag that indicates
that the frame is not resizable by the user. Users typically
resize frames by dragging a frame edge to a new position. Note
that if any frame adjacent to an edge is not resizable, that
entire edge will be restricted from moving. This will effect the
resizability of other frames. The NORESIZE attribute is optional;
by default all frames are resizable.
FRAMEBORDER
This attribute allows control of the frame border display. With
this attribute set to "0" (
Internet Explorer), the borders for the specific frame are not
drawn. Netscape now also supports use of this attribute (using
values of "yes|no") and also supports it in the
<FRAMESET> element (see above) for globally setting the
borders of a whole frame set. NOTE : In Netscape frames share
borders and for the borders to not be drawn, all the frames
sharing a common border must have their FRAMEBORDER attribute set
to "no"
FRAMESPACING="value"
This attribute is also Internet Explorer specific and allows the
setting of extra space around frames, to give the appearance of
floating frames. The "value" should be the distance
required around the frame in pixels.
i.e. <FRAME FRAMESPACING="55" ...> would present
the frame with a spacing of 55 pixels.
BORDERCOLOR
This Netscape specific attribute sets the colours for the border
of the specified frame. It can also be used in the
<FRAMESET> element (see above) for globally setting the
border colours of a whole frameset. It accepts any #rrggbb hex
triplet as a value. Setting the BORDERCOLOR attribute in the
<FRAME> element over-rides any setting given in the
<FRAMESET> element, of which the <FRAME> is a part.
<NOFRAMES>
This tag is for content providers who want to create alternative
content that is viewable by non-Frame-capable clients. A
Frame-capable Internet client ignores all tags and data between
start and end NOFRAMES tags.
Internet Explorer
floating frames.
The Internet Explorer (version 3 and above) has introduced the
concept of floating frames. These are much like standard frames,
except they can be anywhere within a standard HTML document. A
floating frame must be enclosed within <IFRAME> ...
</IFRAME> elements. Any HTML between the start and end
elements will be displayed by browsers that do not support
floating frames, while the frame specified in the <IFRAME>
elements will be displayed by those browsers that do.
For example :
<IFRAME NAME="content_frame" width="488"
height="244" SRC="welcome.htm">This site
uses floating frames</IFRAME>
The above HTML fragment would display the file
"content_frame" in Internet Explorer, but would display
the text "This site uses floating frames" to any other
browser.
The other main difference between floating and normal frames, is
that floating frames accept WIDTH and HEIGHT and standard <IMG> HSPACE, VSPACE and ALIGN attributes, to set the display
size and alignment of the frame within the document. They can
have other files loaded into them exactly as normal frames (by
use of the TARGET attribute in the link and the NAME attribute of
the frame).
This is the main container for a Frame. A
standard frame document has no BODY, and
no tags that would normally be placed in the BODY can appear
before the FRAMESET tag, or the FRAMESET will be ignored (unless
the frame is a floating frame, supported by Internet Explorer
only). The FRAMESET tag has a matching end tag, and within the
FRAMESET you can only have other nested FRAMESET tags,
FRAME tags, or the NOFRAMES tag. The attributes
are COLS, ROWS, FRAMEBORDER, BORDER, BORDERCOLOR.
COLS="column_width_list"
The COLS attribute takes as its value a comma separated list of
values.
ROWS="row_height_value_list"
The ROWS attribute takes as its value a comma separated list of
values. These values can be absolute pixel values, percentage
values between 1 and 100, or relative scaling values. The number
of rows is implicit in the number of elements in the list. Since
the total height of all the rows must equal the height of the
window, row heights might be normalised to achieve this. A
missing ROWS attribute is interpreted as a single row arbitrarily
sized to fit.
Syntax of value list.
value
A simple numeric value is assumed to be a fixed size in pixels.
This is the most dangerous type of value to use since the size of
the viewer's window can and does vary substantially. If fixed
pixel values are used, it will almost certainly be necessary to
mix them with one or more of the relative size values described
below. Otherwise the client engine will likely override your
specified pixel value to ensure that the total proportions of the
frame are 100% of the width and height of the user's window.
value%
This is a simple percentage value between 1 and 100. If the total
is greater than 100 all percentages are scaled down. If the total
is less than 100, and relative-sized frames exist, extra space
will be given to them. If there are no relative-sized frames, all
percentages will be scaled up to match a total of 100%.
value*
The value on this field is optional. A single '*' character is a
"relative-sized" frame and is interpreted as a request
to give the frame all remaining space. If there exist multiple
relative-sized frames, the remaining space is divided evenly
among them. If there is a value in front of the '*', that frame
gets that much more relative space. "2*,*" would give
2/3 of the space to the first frame, and 1/3 to the second.
Example for 3 rows, the first and the last being smaller than the
centre row:
<FRAMESET ROWS="20%,60%,20%">
Example for 3 rows, the first and the last being fixed height,
with the remaining space assigned to the middle row:
<FRAMESET ROWS="100,*,100">
FRAMEBORDER
Netscape allows the use of this attribute (in a similar fashion
to that supported by Internet Explorer in the <FRAME>
element) to set the borders globally for an entire
<FRAMESET>. Values can be either "yes" or
"no".
BORDER
Netscape allows the global setting of frame border thicknesses by
using this attribute within the <FRAMESET> element. It
accepts a pixel value, which determines the thickness of any
borders used within the frame set.
BORDERCOLOR
This Netscape specific attribute sets the colours for the border
of the specified frameset. It can also be used in the
<FRAME> element (see below) for setting the border colours
of a specific frame. It accepts any #rrggbb hex triplet as a
value. Any BORDERCOLOR setting in a <FRAMESET> element is
over-ridden by a setting present in the <FRAME> element.
For more information on frames, refer to the Frames topic.