XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / basefont
(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
HTML 4.01 |
basefont
HTML: <basefont>; XHTML: <basefont/> or <basefont />
Defines certain font attributes for the content that follows. If basefont is used in the head section of the document, the definition applies to the entire document. If basefont is used in the body section, the definition applies to the text that follows. Use of this element is strongly discouraged! Font attributes should instead be defined using Cascading Stylesheets.
Notes
Deprecated in HTML 4.01 and XHTML 1.0. Not available in HTML 5.
Start/end tag
This is an empty element. HTML forbids an end tag. In XHTML, the element must include a slash before the closing angle bracket, as shown above.
Attributes
id="Text"Assigns a unique ID to the element. This ID may therefore occur only once in the document.
color="#rrggbb"or"Farbname"Deprecated. Defines the color of the following text.
face="Schriftart"(orListe mit Schriftarten)Deprecated. Sets the font for the text that follows.
size="Zahl"Deprecated. Sets the base font size. Values from 1–7 are allowed, or relative values based on the default size of 3. Subsequent relative values are based on this setting.
Example (HTML)
<head>
<basefont face="Verdana, Helvetica, sans-serif">
</head>Example (XHTML)
<head>
<basefont face="Verdana, Helvetica, sans-serif" />
</head>
|
Copyright © 2010 O’Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from "HTML & XHTML ─ kurz & gut" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de