Font Awesome Loction Pin Icon (Marker, Pinpoint, Locator)

In this tutorial we will learn how to use Font Awesome Location Pin icon, also known as fa fa-location-pin. This icon representation for markers, pinpoints, and locators on maps, You can also change the location pin icon's color, font size, style, and animation in the 'Try it' editor

Fontawesome Version 6.X

location pin

Web

<i class='fa-solid fa-location-pin'></i>

React

<FontAwesomeIcon icon="fa-solid fa-location-pin" />

Vue

<font-awesome-icon icon="fa-solid fa-location-pin" />

location pin

Web

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

React

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

Vue

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

location pin

Web

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

React

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

Vue

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

location pin

Web

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

React

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

Vue

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

location pin

Web

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

React

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

Vue

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

How to add Font Awesome location pin Icon ?

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

HTML Code

Get complete html code for icon location pin

                    
                    <!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-location-pin'></i>
                        </body>
                    </html>                    

Tags

geography,Marker,GPS ,Pinpoint,Locator

Change Font Awesome Icon Location pin 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-location-pin blue-color'></i> <i class='fa-solid fa-location-pin green-color'></i> <i class='fa-solid fa-location-pin teal-color'></i> <i class='fa-solid fa-location-pin yellow-color'></i> <i class='fa-solid fa-location-pin 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

Location Pin Icon Font Awesome - FAQs

⭐What is the Font Awesome Location Pin Icon code?

Icon Code is - fa-solid fa-location-pin.

⭐ What does the fa-solid fa-location-pin Icon mean?

fa-solid fa-location-pin is the Icon code of Font Awesome Location Pin.

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

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

⭐ How to add a Blue color Font Awesome Location Pin Icon?

Add the blue color Location Pin icon of the font awesome by using code: fa-solid fa-location-pin style='color: blue;'.

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

To change the Location Pin icon to white color use code: fa-solid fa-location-pin style='color: white;'.

Advertisements



Advertisements



Looking For More Icons?