Create Cool Search Button for Websites
Hello Guys. In this article, we will learn how to Create a Search button for websites.
Things require to create a Search button are:
- Basic Knowledge of HTML
- Basic Knowledge of CSS3
- an image(used as background image for form)
Creating HTML Document Structure:
- <form class="search" action="" method="get">
- <input type="text" class="text" name="" value="Search Here" onclick='value=""'/>
- <input type="submit" type="submit" value="" class="submit" name=""/>
- </form>
We have just created a form having an input box and submit button.
Preview:
- .search {
- background: url(5.png);
- width: 320px;
- height: 32px;
- }
Here we set the background-image of form, height, and width(using class .search).
Preview:


Join the conversation! Your thoughts help the community grow.