Version-//W3C//DTD XHTML 1.0 Transitional//EN
Elementfont
Purposeset font face, color, and size of text
DescriptionThis element encloses text whose appearance is modified by the size and color attributes.
Start tagRequired <font>
Attributes
NameTypeDefaultComment
class CDATA #IMPLIEDspace-separated list of classes
color CDATA #IMPLIEDcolor code as #RRGGBB in hexadecimal or 16 named colors; text color
dir( ltr | rtl )#IMPLIEDdirection for weak/neutral text
face CDATA #IMPLIEDcomma-separated list of font names
idID#IMPLIEDdocument-wide unique id
langNMTOKEN#IMPLIEDlanguage code (backwards compatible); language code as RFC3066
size CDATA #IMPLIED[+|-]nn e.g. size="+1", size="4"
style CDATA #IMPLIEDassociated style info; style sheet data
title CDATA #IMPLIEDadvisory title; text used for titles
xml:langNMTOKEN#IMPLIEDlanguage code (as per XML 1.0 spec); language code as RFC3066
Content( #PCDATA | a | br | span | bdo | object | applet | img | map | iframe | tt | i | b | u | s | strike | big | small | font | basefont | em | strong | dfn | code | q | samp | kbd | var | cite | abbr | acronym | sub | sup | input | select | textarea | label | button | ins | del | script )*
End tagRequired </font>
Referenced in a abbr acronym address applet b bdo big blockquote body button caption center cite code dd del dfn div dt em fieldset font form h1 h2 h3 h4 h5 h6 i iframe ins kbd label legend li noframes noscript object p q s samp small span strike strong sub sup td th tt u var
Example
SourceAppearance
<font size="1">one fish</font> <font size="2">two fish</font> <font color="red"
size="+3">red fish</font> <font color="blue" size="+1">blue fish</font>
<font color="green" size="+5" face="Courier">The Sea</font>
<font color="purple" size="+5" face="Muddy">Monster</font>
one fish two fish red fish blue fish The Sea Monster
search Search · star Market
2023-06-19 · John December · Terms © johndecember.com