Question · Next.js course · Module 3: Styling and Visual Optimization
Highest CSS Specificity
Which CSS selector has the highest specificity?
Answer options
- Element selector (e.g., p, div)
- Class selector (e.g., .container)
- ID selector (e.g., #header)
- Inline style (style attribute)
You can check the correct answer by solving this task in the CodeWorlds game.