Name
<font> — NN: 2, 3, 4 • MSIE: 2, 3, 4, 5 • HTML 4D • WebTV • Opera3
Synopsis
<font>...</font>
Used to affect the style (color, typeface, and size) of the enclosed text. This tag is deprecated in the HTML 4.0 Specification in favor of style sheet controls.
Attributes
color=
#rrggbb
Specifies the color using a hexadecimal RGB value.
face=
typeface
(orlist of typefaces
)Specifies a typeface for the text. The specified typeface will be used only if it is found on the user’s machine. When a list of fonts (separated by commas) is specified, the browser will use the first available in the string.
size=1|2|3|4|5|6|7|+1|+2|+3|+4|-1|-2
Sets the size of the type to an absolute value on a scale from 1 to 7 (3 is the default), or using a relative value
+n
or-n
(based on the default or<basefont>
setting).
Get HTML Pocket Reference 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.