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

Using CSS Custom Properties (CSS Variables)

CSS custom properties, or CSS variables, allow you to define reusable values that can simplify CSS management and increase flexibility.

How to Define and Use Custom Properties

  1. Defining Custom Properties:
    • Custom properties are usually defined in the :root selector, which represents the document’s root element. This makes them accessible throughout the document.
      *...