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.
Attributes
-
color="#
rrggbb
"
Specifies the color using a hexadecimal RGB value.
-
face=
typeface (or list of typefaces)
Specifies a typeface for the text. The specified typeface will be used only if it is found on the user’s machine. You may provide a list of fonts (separated by commas) and the browser will use the first available in the string.
-
size=
value
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 Web Design in a Nutshell 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.