This changes the size of the
BASEFONT, that all relative
<FONT SIZE ...> changes are based on. It defaults to 3, and has a valid range of 1-7. Note that although the
<BASEFONT> element doesn't need to be contained within the document
<HEAD> section, it must come before any text in the document to change the default font size.
NOTE : Any document
<BASEFONT> settings are over-ridden by any style sheet settings for the document.
This attribute allows changing of the face of the HTML document
BASEFONT, exactly as it works for
<FONT FACE= ...>. This attribute is not supported by Netscape 4.0.
This allows the
BASEFONT colour for the HTML document to be set. Colours can either be set by using one of the reserved colour names, or as a hex rrggbb triplet value. This attribute is not supported by Netscape 4.0.
Internet Explorer 4.0 (and above) supports use of the
TITLE attribute for the
<BASEFONT> element. This can be used for informational purposes. The platform preview of Internet Explorer 4.0 generally uses the
TITLE attribute as a 'ToolTip' and using it in the
<BASEFONT> element currently provides a ToolTip over the entire document text (i.e. the value of the
TITLE attribute is displayed as the ToolTip when the mouse hovers over the document text), unless the
TITLE attribute is set for other elements.
CLASS="Style Sheet class name"
CLASS attribute is used to specify the
<BASEFONT> as using a particular style sheet class. See the Style Sheets topic for details.
STYLE="In line style setting"
As well as using previously defined style sheet settings, the
<BASEFONT> element can have in-line stylings attached to it. See the Style Sheets topic for details.
ID="Unique element identifier"
ID attribute can be used to either reference a unique style sheet identifier, or to provide a unique name for the
<BASEFONT> element for scripting purposes. Any
<BASEFONT> element with an
ID attribute can be directly manipulated in script by referencing its
ID attribute, rather than working through the All collection to determine the element. See the Scripting introduction topic for more information.
NOTE : Use of these three attributes (
ID) for the
<BASEFONT> element is Internet Explorer (4.0 and above) specific. Using them also 'nullifies' any
SIZE settings in Netscape. It would generally be better to set stylings for the whole document using a style sheet. See the Style Sheets section for details.
LANG attribute can be used to specify what language the
<BASEFONT> element is using. It accepts any valid ISO standard language abbreviation (for example
"en" for English,
"de" for German etc.) For more details, see the Document Localisation section for more details.
<BASEFONT...> element supports some of the Standard Dynamic HTML properties (namely className, document, id, isTextEdit, lang, outerHTML, outerText, parentElement, parentTextEdit, sourceIndex, style, tagName and title), as well as color, face and size properties which directly reflect any setting of their respective attributes (see above).
Of the Standard Dynamic HTML methods,
<BASEFONT> supports contains, getAttribute, removeAttribute and setAttribute.
<BASEFONT> element supports no events.
© 1995-1998, Stephen Le Hunte
|file: /Techref/language/html/ib/Document_Structure_Elements/basef.htm, 6KB, , updated: 2004/3/1 15:47, local time: 2018/2/20 09:45,
|©2018 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://techref.massmind.org/techref/language/html/ib/Document_Structure_Elements/basef.htm"> <BASEFONT></A>
|Did you find what you needed?|
Welcome to massmind.org!
Welcome to techref.massmind.org!