Font Awesome Star Icon : Fa Fa Star

To add a Font Awesome star icon to your website, you can use the following Font Awesome classes: fa fa-star for version 4, fas fa-star for version 5, or fa-solid fa-star for version 6. These classes will create a star shape that you can use for various purposes, such as indicating a favorite or like button. You can customize the size and color of the star icon using CSS.Font Awesome Star Icon refers to a large ball of gas burning in outer space that looks like a small point of light in the night sky. This font awesome icon is also known as "fa-Star" or "fa fa Star".

Fontawesome Version 4.X

star

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

star

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

star

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

star

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

star

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


Fontawesome Version 5.X

star

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

star

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

star

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

star

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

star

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

Fontawesome Version 6.X

star

Web

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

React

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

Vue

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

star

Web

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

React

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

Vue

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

star

Web

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

React

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

Vue

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

star

Web

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

React

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

Vue

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

star

Web

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

React

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

Vue

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

FA Regular star Version 6.X

px Enter Size
Color Code
HTML
<i class="fa-regular fa-star"></i>

How to add Font Awesome star Icon ?

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

HTML Code

Get complete html code for icon star

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

Tags

rating, asterisk, reference, mark, Pride, achievement, goal, divinity, hope, forever, heaven, freedom,Full Star,Shape,Like,Favorite

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

Star Icon Font Awesome - FAQs

⭐What is the Font Awesome Star Icon code?

Icon Code is - fa fa-star.

⭐ What does the fa fa-star Icon mean?

fa fa-star is the Icon code of Font Awesome Star.

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

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

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

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

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

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

Advertisements



Advertisements



Looking For More Icons?