Font Awesome Facebook CSS Code

The Facebook icon is defined as an online social networking website where people can create profiles, share information about themselves, such as photos and quotes, and respond to or link to information posted by others. An example of an online social networking website is Facebook. This Font Awesome Facebook icon is also known as "fa-Facebook" or "fa fa Facebook

Fontawesome Version 4.X

facebook

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

facebook

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

facebook

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

facebook

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

facebook

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


Fontawesome Version 5.X

facebook

<i class='fab fa-facebook'></i>

facebook

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

facebook

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

facebook

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

facebook

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

Fontawesome Version 6.X

facebook

Web

<i class='fa-brands fa-facebook'></i>

React

<FontAwesomeIcon icon="fa-brands fa-facebook" />

Vue

<font-awesome-icon icon="fa-brands fa-facebook" />

facebook

Web

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

React

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

Vue

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

facebook

Web

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

React

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

Vue

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

facebook

Web

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

React

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

Vue

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

facebook

Web

<i class='fa-brands fa-facebook' style='color: #f3da35'></i>

React

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

Vue

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

How to Add Font Awesome 4 Facebook Icon ?

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

HTML Code

Get complete html code for icon facebook

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

Tags

twitter ,linkedin,blog ,myspace,instagram ,whatsapp,social networking site,Friend,Messages,social network,Meta,FB Icon,Mark Zuckerberg,facebook.com,fa fa-facebook,font awesome 4 facebook logo

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

Facebook Icon Font Awesome - FAQs

⭐What is the Font Awesome Facebook Icon code?

Icon Code is - fa fa-facebook.

⭐ What does the fa fa-facebook Icon mean?

fa fa-facebook is the Icon code of Font Awesome Facebook.

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

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

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

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

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

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

Advertisements



Advertisements



Looking For More Icons?