<!DOCTYPE html>
<html lang="en">
<head>
  <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>Document</title>
</head>
<body>
  <form action="">
    <lable for="name"> User Name</lable>
    <input id="name" class="txt-input" type="text" placeholder="click to see focus">
    <br>
    <br>
    <lable for="password"> Password</lable>
    <input id="password" class="txt-input" type="text" placeholder="click to see focus">
    <br>
    <br>
<!--<input type="submit" class="btn-submit"> -->
    <button class="btn-cancel">hover to see :hover effect</button>
    <button class="btn-submit">Press to see :active</button>
  </form>
</body>
</html>
/* Text Input :focus*/
.txt-input:focus{
  background-color: #A77B06;
  color: #fff
}

/* Button :active */

.btn-submit:active{
  background-color: #03203C;
  color: #fff
}

.btn-cancel:hover{
  background-color: #EB4D4B;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.