<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Creating Toast in Bootstrap</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script> </head> <body> <div class="m-4"> <p><strong>Note:</strong> To display the toast, you need to add the class <code><strong>".show"</strong></code>, and to apply a fade transition to the toast, you can use the class <code><strong>".fade"</strong></code> in CSS. By default, the toast is initially hidden.</p> <div class="toast fade show" id="myToast"> <div class="toast-header"> <strong class="me-auto"><i class="bi-gift-fill"></i> Hai</strong> <small>12 mins ago</small> <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button> </div> <div class="toast-body"> How are You<a href="#">Click here!</a> </div> </div> </div> </body> </html>