How to use icons in Bootstrap Framework ? Last Updated : 07 Oct, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report Bootstrap is CSS framework for developing responsive and mobile-first websites. Bootstrap added a feature in which one can use quality icons provided by Bootstrap. These icons are available in SVGs or web fonts format. Bootstrap provides a thousand plus high-quality icons, which you can use in your project. You can also change color and resize these icons on the basis of need. What makes icons in the Bootstrap framework different and why should we use it? 'Flexibility' is what which makes it different from other icon solutions. If you are using icons in Bootstrap framework, you can change the color of icon with the help of color property of CSS.You can also change the size of icon by using font-size property of CSS.Bootstrap is not necessary for using Bootstrap's icons in your project, you can use it with or without Bootstrap. Basic syntax for using Bootstrap icons: <i class="bi-class-name"></i> The <i> element is the container element which is used for adding Bootstrap icons. The string 'bi-' is always attached before class name of icons. It refers to bootstrap icons. The class-name is basically a class of icon which we are using. Bootstrap provide us many classes of icons such as Facebook, Twitter, a globe, a star and search etc. Example: This is the HTML code of using Bootstrap's search icon in submit button. HTML <!DOCTYPE html> <html> <head> <!-- Bootstrap CSS --> <link rel="stylesheet" href= "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"> <!--Bootstrap Icons CSS --> <link rel="stylesheet" href= "https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"> </head> <body class="container"> <h2>Welcome To GFG</h2> <p> The below button is using the bi-search class to display the search icon. </p> <!-- We made a button on which Bootstrap icon of 'search' class present --> <button type="submit" class="btn btn-primary"> <span class="bi-search"></span> Search </button> </body> </html> Output: The search icon which you are seeing on the button that is a icon provided by Bootstrap framework belongs to class-name search. Comment More infoAdvertise with us Next Article How to use icons in Bootstrap Framework ? R rishabh_bhatt Follow Improve Article Tags : HTML HTML-Questions Bootstrap-Questions Similar Reads How to add Icons to Buttons in Bootstrap 5 ? Adding Icons to the buttons enhances the overall look of the web page. Buttons are the components provided to create various buttons. Bootstrap 5 includes several predefined button styles, each serving its purpose. We can add icons to the buttons in several ways including Font Awesome Icons and Icon 2 min read How to add icons in project using Bootstrap ? Bootstrap Icons is an open-source icon library specifically designed for use with Bootstrap's framework. Adding icons using Bootstrap means integrating the Bootstrap Icons library into your project and using its icon classes in HTML. This allows easy inclusion of scalable, customizable icons directl 2 min read How to Style Icons Bold in Bootstrap ? An icon is a visual representation that helps to understand the website & also helps to navigate through the website. To create a bold icon in CSS, we use font-weight as bold but in Bootstrap this syntax doesn't work. We will learn how to style icons bold in bootstrap in this article.Using CSS c 2 min read How to change Dropdown Icon on Bootstrap 5? Dropdowns are toggleable, contextual overlays for displaying lists of links and more. Theyâre made interactive with the included Bootstrap dropdown JavaScript plugin. Theyâre toggled by clicking, not hovering this is an intentional design decision. In this article, we will learn How to change the Dr 4 min read How to Insert a Search Icon in Bootstrap ? In this article, we will see how to insert a search icon in Bootstrap. While Bootstrap does not include an icon set by default, they do have their own comprehensive icon library called Bootstrap Icons. Feel free to use them or any other icon set in your project. There are various ways to add a searc 3 min read Like