Font Awesome Lock (Privacy, Security, Password, Login )

Font Awesome lock icons can be used to represent security, privacy, or protection. The lock icon can be added to any web page using different classes, such as fa fa-lock, fas fa-lock, or fa-solid fa-lock.fa Lock Icon refers to close or tie (something) so that it can be opened only with a key.This Bank icon Releated to Privacy, Security, Password, Login

Fontawesome Version 4.X

lock

<i class='fa fa-lock'></i>

lock

<i class='fa fa-lock' style='color: white'></i>

lock

<i class='fa fa-lock' style='color: red'></i>

lock

<i class='fa fa-lock' style='color: blue'></i>

lock

<i class='fa fa-lock' style='color: #f3da35'></i>
Try it Yourself


Fontawesome Version 5.X

lock

<i class='fas fa-lock'></i>

lock

<i class='fas fa-lock' style='color: white'></i>

lock

<i class='fas fa-lock' style='color: red'></i>

lock

<i class='fas fa-lock' style='color: blue'></i>

lock

<i class='fas fa-lock' style='color: #f3da35'></i>
Try it Yourself

Fontawesome Version 6.X

lock

Web

<i class='fa-solid fa-lock'></i>

React

<FontAwesomeIcon icon="fa-solid fa-lock" />

Vue

<font-awesome-icon icon="fa-solid fa-lock" />

lock

Web

<i class='fa-solid fa-lock' style='color: white'></i>

React

<FontAwesomeIcon icon="fa-solid fa-lock" style={{color: 'white'}} />

Vue

<font-awesome-icon icon="fa-solid fa-lock" :style="{color: 'white'}" />

lock

Web

<i class='fa-solid fa-lock' style='color: red'></i>

React

<FontAwesomeIcon icon="fa-solid fa-lock" style={{color: 'red'}} />

Vue

<font-awesome-icon icon="fa-solid fa-lock" :style="{color: 'red'}" />

lock

Web

<i class='fa-solid fa-lock' style='color: blue'></i>

React

<FontAwesomeIcon icon="fa-solid fa-lock" style={{color: 'blue'}} />

Vue

<font-awesome-icon icon="fa-solid fa-lock" :style="{color: 'blue'}" />

lock

Web

<i class='fa-solid fa-lock' style='color: #f3da35'></i>

React

<FontAwesomeIcon icon="fa-solid fa-lock" style={{color: '#f3da35'}} />

Vue

<font-awesome-icon icon="fa-solid fa-lock" :style="{color: '#f3da35'}" />
Try it Yourself

How to add Font Awesome lock Icon ?

Font Awesome Icon fa fa lock Icon can be added to any web page simply as below. You can integrate Icon in web pages by just adding following below syntax & icon code.

Icon -
<i class='fa fa-lock'></i>
Icon Code -
fa fa-lock

HTML Code

Get complete html code for icon lock

                    
                    <!DOCTYPE html>
                    <html>
                        <head>
                        <title>Page Title</title>
                        <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'>
                       </head>
                        <body>
                        <i class='fa fa-lock'></i>
                        </body>
                    </html>                    

Tags

connection,junction,privacy,security,password,padlock,change password,permission,login,secret,protection

Change Font Awesome 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>
<i class='fa fa-lock blue-color'></i> <i class='fa fa-lock green-color'></i> <i class='fa fa-lock teal-color'></i> <i class='fa fa-lock yellow-color'></i> <i class='fa fa-lock red-color'></i>

Output of the above example will be as below-


Note- Make Sure You have included the below Font Awesome file in header-
            
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'>            
            
Related Icons

Lock Icon Font Awesome - FAQs

⭐What is the Font Awesome Lock Icon code?

Icon Code is - fa fa-lock.

⭐ What does the fa fa-lock Icon mean?

fa fa-lock is the Icon code of Font Awesome Lock.

⭐ Can we add fa fa-lock Icon in different sizes?

Yes, you can Icon of fa fa-lock in various pixels.

⭐ How to add a Blue color Font Awesome Lock Icon?

Add the blue color Lock icon of the font awesome by using code: fa fa-lock style='color: blue;'.

⭐ How to make white color icon of a Font Awesome Lock?

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

Advertisements



Advertisements



Looking For More Icons?