Locked lesson.
About this lesson
How to manipulate the font family, boldness, style, and size, of text.
Exercise files
Download this lesson’s related exercise files.
Fonts.docx58.7 KB Fonts - Solution.docx
58.9 KB
Quick reference
Fonts
There are lots of things we can do to fonts with CSS.
When to use
You can use fonts when we want to use different fonts, or make them bold or italic, or change their size.
Instructions
To use a different font:
font-family: "Arial";
To make a font italic or oblique:
font-style: italic;
font-style: normal;
font-style: oblique;
To make a font bold:
font-weight: bold;
To change a font's size:
font-size: 30px;
Hints & tips
- font-size: 30px;
- font-weight: bold;
- font-style: italic;
font-style: normal;
font-style: oblique; - font-family: "Arial";
Lesson notes are only available for subscribers.