The "font" Element

AVOIDNot in HTML5Obsolete

The "font" element changes the font size and color for text in its contents. However, it's deprecated in HTML 4.01 and obsolete in HTML5. Use CSS instead.

Attributes for "font"
TypeAttribute List
'Standard' Attributes"color", "face", and "size"

Notes

  • The "font" element is a presentational element. It is recommended that style sheets should be used to control layout and presentation. Presentational elements include "font", "b", "i", "big", "small", and others. For presentation, consider using style sheets (CSS) instead. Use HTML elements only for content and structure and not for layout and presentation. Use the "em" and "strong" elements for structural emphasis.

Recommended Links

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem