May 2019
Intermediate to advanced
542 pages
13h 37m
English
Rich text fonts can be set using the <font> tag, as follows:
<h2>Special!</h2> <p> <font face='Impact' size=32 color='green'>Buy Now!</font> and receive <tt>20%</tt> off the regular price plus a <font face=Impact size=16 color='red'>Free sticker!</font> </p>
<font> may be unfamiliar to those who have learned more modern HTML, as it was deprecated in HTML 5. As you can see, though, it can be used to set the face, size, and color attributes of the text enclosed in the tags.
The <tt> (typewriter type) tag is shorthand for using mono-spaced fonts and is useful for presenting things like inline code, keyboard shortcuts, and terminal output.
If you prefer to use more modern CSS-style font configuration, this can ...
Read now
Unlock full access