How can I do so that when I click on an option in an html list the backgroud of a color that stands out over the other options remains, I have done it with the active property but it does not do what I need and with the property hover then it works but only passing the mouse over it but when I click it the backgroud disappears
.enlace > a:hover {
cursor:pointer;
background: yellow;
}
<html>
<head>
</head>
<body>
<ul>
<li class="enlace"><a href="#">Liga 1</a></li>
<li class="enlace"><a href="#">Liga 2</a></li>
<li class="enlace"><a href="#">Liga 3</a></li>
<li class="enlace"><a href="#">Liga 4</a></li>
</ul>
</body>
</html>