Name

<basefont> — NN: 2, 3, 4 &bull; MSIE: 2, 3, 4, 5 &bull; HTML 4D &bull; WebTV &bull; Opera3

Synopsis

<basefont>

Specifies certain font attributes for text following the tag. It can be used within the <head> tags to apply to the entire document, or within the body of the document to apply to the subsequent text. This tag is not part of the HTML standard; Cascading Style Sheets are the preferred method to achieve the functionality of <basefont>.

Attributes

color=#rrggbb or name

Internet Explorer 3.0+ only. Sets the color of the following text using hexadecimal RGB values.

face=font

Internet Explorer 3.0+ only. Sets the font for the following text.

size=1|2|3|4|5|6|7|+1|+2|+3|+4|-1|-2

Sets the basefont size using the HTML size values from 1 to 7 (or relative values based on the default value of 3). Subsequent relative size settings will be based on this value.

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.