Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Icônes Font Awesome</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>Exemple des icônes avec font-size et color</h2> <div> <p>Icône de la taille initiale.</p> <i class="fas fa-star"></i> <p>Font-size: 2em;</p> <i class="fas fa-star star"></i> </div> </body> </html>