button click css style
a:visited {
color: purple;
}
a:active {
color: blue;
}
button click css style
a:visited {
color: purple;
}
a:active {
color: blue;
}
css on click
<!DOCTYPE html>
<html>
<head>
<style>
/* On click: */
a:active {
background-color: yellow;
}
button:focus {
background-color: yellow;
}
/* On hover: */
h1:hover {
background-color: red;
}
p:hover {
background-color: red;
}
</style>
</head>
<body>
<a href="#">Click Me</a>
<button>Click me</button>
<h1>Hover over me</h1>
<p>Hover over me</p>
</body>
</html>
how to add animation to a button hover
.btn {
background-color: #ddd;
border: none;
color: black;
padding: 16px 32px;
text-align: center;
font-size: 16px;
margin: 4px 2px;
transition: 0.3s;
}
.btn:hover {
background-color: #3e8e41;
color: white;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us