ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 4 Alert Link
Source Code
<html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css"> <title>Bootstrap 4 Alert Link</title> </head> <body> <div class="container my-5 text-center"> <h1 class="my-3">Bootstrap 4 Alert Link</h1> <p> In this example, you will learn how to create Bootstrap 4 alert link. To create alert box, use .alert & .alert-* classes while to create the alert link, use .alert-link class. </p> <div class="alert alert-success"> <strong>Success!</strong> This is a <a href="#" class="alert-link">success alert link</a> </div> <div class="alert alert-primary"> <strong>Primary!</strong> This is a <a href="#" class="alert-link">primary alert link</a> </div> <div class="alert alert-danger"> <strong>Danger!</strong> This is a <a href="#" class="alert-link">danger alert link</a> </div> </div> <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.min.js"></script> </body> </html>
Output :
Running