Current Assignment(s)
A7: Typography
Due: Recommended by Monday, 6.04
Due: Recommended by Monday, 6.04
Setting Bold and Italic
Before we look at how to include external fonts, let’s discuss font weight and font style. These are used to determine if a font is bold and/or italic.
IMPORTANT: Please note that I explicitly stated these appearances are a result of CSS properties, not HTML tags.
CSS
#line-one {
/* No rules. */
}
#line-two {
font-weight: bold;
}
#line-three {
font-style: italic;
}
Using these rules in your CSS can eliminate the need for tags in your HTML, saving time and effort.
- Previous
- Next