HTML CSS examples for Bootstrap Class List:alert-link
.alert-link - Used on links inside alerts to add matching colored links
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.6/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script> </head><!-- w ww.j a v a2s . c o m--> <body> <div class="container"> <h2>Alert Links</h2> <p>Add the alert-link class to any links inside the alert box to create "matching colored links".</p> <div class="alert alert-success"> <strong>Success!</strong> You should <a href="#" class="alert-link">read this message</a>. </div> <div class="alert alert-info"> <strong>Info!</strong> You should <a href="#" class="alert-link">read this message</a>. </div> <div class="alert alert-warning"> <strong>Warning!</strong> You should <a href="#" class="alert-link">read this message</a>. </div> <div class="alert alert-danger"> <strong>Danger!</strong> You should <a href="#" class="alert-link">read this message</a>. </div> <div class="alert alert-primary"> <strong>Primary!</strong> You should <a href="#" class="alert-link">read this message</a>. </div> <div class="alert alert-secondary"> <strong>Secondary!</strong> You should <a href="#" class="alert-link">read this message</a>. </div> <div class="alert alert-dark"> <strong>Dark!</strong> You should <a href="#" class="alert-link">read this message</a>. </div> <div class="alert alert-light"> <strong>Light!</strong> You should <a href="#" class="alert-link">read this message</a>. </div> </div> </body> </html>