Glubase - share your knowledge


All / Computers / Programming / HTML / XHTML





  • View Command

HTML / XHTML Reference

HTML / XHTML font definition

Syntax

<font attributes> ... </font>

Description

This command is deprecated. It is adviced to use CSS font styles instead. The font element changes the font that is inside the font block.

Attributes

 

Attribute Description
color = color Sets the color of the font.
size = cdata Sets the size of the font.
face = cdata Defines a comma-separated list of font names the user agent should search for in order of preference.

Example

[Try this example yourself]
<font color=blue size=18>Example font</font>

Output

Example font
  • Comments

No comments added.