Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed (UPI) Chapter 3: Web Design with Cascading Style Sheets (CSS)!

Instruction

Setting Font Sizes

The font-size property controls the size of the text. Using relative units like percentages, em, or rem for font sizes allows for responsive design, where text scales based on user preferences or screen size. Here are the main types of units for font size:

  • Percentage: Sets the font size as a percentage of the parent element’s font size. font-size: 150% makes the text 1.5 ti...