HTML Form How to - Change input field border








Question

We would like to know how to change input field border.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.pwd {<!--from ww  w. j a  va 2s. co  m-->
  border: 3px solid red;
}
</style>
</head>
<body>
  <input type='password' class='pwd'>
</body>
</html>

The code above is rendered as follows: