Font Awesome Train Icon

Train Icon is given below. You can use this icon in the same way in your project. First, make sure you have added the Font Awesome Icon library. If this library is added, just add the HTML CSS class fa fa-train to any element to add the icon. Font Awesome train Icon can be resized as per your need. You can manage the size of the icon (fa fa train) by using the font-size CSS style.

You can get steps to add HTML icon Train in Web, Font Awesome and other framwork.

Fontawesome Version 4.X

train

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

train

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

train

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

train

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

train

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


Fontawesome Version 5.X

train

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

train

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

train

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

train

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

train

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

Fontawesome Version 6.X

train

Web

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

React

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

Vue

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

train

Web

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

React

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

Vue

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

train

Web

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

React

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

Vue

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

train

Web

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

React

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

Vue

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

train

Web

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

React

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

Vue

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

How to add Font Awesome train Icon ?

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

HTML Code

Get complete html code for icon train

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

Font Awesome Icon train Icon | fa fa train | HTML, CSS

Adding Font Awesome Icon HTML Train(fa fa-train) in web project is very simple. You need to add the icon class along with fa, it is basically main class and mandatory for icons so do not forget to add this class. You can customize Font Awesome Icon train Icon Train as per your requirement, suppose that you need to chnage the color of Train icon or change the size of size. It is pretty simple to change color of icon Train just add style="color:red" it will make font color red. On the same way you can change size of Train icon by just adding style="font-size:50px;". Smililarly you can add border color, shadow and other font styles to Train. Hope this icon fullfilled your need. Thanks for visiting us.

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

 

 

Train Icon Font Awesome - FAQs

⭐What is the Font Awesome Train Icon code?

Icon Code is - fa fa-train.

⭐ What does the fa fa-train Icon mean?

fa fa-train is the Icon code of Font Awesome Train.

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

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

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

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

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

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

Advertisements



Advertisements



Looking For More Icons?