ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 4 Basic Card
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, shrink-to-fit=no" /> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" /> <title>Bootstrap Simple Card</title> </head> <body> <div class="container text-center mt-4"> <h1 class="text-center">Bootstrap Card</h1> <p class="text-center">Bootstrap card is a rectangular box that has by default padding and it is of two types namely horizontal as well as vertical card.</p> <div class="row"> <div class="col-sm-4 offset-sm-4"> <div class="card"> <div class="card-header">Web Development</div> <div class="card-body"> <p class="card-text">There are various languages used during web development.</p> </div> <div class="card-footer"> <a href="#" class="card-link">Learn Web Development</a> <a href="#" class="card-link">Learn Graphics Design</a> </div> </div> </div> <!--/column--> </div> </div> <!--/container--> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> </body> </html>
Output :
Running