Nearby lessons
12 of 19🔤 CSS Font Properties
📌 What are CSS Font Properties?
CSS Font Properties allow you to control typography, such as font family, size, weight, style, and more. These properties enhance readability, accessibility, and design consistency.
This guide includes key font-related properties and live examples to visualize their behavior in real-world scenarios.
🔠 Font Family
Defines the typeface of the text by specifying one or more font names.
Example02
📏 Font Size
Controls the size of the font using keywords, units, or relative values.
Example03
🧱 Font Weight
Adjusts the thickness or boldness of text.
Example04
🖋️ Font Style
Defines whether the font is normal, italic, or oblique.
Example05
🧬 Font Variant
Used to display text in small-caps (uppercase letters with lowercase sizing).
Example06
📏 Line Height
Controls the vertical spacing between lines of text.
Example07
🧾 Font Shorthand
Combines multiple font-related properties in a single declaration.
Example08
🧠 Test Your Knowledge
5 QuestionsProgress: 0 / 5