Professional Documents
Culture Documents
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<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"></scrip
t>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
<body>
TABLE
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<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"></scrip
t>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Basic Table</h2>
<p>The .table class adds basic styling (light padding and horizontal dividers) to a
table:</p>
<table class="table">
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jay-Arr</td>
<td>Buhain</td>
<td>jbuhain@example.com</td>
</tr>
<tr>
<td>Juan</td>
<td>Dela Cruz</td>
<td>jdelacruz@example.com</td>
</tr>
<tr>
<td>Amarah</td>
<td>Mateo</td>
<td>amateo@example.com</td>
</tr>
</tbody>
</table>
<h2>Striped Rows</h2>
<p>The .table-striped class adds zebra-stripes to a table:</p>
<table class="table table-striped">
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jay-Arr</td>
<td>Buhain</td>
<td>jbuhain@example.com</td>
</tr>
<tr>
<td>Juan</td>
<td>Dela Cruz</td>
<td>jdelacruz@example.com</td>
</tr>
<tr>
<td>Amarah</td>
<td>Mateo</td>
<td>amateo@example.com</td>
</tr>
</tbody>
</table>
<h2>Bordered Table</h2>
<p>The .table-bordered class adds borders on all sides of the table and the
cells:</p>
<table class="table table-bordered">
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jay-Arr</td>
<td>Buhain</td>
<td>jbuhain@example.com</td>
</tr>
<tr>
<td>Juan</td>
<td>Dela Cruz</td>
<td>jdelacruz@example.com</td>
</tr>
<tr>
<td>Amarah</td>
<td>Mateo</td>
<td>amateo@example.com</td>
</tr>
</tbody>
</table>
<h2>Hover Rows</h2>
<p>The .table-hover class enables a hover state (grey background on mouse over) on
table rows:</p>
<table class="table table-hover">
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jay-Arr</td>
<td>Buhain</td>
<td>jbuhain@example.com</td>
</tr>
<tr>
<td>Juan</td>
<td>Dela Cruz</td>
<td>jdelacruz@example.com</td>
</tr>
<tr>
<td>Amarah</td>
<td>Mateo</td>
<td>amateo@example.com</td>
</tr>
</tbody>
</table>
<h2>Black/Dark Table</h2>
<p>The .table-dark class adds a black background to the table:</p>
<table class="table table-dark">
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jay-Arr</td>
<td>Buhain</td>
<td>jbuhain@example.com</td>
</tr>
<tr>
<td>Juan</td>
<td>Dela Cruz</td>
<td>jdelacruz@example.com</td>
</tr>
<tr>
<td>Amarah</td>
<td>Mateo</td>
<td>amateo@example.com</td>
</tr>
</tbody>
</table>
<h2>Borderless Table</h2>
<p>The .table-borderless class removes borders from the table:</p>
<table class="table table-borderless">
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jay-Arr</td>
<td>Buhain</td>
<td>jbuhain@example.com</td>
</tr>
<tr>
<td>Juan</td>
<td>Dela Cruz</td>
<td>jdelacruz@example.com</td>
</tr>
<tr>
<td>Amarah</td>
<td>Mateo</td>
<td>amateo@example.com</td>
</tr>
</tbody>
</table>
<h2>Contextual Classes</h2>
<p>Contextual classes can be used to color the table, table rows or table cells.
The classes that can be used are: .table-primary, .table-success, .table-info, .table-
warning, .table-danger, .table-active, .table-secondary, .table-light and .table-
dark:</p>
<table class="table">
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>Default</td>
<td>Juan Dela Cruz</td>
<td>juan@example.com</td>
</tr>
<tr class="table-primary">
<td>Primary</td>
<td>Juan Dela Cruz</td>
<td>juan@example.com</td>
</tr>
<tr class="table-success">
<td>Success</td>
<td>Juan Dela Cruz</td>
<td>juan@example.com</td>
</tr>
<tr class="table-danger">
<td>Danger</td>
<td>Juan Dela Cruz</td>
<td>juan@example.com</td>
</tr>
<tr class="table-info">
<td>Info</td>
<td>Juan Dela Cruz</td>
<td>juan@example.com</td>
</tr>
<tr class="table-warning">
<td>Warning</td>
<td>Juan Dela Cruz</td>
<td>juan@example.com</td>
</tr>
<tr class="table-active">
<td>Active</td>
<td>Juan Dela Cruz</td>
<td>juan@example.com</td>
</tr>
<tr class="table-secondary">
<td>Secondary</td>
<td>Juan Dela Cruz</td>
<td>juan@example.com</td>
</tr>
<tr class="table-light">
<td>Light</td>
<td>Juan Dela Cruz</td>
<td>juan@example.com</td>
</tr>
<tr class="table-dark text-dark">
<td>Dark</td>
<td>Juan Dela Cruz</td>
<td>juan@example.com</td>
</tr>
</tbody>
</table>
<h2>Small Table</h2>
<p>The .table-sm class makes the table smaller by cutting cell padding in half:</p>
<table class="table table-bordered table-sm">
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jay-Arr</td>
<td>Buhain</td>
<td>jbuhain@example.com</td>
</tr>
<tr>
<td>Juan</td>
<td>Dela Cruz</td>
<td>jdelacruz@example.com</td>
</tr>
<tr>
<td>Amarah</td>
<td>Mateo</td>
<td>amateo@example.com</td>
</tr>
</tbody>
</table>
<h2>Responsive Table</h2>
<p>The .table-responsive class adds a scrollbar to the table when needed:</p>
<div class="table-responsive">
<table class="table table-bordered">
<thead>
<tr>
<th>#</th>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
<th>City</th>
<th>Country</th>
<th>Sex</th>
<th>Example</th>
<th>Example</th>
<th>Example</th>
<th>Example</th>
<th>Example</th>
<th>Example</th>
<th>Example</th>
<th>Example</th>
<th>Example</th>
<th>Example</th>
<th>Example</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Juan</td>
<td>Dela Cruz</td>
<td>20</td>
<td>Cavite</td>
<td>Philippines</td>
<td>Male</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
BUTTON
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<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"></scrip
t>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Button Styles</h2>
<button type="button" class="btn">Basic</button>
<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-info">Info</button>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-dark">Dark</button>
<button type="button" class="btn btn-light">Light</button>
<button type="button" class="btn btn-link">Link</button>
<h2>Button Outline</h2>
<button type="button" class="btn btn-outline-primary">Primary</button>
<button type="button" class="btn btn-outline-secondary">Secondary</button>
<button type="button" class="btn btn-outline-success">Success</button>
<button type="button" class="btn btn-outline-info">Info</button>
<button type="button" class="btn btn-outline-warning">Warning</button>
<button type="button" class="btn btn-outline-danger">Danger</button>
<button type="button" class="btn btn-outline-dark">Dark</button>
<button type="button" class="btn btn-outline-light text-dark">Light</button>
<h2>Button Sizes</h2>
<button type="button" class="btn btn-primary btn-lg">Large</button>
<button type="button" class="btn btn-primary">Default</button>
<button type="button" class="btn btn-primary btn-sm">Small</button>
<h2>Active/Disabled Buttons</h2>
<button type="button" class="btn btn-primary active">Active Primary</button>
<button type="button" class="btn btn-primary" disabled>Disabled Primary</button>
<a href="#" class="btn btn-primary disabled">Disabled Link</a>
<h2>Spinner Buttons</h2>
<button class="btn btn-primary">
<span class="spinner-border spinner-border-sm"></span>
</button>
BADGES
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<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"></scrip
t>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Heading with Badge</h2>
<h1>Example heading <span class="badge badge-secondary">Badge</span></h1>
<h2>Example heading <span class="badge badge-secondary">Badge</span></h2>
<h3>Example heading <span class="badge badge-secondary">Badge</span></h3>
<h4>Example heading <span class="badge badge-secondary">Badge</span></h4>
<h5>Example heading <span class="badge badge-secondary">Badge</span></h5>
<h6>Example heading <span class="badge badge-secondary">Badge</span></h6>
<h2>Contextual Badge</h2>
<span class="badge badge-primary">Primary</span>
<span class="badge badge-secondary">Secondary</span>
<span class="badge badge-success">Success</span>
<span class="badge badge-danger">Danger</span>
<span class="badge badge-warning">Warning</span>
<span class="badge badge-info">Info</span>
<span class="badge badge-light">Light</span>
<span class="badge badge-dark">Dark</span>
<h2>Pill Badge</h2>
<span class="badge badge-pill badge-primary">Primary</span>
<span class="badge badge-pill badge-secondary">Secondary</span>
<span class="badge badge-pill badge-success">Success</span>
<span class="badge badge-pill badge-danger">Danger</span>
<span class="badge badge-pill badge-warning">Warning</span>
<span class="badge badge-pill badge-info">Info</span>
<span class="badge badge-pill badge-light">Light</span>
<span class="badge badge-pill badge-dark">Dark</span>