How to create a search bar using css and html

how to create a search bar using html and css

2 Likes

This HTML code can be used to create a search bar.
For the search icon, I used the font Awesome. And add any CSS that you need.

<div class="search-container">
    <form>
      <input type="text" placeholder="Search.." name="search">
      <button type="submit"><i class="fa fa-search"></i></button>
    </form>
  </div>
1 Like