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

(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

   

font

HTML 4.01

<font> ... </font>

A deprecated way to specify styling information, such as color, font and size, for the enclosed text. Professional web design no longer uses this element. Stylesheets control the appearance of text instead.

Notes

Deprecated in HTML 4.01/XHTML 1.0; Not available in HTML 5.

Start/end tag

Required/required

Attributes

Core, internationalization

  • color="#RRGGBB" or "Farbname"

    Deprecated. Not in HTML 5. Defines the text color.

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

    Deprecated. Not in HTML 5. Defines the text’s font. The font is used only if installed on the user’s computer. A list of fonts can also be specified; the browser then uses the first available font in the list.

  • size="Wert"

    Deprecated. Not in HTML 5. Sets the font size. Either an absolute value between 1 and 7 (with 3 as the default) or a relative value +n or -n can be specified (based on the setting of basefont).

Example

<font face="serif" size="+1" color="red">Wird nicht mehr verwendet.</font>

 

> back to the alphabetical list of elements

   

 

 

 

back to top