-1
The way I learned, is that I apply the style to all links, I wanted to know how I could do it, here are two Divs I wanted to apply the styles only in the first div with the id="links1"
Html
<!DOCTYPE html>
<html>
<head>
<title>Exemplo listas</title>
<meta charset="utf-8">
<style type="text/css">
a{
text-decoration: none;
}
a:link, a:visited{
color: blue;
}
a:hover{
color: white;
background: yellow;
}
</style>
</head>
<body>
<div id="links1">
<a href="">Google</a>
<a href="">You Tube</a>
<a href="">Facebook</a>
</div>
<!---->
<br>
<div id="links2">
<a href="">Google</a>
<a href="">You Tube</a>
<a href="">Facebook</a>
</div>
</body>
I got it, I didn’t know you could do that, thank you
– rafael marques