Name
font
Synopsis
<font>...</font>
Deprecated. Used to affect the style (color, typeface, and size) of the enclosed text. This element is no longer used in contemporary web design.
Attributes
Core(id
,
class
, style
, title
),
Internationalization
color="
#RRGGBB
"
or"
color name
"
Deprecated. Specifies the color of the enclosed text. For information on how to specify color, see Appendix D.
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 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).
Get Web Design in a Nutshell, 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.