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: this is in Arial
- Add the attribute style="" to the span tag: this is in Arial
- Within the style attribute, change the font face (or family) using the font-family style: this is in Arial
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

