- 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 a yellow color alert box that indicates caution in Bootstrap
To create a yellow color alert box indicating a warning action, use the alert-warning class.
To implement an alert-warning class, you need to try to run the following code
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 = "alert alert-info"> <p>Indicates a positive action!</p> </div> <div class = "alert alert-warning"> <p>Indicates warning!</p> </div> </body> </html>
- Related Articles
- 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
- Create a light-blue alert box that indicates some information with Bootstrap
- Create an alert message box with Bootstrap
- Create a red button that indicates danger in Bootstrap
- Add a fading effect when closing an alert box in Bootstrap
- Create a yellow button (warning) with Bootstrap
- How to change the color of the alert box in JavaScript?
- How to create and apply CSS to JavaScript Alert box?
- Create a padded grey box with rounded corners in Bootstrap
- Add a yellow background color to an element to set warning action with Bootstrap
- Bootstrap alert class
- Bootstrap alert-info class
- Bootstrap alert-warning class
- Bootstrap alert-danger class

Advertisements