BOOTSTRAB (14 To 21)
BOOTSTRAB (14 To 21)
BOOTSTRAB (14 To 21)
PRACTICAL NO: 14
Aim: Create responsive web page of education website using bootstrap breadcrumb,
pagination, labels/badge, Jumbotron/page header, thumbnail components.
INPUT:
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<h1> Breadcrumb</h1>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
</ol>
</nav>
<br><br>
AYD/C0/2022-23/SEM-3 1
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
<h2>Pagination - Active State</h2>
<p>Add class .active to let the user know which page he/she is on:</p>
<ul class="pagination">
</ul>
<br><br>
<h2>Badges</h2>
</button>
Inbox
99+
</span>
</button>
Profile
<span class="position-absolute top-0 start-100 translate-middle p-2 bg-danger border border-light rounded-
circle">
AYD/C0/2022-23/SEM-3 2
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
<span class="visually-hidden">New alerts</span>
</span>
</button>
</div>
<br><br><br><br>
<div class="container">
<div class="jumbotron">
<h4>RATHOD HETAL</h4>
<h1>Bootstrap Jumbotron</h1>
<p>Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects
on the web.</p>
</div>
</div>
</body>
</html>
OUTPUT:
AYD/C0/2022-23/SEM-3 3
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
PRACTICAL NO: 15
Aim: Following tasks to be performed using bootstrap progress bars component.
INPUT:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="progress">
style="width:70%">
RATHOD HETAL
</div></div></div>
AYD/C0/2022-23/SEM-3 4
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
<div class="container">
<div class="progress">
style="width:80%">
80%
</div> </div></div>
<div class="container">
<div class="progress">
valuemax="100" style="width:50%">
</div> </div>
<div class="progress">
valuemax="100" style="width:60%">
</div></div>
<div class="progress">
valuemax="100" style="width:70%">
</div>
</div>
<div class="progress">
AYD/C0/2022-23/SEM-3 5
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-
valuemax="100" style="width:80%">
</div>
</div>
</div>
<div class="container">
<div class="progress">
</div></div></div>
<div class="container">
<div class="progress">
aria-valuemax="100" style="width:80%">
80%
</div></div>
<H2>RATHOD HETAL</H2>
</div>
</body>
</html>
OUTPUT:
AYD/C0/2022-23/SEM-3 6
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
AYD/C0/2022-23/SEM-3 7
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
PRACTICAL NO: 16
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></s
cript>
</head>
<body>
<div class="container">
AYD/C0/2022-23/SEM-3 8
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
<div class="media">
<div class="media-left">
</div>
<div class="media-body">
<br>
<div class="media">
<div class="media-left">
</div>
<div class="media-body">
</h4>
<br>
<div class="media">
<div class="media-left">
</div>
<div class="media-body">
AYD/C0/2022-23/SEM-3 9
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
</div>
</div>
</div>
<div class="media">
<div class="media-left">
</div>
<div class="media-body">
</div>
</div>
</div>
</div>
<div class="media">
<div class="media-left">
</div>
<div class="media-body">
AYD/C0/2022-23/SEM-3 10
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
</div>
</div>
</div>
</div>
</body>
</html>
OUTPUT:
AYD/C0/2022-23/SEM-3 11
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
PRACTICAL NO: 17
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="panel-group">
</div>
AYD/C0/2022-23/SEM-3 12
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
</div>
<div class="container">
<ul class="list-group">
</ul>
</div>
<div class="container">
<h2>Alerts</h2>
</div>
</div>
<div class="container">
<h2>Alerts</h2>
<p>The a element with class="close" and data-dismiss="alert" is used to close the alert
box.</p>
<p>The alert-dismissible class adds some extra padding to the close button.</p>
AYD/C0/2022-23/SEM-3 13
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
</body>
</html>
OUTPUT:
AYD/C0/2022-23/SEM-3 14
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
PRACTICAL NO: 18
Aim: Design a smooth page transition between homepage, about and contact us page using
bootstrap transition plugin.
INPUT:
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<style>
body {
position: relative;
</style>
</head>
AYD/C0/2022-23/SEM-3 15
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
<body data-spy="scroll" data-target=".navbar" data-offset="50">
<div class="container-fluid">
<div class="navbar-header">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div>
class="caret"></span></a>
<ul class="dropdown-menu">
</ul>
AYD/C0/2022-23/SEM-3 16
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
</li>
</ul>
</div>
</div>
</div>
</nav>
<h1>Home Page</h1>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this
section and look at the
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this
section and look at the
</div>
<h1>About Us</h1>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this
section and look at the
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this
section and look at the
</div>
AYD/C0/2022-23/SEM-3 17
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
<h1>Contact Us</h1>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this
section and look at the
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this
section and look at the
</div>
<h1>Careers</h1>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this
section and look at the
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this
section and look at the
</div>
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this
section and look at the
<p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this
section and look at the
AYD/C0/2022-23/SEM-3 18
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
</div>
</body>
</html>
OUTPUT:
AYD/C0/2022-23/SEM-3 19
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
PRACTICAL NO: 19
Aim: Design a webpage with different modal dialog for “Save record
confirmation”,“Delete record confirmation” using model dialog plugin of bootstrap.
INPUT:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
"width=device-width, initial-scale=1,shrink-to-fit=no">
"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
crossorigin="anonymous">
<script src=
"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.slim.min.js"
crossorigin="anonymous">
</script>
<script src=
"https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
crossorigin="anonymous">
</script>
<script src=
"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
crossorigin="anonymous">
AYD/C0/2022-23/SEM-3 20
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
</script>
<style>
body{
margin-left:10px;
margin-right:10px;
</style>
</head>
<body>
<H2>HETAL RATHOD</H2>
aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-content">
<div class="modal-header">
data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span></button></div>
AYD/C0/2022-23/SEM-3 21
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
<div class="modal-footer">
</div></div></div></div>
</body>
</html>
OUTPUT:
AYD/C0/2022-23/SEM-3 22
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
PRACTICAL NO: 20
Aim: Design news story page to demonstrate usage of Scrollspy for multiple section,
Tooltip for different photos, Collapsible and popover plugins of bootstrap.
INPUT:
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<style>
body {
position: relative;
ul.nav-pills {
top: 20px;
position: fixed;
div.col-sm-9 div {
height: 250px;
font-size: 28px;
AYD/C0/2022-23/SEM-3 23
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
#section1 {color: #fff; background-color: #1E88E5;}
margin-left: 150px;
</style>
</head>
<li class="dropdown">
<ul class="dropdown-menu">
AYD/C0/2022-23/SEM-3 24
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
<div class="col-sm-9"><div id="section1"> <h1>Section 1</h1>
<p>Try to scroll this section and look at the navigation list while scrolling!</p><h2>HETAL
RATHOD </h2> </div>
<p>Try to scroll this section and look at the navigation list while scrolling!</p> </div>
<p>Try to scroll this section and look at the navigation list while scrolling!</p> </div>
<p>Try to scroll this section and look at the navigation list while scrolling!</p></div>
<p>Try to scroll this section and look at the navigation list while scrolling!</p><h2>HETAL
RATHOD </h2></div>
</div> </div></div>
</body>
</html>
OUTPUT:
AYD/C0/2022-23/SEM-3 25
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
PRACTICAL NO: 21
Aim: Design animated photo gallery page using Carousel bootstrap plugin with
minimum seven photos.
INPUT:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<ol class="carousel-indicators">
AYD/C0/2022-23/SEM-3 26
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
<li data-target="#myCarousel" data-slide-to="2"></li></ol>
<div class="carousel-inner">
<div class="carousel-caption">
<h3>Chess</h3>
<p>Chess</p></div></div>
<div class="item">
<div class="carousel-caption">
<h3>Badminton</h3>
<p>Badminton</p></div></div>
<div class="item">
<div class="carousel-caption">
<h3>Table Tennis</h3>
<span class="sr-only">Next</span></a>
AYD/C0/2022-23/SEM-3 27
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
</div></div>
</body>
</html>
OUTPUT:
AYD/C0/2022-23/SEM-3 28
Subject Code: 4330705 Subject: Responsive Web Page Design
Enrolment No: 226010307102 Name: RATHOD HETAL Date: - - -
AYD/C0/2022-23/SEM-3 29