HTML Form How to - Remove the input type="search" border








Question

We would like to know how to remove the input type="search" border.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
input {<!--  w  w w.jav  a  2 s  . c o  m-->
  -webkit-appearance: none;
  border: 1px solid red;
}
</style>
</head>
<body>
  <input type="search" placeholder="java2s.com" />
</body>
</html>

The code above is rendered as follows: