Challenge: Apply User Action Pseudo-Classes
Task
We have a company website with contact information in the header section. Your task is to implement a color change when a user hovers over the links in the header section.
Steps:
- Select all
aelements with theheader-linkclass. - Use the appropriate pseudo-class for the hover effect.
- Apply the
colorproperty with the valuebluewhen the links are hovered.
index.html
index.css
- Use the
.and the class name to select an element by its class name. - Use the
:hoverpseudo-class to react on mouse cursor hover.
index.html
index.css
Thanks for your feedback!
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Can you show me how to write the CSS selector for the hover effect?
What does the final CSS code look like for this task?
Can you explain how the :hover pseudo-class works in this context?
Awesome!
Completion rate improved to 2.56
Challenge: Apply User Action Pseudo-Classes
Swipe to show menu
Task
We have a company website with contact information in the header section. Your task is to implement a color change when a user hovers over the links in the header section.
Steps:
- Select all
aelements with theheader-linkclass. - Use the appropriate pseudo-class for the hover effect.
- Apply the
colorproperty with the valuebluewhen the links are hovered.
index.html
index.css
- Use the
.and the class name to select an element by its class name. - Use the
:hoverpseudo-class to react on mouse cursor hover.
index.html
index.css
Thanks for your feedback!