Mail icon font awesome
The mail icon in Font Awesome is represented by the following code:
fa-envelope
You can use this code to add the mail icon to your HTML or CSS file. For example:
HTML:
<i class="fa fa-envelope"></i>
CSS:
<i class="fa fa-envelope"></i>
You can also use the fa-envelope-o
class to get the outline version of the mail icon.
If you want to use the mail icon with a specific color or size, you can use the following classes:
fa-lg
for a larger iconfa-2x
for a 2x larger iconfa-3x
for a 3x larger iconfa-4x
for a 4x larger iconfa-5x
for a 5x larger iconfa-fw
for a fixed-width iconfa-flip-horizontal
for a horizontally flipped iconfa-flip-vertical
for a vertically flipped icon
For example:
<i class="fa fa-envelope fa-lg"></i>
This will render a larger mail icon.
You can also use the fa-inverse
class to invert the color of the icon.
For example:
<i class="fa fa-envelope fa-inverse"></i>
This will render a white mail icon on a black background.
Note that you need to include the Font Awesome CSS file in your HTML file for the icons to work. You can do this by adding the following line of code to your HTML file:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
Replace the URL with the actual location of the Font Awesome CSS file on your server.