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
a
elements with theheader-link
class. - Use the appropriate pseudo-class for the hover effect.
- Apply the
color
property with the valueblue
when the links are hovered.
index.html
index.css
- Use the
.
and the class name to select an element by its class name. - Use the
:hover
pseudo-class to react on mouse cursor hover.
index.html
index.css
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 7
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Awesome!
Completion rate improved to 2.5
Challenge: Apply User Action Pseudo-Classes
Svep för att visa menyn
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
a
elements with theheader-link
class. - Use the appropriate pseudo-class for the hover effect.
- Apply the
color
property with the valueblue
when the links are hovered.
index.html
index.css
- Use the
.
and the class name to select an element by its class name. - Use the
:hover
pseudo-class to react on mouse cursor hover.
index.html
index.css
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 7