1. Computing & Technology

Discuss in my forum

<basefont />

By , About.com Guide

<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:

©2012 About.com. All rights reserved.

A part of The New York Times Company.