Question · HTML and CSS course · Module 3: CSS Basics
First Step of CSS Styling
What is the first step when writing a CSS rule to style an HTML element?
Answer options
- Opening a declaration block with { }
- Choosing a selector (element, class, or ID)
- Typing a property, e.g. color
- Assigning a value, e.g. red
You can check the correct answer by solving this task in the CodeWorlds game.