- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Create an alert message box with Bootstrap
Use the .alert class in Bootstrap to create an alert message box −
Example
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css"> <script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src = "https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> </head> <body> <div class = "container"> <div class = "alert alert-warning"> <p>Warning!</p> </div> </div> </body> </html>
- Related Articles
- Create a light-blue alert box that indicates some information with Bootstrap
- How to center the JavaScript alert message box?
- Create a yellow color alert box that indicates caution in Bootstrap
- How to create a message box with Tkinter?
- Add a fading effect when closing an alert box in Bootstrap
- Create a green color alert box that indicates a positive action in Bootstrap
- Create a red color alert box that indicates a dangerous action in Bootstrap
- How to create a Tkinter error message box?
- What is an alert box in JavaScript?
- Create a padded grey box with rounded corners in Bootstrap
- Creating a popup message box with an Entry field in tkinter
- How to create and apply CSS to JavaScript Alert box?
- Bootstrap alert class
- How can I create a simple message box in Tkinter?
- How to call JavaScript function in an alert box?

Advertisements