Challenge: Style with Class Selectors
Task
The website provides brief information about the planets. The task is:
- Select all elements with the
textclass name and apply thecolorproperty with the valuebrown. - Select all elements with the
sub-textclass name and apply thecolorproperty with the valuegrey.
index.html
index.css
Use . and its class name (e.g., .text) to select an element by its class name.
index.html
index.css
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 5
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Can you show me where to add the CSS code?
What should the CSS code look like for these class selectors?
Do you want an explanation of how class selectors work in CSS?
Awesome!
Completion rate improved to 2.56
Challenge: Style with Class Selectors
Swipe to show menu
Task
The website provides brief information about the planets. The task is:
- Select all elements with the
textclass name and apply thecolorproperty with the valuebrown. - Select all elements with the
sub-textclass name and apply thecolorproperty with the valuegrey.
index.html
index.css
Use . and its class name (e.g., .text) to select an element by its class name.
index.html
index.css
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 5