Bootstrap Lock Icon (Privacy, Security)

Bootstrap Lock Icon refers to closing or tie (something) so that it can be opened only with a key. This icon is also known as "bi bi-lock" or bi lock". Lock bootstrap icon also symbolizes privacy and security.

Lock Icon is given below. You can use this icon on the same way in your project. First make sure you have added Bootstrap Icon library. If this library is added just add the HTML css class lock to any element to add the icon. Bootstrap lock Icon can be resized as per your need. You can manage size of icon(lock) by using font-size css style.

You can get steps to add HTML icon Lock in Web, Bootstrap and Angular Bootstrap framwork.

How to add Bootstrap lock Icon ?

Bootstrap Icon lock Icon can be added to any web page simply as below.

Icon Code-

<span class="bi bi-lock"></span>

Lock Icon Code | Customize color

You can get icon lock in blue, white, red color and transparent color from below list. You can also customize color using color picker.

Advance Editor

fontawesomeicons.com

1. Web

You can integrate Icon in web pages by just adding following below syntax & icon code.

Icon -
<span class="bi bi-lock"></span>
Icon Code -
lock
Try Demo Yourself

Bootstrap Button with lock Icon

Button Icon Left -

You can add icon to button left aligned as below.

<button type="button" class="btn btn-primary"><span class="bi bi-lock"></span> Sample Button</button>

Button Icon Right -

You can add icon to button right aligned as below.

<button type="button" class="btn btn-primary">Sample Button <span class="bi bi-lock"></span></button>

Icon Button -

If you want to make button icon only and no text, add following code.

<button type="button" class="btn btn-light"><span class="bi bi-lock"></span></button>

Icon Button Link-

Icon link button can be created simply as below.

Tags

join,interlock,mesh,engage,link,unite,connect,combine,yoke,mate,couple,become stuck,stick,jam,secure,bond ,Bootstrap Privacy Icon, Bootstrap Security Icon.


Bootstrap Icon lock Icon | lock | HTML, CSS

Adding Bootstrap Icon icon HTML Lock(lock) in web project is very simple. You need to add the icon class along with bi, it is basically main class and mandatory for icons so do not forget to add this class. You can customize Bootstrap Icon lock Icon Lock as per your requirement, suppose that you need to chnage the color of Lock icon or change the size of size. It is pretty simple to change color of icon Lock just add style="color:red" it will make font color red. On the same way you can change size of Lock icon by just adding style="font-size:50px;". Smililarly you can add border color, shadow and other font styles to Lock. Hope this icon fullfilled your need.

Change Bootstrap Icon Icon Lock Color

Sometimes we need icons in different color, as we suggested by adding css style we can change color. Here we have created one example to change color of icons with css classes.


    <style>
.blue-color {
color:blue;
}
.green-color {
color:green;
}
.teal-color {
color:teal;
}
.yellow-color {
color:yellow;
}
.red-color {
color:red;
}
</style>
<span class="bi bi-lock blue-color"> </span>
<span class="bi bi-lock green-color"> </span>
<span class="bi bi-lock teal-color"> </span>
<span class="bi bi-lock yellow-color"> </span>
<span class="bi bi-lock red-color"> </span>

Output of the above example will be as below-


Note- Make Sure You have included the below Bootstrap file in header-

            <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">    

Advertisements



Related Icons































lock- Faq(s)?

⭐What is the Bootstrap Lock Icon code?

Icon Code is - bi bi-lock.

⭐ What does the bi bi-lock Icon mean?

bi bi-lock is the Icon code of Bootstrap Lock.

⭐What is Bootstrap Lock React & Angular Icon code?

Bootstrap Lock Icon code for React and Angular is the same i.e, bi bi-lock.

⭐ Can we add Bootstrap Button with Lock icon?

Yes, You can add the Bootstrap Lock icon with the button (btn).

⭐ How to make blue color icon of a Bootstrap Lock?

To change the Lock icon to blue color use code: bi bi-lock style='color: blue;'.

Advertisements



Looking For More Icons?