How to add icons in project using Bootstrap ? Last Updated : 11 Sep, 2024 Comments Improve Suggest changes Like Article Like Report 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 directly in your web pages.Syntax<i class="bi bi-icon_name"></i><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"/>Bootstrap Font Icon CSS link:<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" />ApproachGo to the official site of Bootstrap & copy the Bootstrap CDN for CSS, JS, Popper.js, and jQuery links.Add the CDN link along with add font icon link inside the <head> tagAdd the class with bi bi-icon_name followed by the name of the icon.Example 1: This example we use Bootstrap to include a globe icon (bi-globe) alongside a heading. It links to Bootstrap CSS and icons via CDN for easy styling and icon usage. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content= "width=device-width, initial-scale=1" /> <title>Bootstrap Icons in HTML</title> <!-- Bootstrap CSS --> <link rel="stylesheet" href= "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" /> <!-- Bootstrap Font Icon CSS --> <link rel="stylesheet" href= "https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" /> </head> <body> <center> <h1 style="color: green"> Geeks For Geeks </h1> <h1 class="m-4">Globe Icon: <i class="bi-globe"></i> </h1> </center> </body> </html> Output:Example 2: This example we use Bootstrap to style and display icons. It includes a centered heading and shows three Bootstrap icons: search, alarm, and cart, each with its own label HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Bootstrap Icons in HTML</title> <!-- Bootstrap CSS --> <link rel="stylesheet" href= "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" /> <!-- Bootstrap Font Icon CSS --> <link rel="stylesheet" href= "https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" /> </head> <body> <center> <!-- Main heading with green color --> <h1 style="color: green"> Bootstrap Icons </h1> <!-- Display Search Icon --> <h1 class="m-4">Search Icon: <i class="bi-search"></i> </h1> <!-- Display Alarm Icon --> <h1 class="m-4">Alarm Icon: <i class="bi-alarm"></i> </h1> <!-- Display Cart Icon --> <h1 class="m-4">Cart Icon: <i class="bi-cart"></i> </h1> </center> </body> </html> Output:Bootstrap Icon Comment More infoAdvertise with us Next Article How to add icons in project using Bootstrap ? A attardeurjita77 Follow Improve Article Tags : Web Technologies Bootstrap Bootstrap-4 HTML-Questions Bootstrap-Questions +1 More Similar Reads How to Add Icon in NavBar using React-Bootstrap ? This article will show you how to add an icon in the navigation bar using React-Bootstrap. We will use React-Bootstrap because it makes it easy to use reusable components without implementing them. PrerequisitesReactJSJSXReact BootstrapCreating React App and Installing ModuleStep 1: Create a React a 2 min read How to use Bootstrap Icons in React ? React is a free library for making websites look and feel cool. With React, your websites can be super interactive and lively. Itâs great for making modern websites where everything happens on one page. The best part is that you can build and reuse different parts of your webpage, making it easy to 2 min read How to Add Bootstrap in a Project? Bootstrap is a popular open-source framework for building responsive and mobile-first websites using HTML, CSS, and JavaScript. It provides pre-designed components and templates that simplify web development. Why Use Bootstrap?Bootstrap offers several advantages for web development:Faster and Easier 3 min read How to add tooltip to an icon using Bootstrap ? In this article, we will see how to add tooltip element to an icon using Bootstrap. A Tooltip is used to provide interactive textual hints to the user about the element when the mouse pointer moves over. The tooltip is quite useful for displaying the description of different elements on the webpage. 2 min read How To Use Bootstrap Icons In Angular? The most popular framework for making responsive and mobile-friendly websites is called Bootstrap. They include forms, typography, buttons, tables, navigation, modals, and picture carousels etc.These are built using CSS and HTML. It also supports plugins written in JavaScript. It provides the proces 3 min read Like