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

Advertisements



Advertisements



Looking For More Icons?