1. Home
  2. Computing & Technology
  3. Web Design / HTML

<basefont />

By , About.com Guide

< Previous | HTML 4.01 Tags / XHTML 1.0 Elements | Next >

Free XHTML 1.0 Class | HTML Validators | Free HTML 4.01 Class

<basefont /> Description:

Sets the default font parameters for the page or section of the page.

Deprecated in favor of CSS.

<basefont /> Web Browser Support:
<basefont /> Attributes:

All attributes are optional unless indicated.

<basefont /> End Tag:
None. <basefont /> is a singleton tag.
<basefont /> Contents:

None.

<basefont /> Valid Context:

The <basefont /> tag is valid within the following tags:
a, abbr, acronym, address, applet, b, bdo, big, blockquote, body, button, caption, center, cite, code, dd, del, dfn, div, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, ins, kbd, label, legend, li, noframes, noscript, object, p, q, s, samp, small, span, strike, strong, sub, td, th, tt, u, var

<basefont /> Usage:
  • make the font size larger
    <basefont size="4" />
    this text is, size 4
    <basefont size="3" />
    and back to size 3
    View
  • change the default color
    <basefont color="#ff0000" />
    This text is red
    <basefont color="#000000" />
    and back to black.
    View
<basefont /> Special Notes:
  • Be careful with this tag. Some newer browsers don't support it.
  • You're better off using font styles to modify your fonts.
More <basefont /> Information:

< Previous | HTML 4.01 Tags / XHTML 1.0 Elements | Next >

Free XHTML 1.0 Class | HTML Validators | Free HTML 4.01 Class

About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >