XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / font
(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
font
HTML 4.01 |
<font> ... </font>
A deprecated way to specify styling information, such as color, font and size, for the enclosed text. Professional web design no longer uses this element. Stylesheets control the appearance of text instead.
Notes
Deprecated in HTML 4.01/XHTML 1.0; Not available in HTML 5.
Start/end tag
Required/required
Attributes
color="#RRGGBB"or"Farbname"Deprecated. Not in HTML 5. Defines the text color.
face="Schriftart"(orListe mit Schriftarten)Deprecated. Not in HTML 5. Defines the text’s font. The font is used only if installed on the user’s computer. A list of fonts can also be specified; the browser then uses the first available font in the list.
size="Wert"Deprecated. Not in HTML 5. Sets the font size. Either an absolute value between
1and7(with3as the default) or a relative value+nor-ncan be specified (based on the setting ofbasefont).
Example
<font face="serif" size="+1" color="red">Wird nicht mehr verwendet.</font>
|
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