Font Awesome Gun Icon (Weapon, Pistol, Revolver)

The Font Awesome Gun Icon is used indicate Weapon, Pistol, Revolver . This icon avaiable in version 6 that can be access by class name : fa-solid fa-gun refers to a weapon used for shooting and is also known as "fa-Gun". If you want to edit or customize this gun icon, utilize the 'Try It' editor to change its color, size, and animation.

Fontawesome Version 6.X

gun

Web

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

React

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

Vue

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

gun

Web

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

React

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

Vue

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

gun

Web

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

React

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

Vue

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

gun

Web

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

React

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

Vue

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

gun

Web

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

React

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

Vue

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

How to add Font Awesome gun Icon ?

Font Awesome Icon fa solid fa gun 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-solid fa-gun'></i>
Icon Code -
fa-solid fa-gun

HTML Code

Get complete html code for icon gun

                    
                    <!DOCTYPE html>
                    <html>
                        <head>
                        <title>Page Title</title>
                        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"  crossorigin="anonymous" referrerpolicy="no-referrer" />
                       </head>
                        <body>
                        <i class='fa-solid fa-gun'></i>
                        </body>
                    </html>                    

Tags

Weapon,Pistol,Revolver,Bullet,Shotgun

Change Font Awesome Icon Gun 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-solid fa-gun blue-color'></i> <i class='fa-solid fa-gun green-color'></i> <i class='fa-solid fa-gun teal-color'></i> <i class='fa-solid fa-gun yellow-color'></i> <i class='fa-solid fa-gun 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/6.5.1/css/all.min.css"  crossorigin="anonymous" referrerpolicy="no-referrer" />            
            
Related Icons
 

Gun Icon Font Awesome - FAQs

⭐What is the Font Awesome Gun Icon code?

Icon Code is - fa-solid fa-gun.

⭐ What does the fa-solid fa-gun Icon mean?

fa-solid fa-gun is the Icon code of Font Awesome Gun.

⭐ Can we add fa-solid fa-gun Icon in different sizes?

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

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

Add the blue color Gun icon of the font awesome by using code: fa-solid fa-gun style='color: blue;'.

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

To change the Gun icon to white color use code: fa-solid fa-gun style='color: white;'.

Advertisements



Advertisements



Looking For More Icons?