XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / basefont

(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

   

HTML 4.01

basefont

HTML: <basefont>; XHTML: <basefont/> or <basefont />

Defines certain font attributes for the content that follows. If basefont is used in the head section of the document, the definition applies to the entire document. If basefont is used in the body section, the definition applies to the text that follows. Use of this element is strongly discouraged! Font attributes should instead be defined using Cascading Stylesheets.

Notes

Deprecated in HTML 4.01 and XHTML 1.0. Not available in HTML 5.

Start/end tag

This is an empty element. HTML forbids an end tag. In XHTML, the element must include a slash before the closing angle bracket, as shown above.

Attributes

  • id="Text"

    Assigns a unique ID to the element. This ID may therefore occur only once in the document.

  • color="#rrggbb" or "Farbname"

    Deprecated. Defines the color of the following text.

  • face="Schriftart" (or Liste mit Schriftarten)

    Deprecated. Sets the font for the text that follows.

  • size="Zahl"

    Deprecated. Sets the base font size. Values from 1–7 are allowed, or relative values based on the default size of 3. Subsequent relative values are based on this setting.

Example (HTML)

<head>
  <basefont face="Verdana, Helvetica, sans-serif">
</head>

Example (XHTML)

<head>
  <basefont face="Verdana, Helvetica, sans-serif" />
</head>

 

> back to the alphabetical list of elements

   

 

 

 

back to top