How to Create Hover Effect Button using HTML CSS

In this video, I have created a Button with a Hover effect. The hover effect is an effect when the mouse cursor is on the button. This type of effect is usually used to show highlight and engage the user to click that button, also it's a user-friendly type of button.



<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hover Button using HTML CSS</title>
            margin: 25px;
            width: 150px;
            height: 40px;
            color: #fff;
            border-radius: 5px;
            padding:  10px 25px;
            font-weight: 500;
            cursor: pointer;
            box-shadow: inset 2px 2px 2px 2px rgba(255, 255, 255, .5),
            7px 7px 20px 0px rgba(0 ,0,0,.1),
            4px 4px 5px 0px rgba(0,0,0,.1);
            background: blue;
            border: none;
        .btn a{
            color: white;
            text-decoration: none;    
             background-color: rgb(23, 23, 95);
    <button class="btn"><a href=""> Hover Button </a></button>

View Sitemaps

See Also :