Name
font — <font> . . . </font>
Deprecated. Used to affect the style (color, typeface, and size) of the enclosed text. This element is no longer used in contemporary professional web design.
Attributes
Core, Internationalization
color="
#RRGGBB
"
or"
color name
"
Deprecated. Specifies the color of the enclosed text.
face="
typeface
"
(orlist of typefaces
)Deprecated. Specifies a typeface for the text. The specified typeface is used only if it is found on the user’s machine. You may provide a list of fonts (separated by commas), and the browser uses the first available font in the string.
size="
value
"
Deprecated. Sets the size of the type to an absolute value on a scale from 1 to 7 (3 is the default) or by using a relative value
+
n
or-
n
(based on the default orbasefont
setting).
Example
<font face=
"sans-serif"size=
"+1"color=
"white">
Obsolete.</font>
Get HTML and XHTML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.