Bootstrap 3 search box

Bootstrap 3 search box DEFAULT

Bootstrap Form Inputs (more)

&#; PreviousNext &#;

Static Control

If you need to insert plain text next to a form label within a horizontal form, use the class on a element:


<form class="form-horizontal">
  <div class="form-group">
    <label class="control-label col-sm-2">Email:</label>
    <div class="col-sm">
      <p class="form-control-static">[email protected]</p>

Try it Yourself »

Bootstrap Input Groups

The class is a container to enhance an input by adding an icon, text or a button in front or behind it as a "help text".

The class attaches an icon or help text next to the input field.



  <div class="input-group">
    <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
    <input id="email" type="text" class="form-control" name="email" placeholder="Email">
  <div class="input-group">
    <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
    <input id="password" type="password" class="form-control" name="password" placeholder="Password">
  <div class="input-group">
    <span class="input-group-addon">Text</span>
    <input id="msg" type="text" class="form-control" name="msg" placeholder="Additional Info">

Try it Yourself »

The attaches a button next to an input. This is often used together with a search bar:


  <div class="input-group">
    <input type="text" class="form-control" placeholder="Search">
    <div class="input-group-btn">
      <button class="btn btn-default" type="submit">
        <i class="glyphicon glyphicon-search"></i>

Try it Yourself »

Bootstrap Form Control States

  • INPUT FOCUS - The outline of the input is removed and a box-shadow is applied on focus
  • DISABLED INPUTS - Add a attribute to disable an input field
  • DISABLED FIELDSETS - Add a attribute to a fieldset to disable all controls within
  • READONLY INPUTS - Add a attribute to an input to prevent user input
  • VALIDATION STATES - Bootstrap includes validation styles for error, warning, and success messages. To use, add , , or to the parent element
  • ICONS - You can add feedback icons with the class and an icon
  • HIDDEN LABELS - Add a class on non-visible labels

The following example demonstrates some of the form control states above in a Horizontal form:


<form class="form-horizontal">
  <div class="form-group">
    <label class="col-sm-2 control-label">Focused</label>
    <div class="col-sm">
      <input class="form-control" id="focusedInput" type="text" value="Click to focus">
  <div class="form-group">
    <label for="disabledInput" class="col-sm-2 control-label">Disabled</label>
    <div class="col-sm">
      <input class="form-control" id="disabledInput" type="text" disabled>
  <fieldset disabled>
    <div class="form-group">
      <label for="disabledTextInput" class="col-sm-2 control-label">Fieldset disabled</label>
      <div class="col-sm">
        <input type="text" id="disabledTextInput" class="form-control">
    <div class="form-group">
      <label for="disabledSelect" class="col-sm-2 control-label"></label>
      <div class="col-sm">
        <select id="disabledSelect" class="form-control">
          <option>Disabled select</option>
  <div class="form-group has-success has-feedback">
    <label class="col-sm-2 control-label" for="inputSuccess">
    Input with success and icon</label>
    <div class="col-sm">
      <input type="text" class="form-control" id="inputSuccess">
      <span class="glyphicon glyphicon-ok form-control-feedback"></span>
  <div class="form-group has-warning has-feedback">
    <label class="col-sm-2 control-label" for="inputWarning">
    Input with warning and icon</label>
    <div class="col-sm">
      <input type="text" class="form-control" id="inputWarning">
      <span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>
  <div class="form-group has-error has-feedback">
    <label class="col-sm-2 control-label" for="inputError">
    Input with error and icon</label>
    <div class="col-sm">
      <input type="text" class="form-control" id="inputError">
      <span class="glyphicon glyphicon-remove form-control-feedback"></span>

Try it Yourself »

And here is an example of some of the form control states in an Inline form:


<form class="form-inline">
  <div class="form-group">
    <label for="focusedInput">Focused</label>
    <input class="form-control" id="focusedInput" type="text">
  <div class="form-group">
    <label for="inputPassword">Disabled</label>
    <input class="form-control" id="disabledInput" type="text" disabled>
  <div class="form-group has-success has-feedback">
    <label for="inputSuccess2">Input with success</label>
    <input type="text" class="form-control" id="inputSuccess2">
    <span class="glyphicon glyphicon-ok form-control-feedback"></span>
  <div class="form-group has-warning has-feedback">
    <label for="inputWarning2">Input with warning</label>
    <input type="text" class="form-control" id="inputWarning2">
    <span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>
  <div class="form-group has-error has-feedback">
    <label for="inputError2">Input with error</label>
    <input type="text" class="form-control" id="inputError2">
    <span class="glyphicon glyphicon-remove form-control-feedback"></span>

Try it Yourself »

&#; PreviousNext &#;


Bootstrap 3 Input Groups

Group form controls and text together on a single line.

Input groups enable you to combine form controls and text on the same line. They are similar to button groups in the sense that, they allow you to align the elements flush against each other.

To create an input group, use Bootstrap's class for the actual input group, then use on the element that you want to append or prepend to the form control.

Note that input groups are designed for textual elements only.

Text on Both Sides

You can also place text on both sides of the control.


You can also use glyphicons in the text field.


Use either or on the input group to specify the size of all elements. No need to specify these on each element in the group.

Checkboxes & Radio Buttons

You can place checkboxes and radio buttons instead of text.

Button Addons

You can also add buttons to the form control instead of text.

This requires another element nested inside the input group with a class of .


You can add dropdown menus to the input group.

Split Dropdowns

You can also add split dropdowns to the input group.

  1. Sela tiktok
  2. Pepboys near me
  3. Chevy uplander transmission problems
  4. Wwe starrcade 2020
  5. Rogue weight stack

Bootstrap 5 Search component


The search box is an UI element prepared for creating search engines. Its most important element is search input, but it can also contain icons or buttons. It is also adjusted to be used in various other components such as navbar, dropdown, table, select, sidenav and many more.

Basic example

A basic example with a simple button.


Search comes with plenty of variations. Choose from the following as needed:

  • Search with icon
  • Search with button
  • Search without additional elements

Search with icon

See all the available icons in the Icons Docs.

Search with button

See all the possible input combinations in the Input Group Docs.

Search without additional elements

Search event

Here is example how you can make search component with event on it which will fire after clicking on search button.


By adding extra JS code you can make your search input autocomplete as well.

Learn more about Autocomplete in the Autocomplete Docs


You can make your input in search component focusable by pressing + shortcut. You are able to easily change combinations of shortcuts by modifing array in JS code. For example to change to key just swap it to etc.


Search is easily integrated with plenty of our components such as navbar.

Learn more about Navbar in the Navbar Docs


Moreover, you can integrate our search with dropdown component

Learn more about Dropdowns in the Dropdowns Docs


It works perfectly with MDB datatables.

Learn more about Datatables in the Datatables Docs


You can also find search option in select input by adding to select attribute

Learn more about Select in the Select Docs

If you want to support our friends from Tailwind Elements you can also check out the Tailwind search documentation.

Awesome CSS Search Box Using Only HTML \u0026 CSS

A Bootstrap search box is a great element to use. Especially when creating e-mail systems, websites, apps, and browsers like Chrome or Firefox.

It helps users locate web content fast by displaying relevant search results. Using Bootstrap search box templates in web design projects saves a lot of time for designers and clients.

Some Bootstrap search box templates incorporate features like filter options and calendar inputs. These features help to narrow down search results.

A Bootstrap search box helps to improve:

  • The user experience
  • A website&#;s conversion rates
  • The delivery speed of the web developer

How A Search Box Benefits The User

A website that offers a search box helps the user discover relevant content and hidden gems.

Take for example an e-commerce site. If the user searches for a music speaker, what would the search results be?

The user would see regular speakers and smart speakers of various brands and prices. This variety benefits the user and may lead him to make additional purchases.

So, it&#;s important to incorporate a search box into a website&#;s navigation bar.

Bootstrap Search Box Templates With CSS And HTML Excerpts

Here is a compilation of the best free Bootstrap search boxes to use in your web design projects.

Some of these templates include excerpts of their HTML and CSS codes. To view or create forks of the complete code click the related template links.

Search Box Designs For Websites And Browsers

@keyframers | Increasing Input

Author: Shaw

This design facilitates text input to perform searches. The search box opens with a sliding animation effect when users click the nav button.

This navbar nav box is a concept model. There are a few flaws to fix before using it.

Expanding Search Button in CSS

Author: Noel Davies

This Bootstrap search bar design uses the hover feature to access the navigation box. Its HTML div class form group is set to allow for feedback.

CSS Search Field Animation

Author: Sebastian Popp

This Bootstrap search bar starts as a search icon but transforms when hovered over. It has a modern look and is customizable.

The input-type-text-class for the search bar is set to &#;text&#;.

Bootstrap Table Search

Author: Adobe WordPress

This is a simple Bootstrap nav box template. Its design is suitable for administrative tasks.

These could be searching a company&#;s site for an employee&#;s:

  • Name
  • Job description
  • City and more

This is just a basic table. If you want more functionality from a table, there are countless Bootstrap tables out there you can use.

Author: Aleksandar Cugurovic

There are two Bootstrap search box templates in this demo. Both navigation bars have the same design.

However, the animation effects differ for the search boxes. For example:

1. Option 1:

  • When the user clicks the navbar nav icon, the search box descends. This does not affect the layout of the navigation bar. 

2. Option 2:

  • When users click the search button, the navigation bar disappears by transitioning into the search box.

Bootstrap 4 Navbar with Search Form

Author: Cristina

For this option, the search box is set inside the navbar. The HTML code used to achieve this appears as:

<form class="form-inline"> <input class="form-control mr-2" type="search" placeholder="Search" aria-label="Search"><button class="btn btn- info" type="submit"><i class="fas fa-search"></i></button> </form>

This option comes with the added benefit of a site logo. This promotion tool ensures that visitors see the business logo each time they search for content.

Search Form With Animated Search Button

Author: Himalaya Singh

This Bootstrap search box displays a search icon that becomes an arrow when hovered over. It is a simple search box that features bold texts for better readability.

Bootstrap snippet. bs4 search Bar

Author: Dey Dey

This is a simple Bootstrap search bar option for websites. The form control type within the code positions a search button to the right of the search text.

Bootstrap 5 Need help support template with search

Author: BBBootstrap Team

Here is a great option for e-commerce sites. The HTML input type is set to &#;text&#;.

Search bar animation

Author: Milan Milosev

This search bar design has a beautiful expanding animation feature. The boxy design is easy to use and has ample space for users to add texts.

It&#;ll fit right in with any navigation bar.

Bootstrap 4 text input with search icon

Author: Gungor Budak

This Bootstrap design is great for browsers. The text input style is from the font, &#;Awesome in Bootstrap 4&#;.

This template offers two HTML code options the developer can choose from. These include:

  • The actual HTML search box code:
<div class="form-group has-search"> <span class="fa fa-search form-control-feedback"></span> <input type="text" class="form-control" placeholder="Search">
  • A variation with a button at the end of the nav box:
<div class="input-group"> <input type="text" class="form-control" placeholder="Search this blog"> <div class="input-group-append"> <button class="btn btn-secondary" type="button">

To view the full code, click the heading text link. On a genuine site, there will be a bit of stacking time when searching for content.

Bootstrap Searchbar

Author: Ace Subido

A simple search bar created using Bootstrap, SASS/HAML.

Awesome Search Box

Author: SamimOnline

This is a great option for creating a system that resembles pro browsers like chrome and firefox.

It starts as a search icon inside a dark circle and turns into a long search bar when hovered over. The HTML input type is set to &#;text&#;.

Bootstrap snippet. bs4 Search Results With Users

Author: Dey Dey

Here is a great Bootstrap option for administrative sites. There is a form control button type at the end of the text bar.

This form control type shows up on the UI as a button with the &#;search&#; text.

Bootstrap 4 Search box for domain names registrar

Author: BBBootstrap Team

This Bootstrap design is a great option for eCommerce and administrative sites.

Bootstrap 4 Online work finder with search bar and pricing

Author: Kabir Bhatia

This Bootstrap search bar is for discovering content related to online job listings. The form control type within the code positions a search icon to the right of the search text.

Transparent Search Box

Author: Kelton

This bootstrap search bar is designed like a drop-down menu. This filter feature helps users to narrow down their searches.

search box bs4

Author: Jeevan

This Bootstrap option is great for vehicle sales browsers and apps. Users can adjust the text in each dropdown item to suit any type of website.

It has a dropdown menu that operates as a filter to narrow down search results.

UI #2 &#; Search Bar

Author: Jove Angelevski

Designed with the latest CSS and HTML scripts this web element will help give your site a unique look.

Carousel with Search

Author: niteshmalviya

This is a Bootstrap search example with three input searches. This option is mainly for vehicle reservation systems like Uber.

Built with HTML and CSS scripts, it works well with modern sites and is easy to use. The customer enters the pickup and drop-off info and chooses the vehicle type.

Search Box Designs For Apps And Websites

Search button animation

Author: Kristy Yeaton

For this option, the search box becomes visible when one clicks on the search button. This stylish design is great for building web browsers and websites.

Adjusting the code will recoil or extend the search bar to fit any web page or app. To do this, adjust the values in the CSS &#;search&#; field.

Bootstrap Flat Search Box

A great Bootstrap design nav box for browsers and e-mail systems.

Wikipedia Viewer[freecodecamp]

Author: Arshad Khan

This option is a Bootstrap search bar that returns a Wikipedia result for the keyword.

This Bootstrap option uses Media Wiki API from Wikipedia. It also has a button that redirects you to a random wiki topic.

Bootstrap Navbar and Search box

This option has three different views for different screen types. It is a simple Bootstrap search bar usable for any type of web or app development project.

Bootstrap snippet. Filter search result page

Author: Dey Dey

This design is great for e-commerce websites and apps. It comes with filter options, including a calendar input feature to narrow the search results.

The input-type-text-class for the category filter is set to &#;checkbox&#;.

The date filter&#;s div class input group is set to &#;date form date’. Naturally, the date filter&#;s input type is &#;text&#;.

Search Filter

Author: wm06

This navbar design features a filter system based on pricing, location, and type.

Simple Search Field (Pure CSS)

Author: Charlie Marcotte

For this design, the author has included a voice search icon at the end of the text box (input group append). So, users can integrate a voice search tool with the search box.

Simple Search Bar

Author: Emily Huang

This option is a simple search box. The calm white search button and blue background color are visually refreshing.

Users can customize it to fit into the navigation header of their app or website. To resize or reposition the search bar use the CSS wrap that corresponds with the HTML div class wrap to adjust the values.

Secret Project

Author: Mohan Khadka

This option is a search box for mobile apps. The design of the user interface (UI) is minimal and easy to use.

Pure CSS expanding search with custom properties (no Edge support)

Author: Ana Tudor

With this option, one only needs to click the search button to expand the search box. It does not require a lot of screen space making it a flexible option for browsers, apps, and websites.

Bootstrap Navbar with Search Box

Here is a Bootstrap search box that can be repositioned anywhere on a website&#;s UI.

Bootstrap snippet. General Search Results

Author: Dey Dey

This is a simple bootstrap search bar option for employment listing sites and apps. It includes a dropdown item that filters a job search by country.

The form control type within the HTML code positions a search button to the right of the search text.

Ending thoughts on these Bootstrap search boxes

A search box is a great element to use in any web development project. Using one of these free, prebuilt Bootstrap search box templates will shorten production time.

The search box templates in this list utilize HTML and CSS scripts. They are customizable to fit any project you are undertaking.

Of course, the search box must have relevant content to discover when users perform searches.

Adjusting the code for each of these templates is easy even if you are not a pro.

So, go ahead! Grab a Bootstrap search box from this selection.

If you enjoyed reading this article with Bootstrap search boxes, you should check out this one about HTML and CSS tabs.

We also wrote about a few related subjects like Bootstrap gallery templates, HTML and CSS menu, HTML and CSS forms, CSS checkbox examples, CSS search box designs, Bootstrap login form templates and CSS hover effects.

FREE: Your Go-To Guide For Creating
Awe-Inspiring Websites

Get a complete grip on all aspects of web designing to build high-converting and creativity-oozing websites. Access our list of high-quality articles and elevate your skills.

The Author

SR Staff

We're a passionate bunch of designers and developers writing about the ins and outs of web design.

Liked this Post?
Please Share it!


Box search bootstrap 3


PHP With Bootstrap3 Tutorial - How to Creating the Search bar Part 82


You will also like:


180 181 182 183 184