Name
basefont — <basefont />
Deprecated. Specifies
certain font attributes for the content that follows it. It can be
used within the head
element to
apply to the entire document or within the body
of the document to apply to the
subsequent text. This element is discouraged from use in favor of
stylesheets that offer much better control over fonts.
Attributes
id="
text
"
This attribute assigns a name to an element. This name must be unique in a document.
color="
#rrggbb
"
or"
color name
"
Deprecated. Sets the color of the following text using hexadecimal RGB values.
face="
typeface
"
(orlist of typefaces
)Deprecated. Sets the font for the following text.
size="
number
"
Deprecated. Sets the base font size using the HTML size values from 1 to 7 (or relative values based on the default value of 3). Subsequent relative size settings are based on this value.
Example
<head><basefont
face="Verdana, Helvetica, sans-serif"/>
</head>
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.