Get links in alerts with Bootstrap

BootstrapWeb DevelopmentCSS Framework

Use the .alert-link utility class to get matching colored links within any alert.

You can try to run the following code to get links in alerts with Bootstrap. Let us set it for success and info −


Live Demo

<!DOCTYPE html>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
      <div class = "alert alert-success">
         <a href = "#" class = "alert-link">Success! Well done its submitted.</a>
      <div class = "alert alert-info">
         <a href = "#" class = "alert-link">Information!</a>
Published on 21-Jun-2018 07:13:12