Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Font Awesome Icons</title> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous"> <style> i { color: #8ebf42; } .star { font-size: 2em; } </style> </head> <body> <h2>Icons example with font-size and color</h2> <div> <p>Default size icon.</p> <i class="fas fa-star"></i> <p>Font-size: 2em;</p> <i class="fas fa-star star"></i> </div> </body> </html>