Export to GitHub

doctype-mirror - FontElement.wiki


You are here: Home > HTML Reference > Elements > font element

Usage

The font element is deprecated in HTML 4.

HTML 5 says, "The font element doesn't represent anything. It must not be used except by WYSIWYG editors, which may use it to achieve presentational affects. Even WYSIWYG editors, however, should make every effort to use appropriate semantic markup and avoid the use of media-specific presentational markup."

Attributes

  • color
  • face
  • font-weight
  • point-size
  • size
  • common attributes

Browser compatibility

Compatibility table legend

| Test | IE8 | IE7 | IE6 | FF3 | FF2 | Saf3 | Op9 | Chrome | |:---------|:--------|:--------|:--------|:--------|:--------|:---------|:--------|:-----------| | appears in DOM | Y | Y | Y | Y | Y | Y | Y | Y | | applies style | Y | N | N | Y | Y | Y | Y | Y |

Further reading