Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
Bootstrap Alerts Example
Keywords : alerts, bootstrap, bootstrap alerts, bootstrap alert, bootstrap closing alerts, bootstrap error message, bootstrap alert box, bootstrap alert message, bootstrap examples, bootstrap alerts example
Example
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Alerts Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> <style> .bcontent { margin-top: 10px; } </style> </head> <body> <div class="container bcontent"> <h2>Bootstrap Alerts</h2> <div class="alert alert-primary"> <strong>Primary</strong> Alert - Useful to display important message </div> <div class="alert alert-secondary"> <strong>Secondary</strong> Alert - Useful to display less important message </div> <div class="alert alert-success"> <strong>Success</strong> Alert - Useful to display success message </div> <div class="alert alert-danger"> <strong>Danger</strong> Alert - Useful to display danger message </div> <div class="alert alert-warning"> <strong>Warning</strong> Alert - Useful to display warning message </div> <div class="alert alert-info"> <strong>Info</strong> Alert - Useful to display informative message </div> <div class="alert alert-light"> <strong>Light</strong> Alert - Simple light grey message </div> <div class="alert alert-dark"> <strong>Dark</strong> Alert - Simple dark grey message </div> </div> </body> </html>
Click Here to See Result
Result
Previous
Next