The <font> tag has been deprecated, so it is a good idea to use CSS to change the face of your text. Learn how to change a specific portion of text using <span> and CSS.
Difficulty: Average
Time Required: 5 minutes
Here's How:
- Write your text: this is in Arial
- Surround the text with the span tag: <span>this is in Arial</span>
- Add the attribute style="" to the span tag: <span style="">this is in Arial</span>
- Within the style attribute, change the font face (or family) using the font-family style: <span style="font-family : Arial;">this is in Arial</span>
Tips:
- Separate multiple font choices with a comma (,).
- Always end all CSS styles with a semi-colon (;). It's not required when there is only one, but it's a good habit to get into.
- Keep in mind that if your audience uses older browsers, you might not want to use CSS, as it won't display correctly.
What You Need:
- HTML Editor -or-
- Text Editor

