Answer the question
In order to leave comments, you need to log in
When you clicked on the link, it was active in a new window. How to do it?
I have three links:
Menu
Home
Advertisement
Their initial styles are:
a{
color: black;
text-decoration: none;
text-transform: uppercase;
}
a{
color: red;
text-decoration: none;
text-transform: uppercase;
}
Answer the question
In order to leave comments, you need to log in
You create any class, you give it to the necessary reference, in each window.
a.active {
color: red;
text-decoration: none;
text-transform: uppercase;
}
<a href='1.html' class="active">Первая</a>
<a href='2.html' class="">Вторая</a>
<a href='3.html' class="">Третья</a>
<a href='1.html' class="">Первая</a>
<a href='2.html' class="active">Вторая</a>
<a href='3.html' class="">Третья</a>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question