Answers for "css :active"

CSS
0

button active css

form :active {
  color: red;
}

form button:active {
  background: black;
}
Posted by: Guest on December-06-2020
0

css :active

<!DOCTYPE html>
<html>
<head>
<style>
a:active {
  background-color: yellow;
}
</style>
</head>
<body>

<a href="https://www.w3schools.com">w3schools.com</a>
<a href="http://www.wikipedia.org">wikipedia.org</a>

<p><b>Note:</b> The :active selector styles the active link.</p>

</body>
</html>
Posted by: Guest on August-14-2021

Browse Popular Code Answers by Language