Question · HTML and CSS course · Module 9: Modern CSS

Cascade Layers in the Project

Why does the portfolio project use @layer (e.g. reset, base, components, utilities)?

Answer options

  • To speed up image loading
  • To control the cascade order without fighting selector specificity
  • To add scroll animations
  • To validate form data

You can check the correct answer by solving this task in the CodeWorlds game.