Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Using Font Awesome icons in HTML</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> </head> <body> <p><i class="fa fa-user" style="font-size: 24px;"></i></p> <p><i class="fa fa-user-secret" style="font-size: 24px; color: red;"></i></p> <button type="button"><i class="fa fa-search"></i> Search</button> <p><strong>Note:</strong> You can use the text properties like "color", "font-size", "font-weight", etc. on the the i element to style the icon.</p> </body> </html>