Syntax error Show content with Bootstrap

Show content with Bootstrap



To show content with Bootstrap, use the .show class in Bootstrap. You can try to run the following code to make content visible

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <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>
   </head>
   <body>
      <div class = "row" style = "padding: 91px 100px 19px 50px;">
         <div class = "show" style = "left-margin:10px; width:300px; background-color:#ccc;">
            Content is visible.
         </div>
         <div class = "hidden" style = "width:200px; background-color:#ccc;">
            Content is hidden.
         </div>
      </div>
   </body>
</html>
Updated on: 2020-06-12T14:57:56+05:30

214 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements