0
Links on HTML
If I want to change the color of the link and remove the line under it what should I do?
4 Antworten
+ 3
This is explained in this course.
https://www.sololearn.com/learn/CSS/1109/?ref=app
+ 2
Little Mimi
a {
text-decoration:none;
color:red;
}
+ 2
With a{ } can you change it for every Link, than remember Link's still a Text so the Methode to Change the Color's still the same. And hint underline's a Text Decoration type now look up how you can delete it.
+ 2
Links also have additional styles depending if links are visited, active ...
So sometime if your design need you also need to set style for it.
a:visited {
color: yellow;
}
So this will set color of this link when user click on it, so user can know what links he was visited, default is some purple color.
Here is more about this styles, I think it is useful to learn tham now, and it also cover your question so make sure you check it and play little bit with code.
https://www.w3schools.com/css/css_link.asp