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

The @layer Rule in the CSS Cascade

What is @layer used for in CSS?

Answer options

  • Adds shadows to elements
  • Organizes styles into layers with control over cascade priority
  • Creates graphical layers
  • Defines z-index for layers

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