ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 5 Alert Link Example
Source Code
<!DOCTYPE html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="description" content=""> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" /> <title>Bootstrap 5 Alert Link</title> </head> <body> <div class="container mt-5 text-center"> <h1 class="my-4">Bootstrap 5 Alert Link</h1> <div class="alert alert-primary" role="alert">Simple primary alert with <a href="" class="alert-link" target="_blank" target="_blank">an link</a>. Click to see the result. </div> <div class="alert alert-secondary" role="alert">Simple secondary alert with <a href="" class="alert-link" target="_blank">an link</a>. Click to see the result. </div> <div class="alert alert-success" role="alert">Simple success alert with <a href="" class="alert-link" target="_blank">an link</a>. Click to see the result. </div> <div class="alert alert-danger" role="alert">Simple danger alert with <a href="" class="alert-link" target="_blank"> an link </a>. Click to see the result. </div> <div class="alert alert-warning" role="alert">Simple warning alert with <a href="" class="alert-link" target="_blank">an link</a>.Click to see the result. </div> <div class="alert alert-info" role="alert">Simple info alert with <a href="" class="alert-link" target="_blank">an link</a>. Click to see the result. </div> <div class="alert alert-light" role="alert">Simple light alert with <a href="" class="alert-link" target="_blank">an link</a>.Click to see the result. </div> <div class="alert alert-dark" role="alert">Simple dark alert with <a href="" class="alert-link" target="_blank">an link</a>. Click to see the result. </div> </div> <!--/container--> <!-- Bootstrap Bundle with Popper --> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script> </body> </html>
Output :
Running