Live
Run
Copied to Clipboard
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> </head> <body> <h1>fa fa-shopping-cart</h1> <i class='fa fa-shopping-cart'></i> <i class='fa fa-shopping-cart' style='font-size:20px'></i> <i class='fa fa-shopping-cart' style='font-size:36px;color:red'></i> <button class='custom-button'><i class='fa fa-shopping-cart'></i> </button> <style> .custom-button { margin-top:10px; display:block; padding: 10px 20px; font-size: 16px; font-weight: bold; cursor: pointer; border: none; border-radius: 5px; background-color: #ad6800; color: #fff; transition: background-color 0.3s ease; } .custom-button:hover { background-color: #874d00; } </style> </body> </html>