Professional Documents
Culture Documents
11/27/2020 1
Source: W3Schools and Robert W. Sebesta, “Programming the World Wide Web”, Fourth Edition, Pearson, 2014
Bootstrap is the most popular HTML, CSS,
and JavaScript framework for developing
responsive, mobile-first web sites
11/27/2020 2
What is Bootstrap?
Bootstrap is a free front-end framework for faster
and easier web development
11/27/2020 3
What is Responsive Web Design?
11/27/2020 4
Bootstrap History
11/27/2020 5
Why Use Bootstrap?
Easy to use: Anybody with just basic knowledge of
HTML and CSS can start using Bootstrap
You can:
Download Bootstrap from getbootstrap.com
Include Bootstrap from a CDN (Content Delivery
Network)
11/27/2020 7
Bootstrap CDN
11/27/2020 8
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet"href="https://maxcdn.bootstrapcdn.com/boot
strap/3.3.7/css/bootstrap.min.css">
11/27/2020 9
Create First Web Page With Bootstrap
11/27/2020 10
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
</html>
11/27/2020 11
2. Bootstrap 3 is mobile-first
11/27/2020 12
The width=device-width part sets the width of
the page to follow the screen-width of the device
(which will vary depending on the device)
11/27/2020 13
3. Containers
11/27/2020 14
The .container class provides a responsive fixed
width container
11/27/2020 15
Bootstrap Grid System
Bootstrap's grid system allows up to 12 columns
across the page
11/27/2020 16
11/27/2020 17
The Bootstrap grid system has four classes:
xs (for phones)
sm (for tablets)
md (for desktops)
lg (for larger desktops)
11/27/2020 18
Basic Structure of a Bootstrap Grid
<div class="row">
<div class="col-*-*"></div>
</div>
<div class="row">
<div class="col-*-*"></div>
<div class="col-*-*"></div>
<div class="col-*-*"></div>
</div>
<div class="row">
...
</div>
11/27/2020 19
11/27/2020 20
The following example shows how to get a three
equal-width columns starting at tablets and
scaling to large desktops
REFER P3.HTML
11/27/2020 21
The following example will result in a 25%/75%
split on small (and medium and large) devices
11/27/2020 22
The following example will result in a 25%/75%
split on small devices and a 50%/50% split on
medium (and large) devices
REFER P6.HTML
11/27/2020 23
The following example will result in a 25%/75%
split on small devices, a 50%/50% split on
medium devices, and a 33%/66% split on large
devices:
REFER P7.HTML
11/27/2020 24
The following example shows how to get two
columns starting at tablets and scaling to large
desktops, with another two columns (equal widths)
within the larger column (at mobile phones, these
columns and their nested columns will stack):
REFER P8.HTML
11/27/2020 25
Bootstrap Text/Typography
11/27/2020 26
Bootstrap vs. Browser Defaults
we will look at some HTML elements that will be styled a little
bit differently by Bootstrap than browser defaults
<h1> to <h6>
<small>
<mark> - to highlight text
<abbr> - Use abbreviations
<blockquote> - The blockquote element is used to present
content from another source
To show the quote on the right, use the .blockquote-reverse
class
Refer P9.HTML
11/27/2020 27
<dl> - Description list
Refer P10.HTML
11/27/2020 28
Contextual Colors and Backgrounds
Bootstrap also has some contextual classes that can be
used to provide "meaning through colors".
Refer P11.HTML
11/27/2020 29
Bootstrap Tables
Refer P12.HTML
11/27/2020 30
The .table-striped class adds zebra-stripes to a table
REFER P12.HTML
REFER P12.HTML
REFER P12.HTML
11/27/2020 31
The .table-condensed class makes a table more
compact by cutting cell padding in half
REFER P12.HTML
REFER P12.HTML
11/27/2020 32
11/27/2020 33
The .table-responsive class creates a responsive
table
REFER P13.HTML
11/27/2020 34
Bootstrap Images
11/27/2020 35
The .img-circle class shapes the image to a circle
11/27/2020 36
Images come in all sizes… So do screens….
11/27/2020 37
You can also use Bootstrap's grid system in
conjunction with the .thumbnail class to create
an image gallery
REFER P14.HTML
11/27/2020 38
Bootstrap Jumbotron and Page Header
A jumbotron indicates a big box for calling extra attention
to some special content or information.
11/27/2020 39
Place the jumbotron inside the <div
class="container"> if you want the jumbotron to
NOT extend to the edge of the screen
REFER P15.HTML
11/27/2020 40
Place the jumbotron outside the <div
class="container"> if you want the jumbotron to
extend to the screen edges
REFER P16.HTML
11/27/2020 41
Creating a Page Header
A page header is like a section divider
REFER P17.HTML
11/27/2020 42
Bootstrap Wells
REFER P18.HTML
11/27/2020 43
Well Size
Small
Normal
Large
REFER P19.HTML
11/27/2020 44
Bootstrap Alerts
Bootstrap provides an easy way to create
predefined alert messages
REFER P20.HTML
11/27/2020 45
11/27/2020 46
Add the alert-link class to any links inside the
alert box to create "matching colored links“
REFER P20.HTML
11/27/2020 47
<div class="alert alert-success alert-dismissable">
<a href="#" class="close" data-dismiss="alert" aria-
label="close">×</a>
<strong>Success!</strong> Indicates a successful or positive
action.
</div>
11/27/2020 48
Bootstrap Buttons
11/27/2020 49
<button type="button" class="btn">Basic</button>
<button type="button" class="btn btn-default">Default</button>
<button type="button" class="btn btn-primary">Primary</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-link">Link</button>
REFER P21.HTML
11/27/2020 50
The button classes can be used on an <a>,
<button>, or <input> element
REFER P21.HTML
11/27/2020 51
Button Sizes
11/27/2020 52
<button type="button" class="btn btn-primary btn-lg">Large</button>
<button type="button" class="btn btn-primary btn-md">Medium</button>
<button type="button" class="btn btn-primary btn-sm">Small</button>
<button type="button" class="btn btn-primary btn-xs">XSmall</button>
Refer P21.HTML
11/27/2020 53
Block Level Buttons
A block level button spans the entire width of the
parent element
Refer P22.HTML
11/27/2020 54
Active/Disabled Buttons
11/27/2020 55
<button type="button" class="btn btn-primary active">Active Primary
</button>
<button type="button" class="btn btn-primary disabled">Disabled
Primary </button>
Refer P22.HTML
11/27/2020 56
Bootstrap Badges and Labels
Badges are numerical indicators of how many items
are associated with a link
Refer P23.HTML
11/27/2020 58
Badges can also be used inside other elements,
such as buttons
Refer P23.HTML
11/27/2020 59
Labels
Use the .label class, followed by one of the six contextual
classes .label-default, .label-primary, .label-success, .label-info,
.label-warning or .label-danger, within a <span> element to
create a label
REFER P24.HTML
REFER P24.HTML
11/27/2020 60
Bootstrap Progress Bars
11/27/2020 61
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="70“ aria-
valuemin="0" aria-valuemax="100" style="width:70%">
<span class="sr-only">70% Complete</span>
</div>
</div>
REFER P25.HTML
Remove the .sr-only class from the progress bar to show a visible
percentage
REFER P25.HTML
11/27/2020 62
Contextual classes are used to provide "meaning
through colors".
.progress-bar-success
.progress-bar-info
.progress-bar-warning
.progress-bar-danger
REFER P26.HTML
11/27/2020 63
Progress bars can also be striped
REFER P26.HTML
REFER P26.HTML
11/27/2020 64
Progress bars can also be stacked
REFER P26.HTML
11/27/2020 65
Bootstrap Pagination
Basic Pagination - If you have a web site with lots of pages, you
may wish to add some sort of pagination to each page
REFER P27.HTML
Add class .active to let the user know which page he/she is on
REFER P27.HTML
11/27/2020 66
A disabled link cannot be clicked
<ul class="pagination">
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li class="disabled"><a href="#">4</a></li>
<li><a href="#">5</a></li>
</ul>
11/27/2020 67
Pagination blocks can also be sized to a larger
size or a smaller size
11/27/2020 68
<ul class="pagination pagination-lg">
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
</ul>
11/27/2020 69
Bootstrap Pager
Pager is also a form of pagination
<ul class="pager">
<li><a href="#">Previous</a></li>
<li><a href="#">Next</a></li>
</ul> REFER P28.HTML
11/27/2020 70
Use the .previous and .next classes to align each
button to the sides of the page
<ul class="pager">
<li class="previous"><a href="#">Previous</a></li>
<li class="next"><a href="#">Next</a></li>
</ul>
REFER P28.HTML
11/27/2020 71
Bootstrap List Groups
The most basic list group is an unordered list with list
items
<ul class="list-group">
<li class="list-group-item">First item</li>
<li class="list-group-item">Second item</li>
<li class="list-group-item">Third item</li>
</ul> REFER P29.HTML
11/27/2020 72
List Group With Badges
To create a badge, create a <span> element with class
.badge inside the list item
<ul class="list-group">
<li class="list-group-item"> New <span class="badge"> 12
</span></li>
<li class="list-group-item"> Deleted <span class="badge"> 5
</span></li>
<li class="list-group-item"> Warnings <span class="badge"> 3
</span></li>
</ul>
REFER P29.HTML
11/27/2020 73
The items in a list group can also be hyperlinks
<div class="list-group">
<a href="#" class="list-group-item">First item</a>
<a href="#" class="list-group-item">Second item</a>
<a href="#" class="list-group-item">Third item</a>
</div>
REFER P29.HTML
11/27/2020 74
Use the .active class to highlight the current item
<div class="list-group">
<a href="#" class="list-group-item active">First item</a>
<a href="#" class="list-group-item">Second item</a>
<a href="#" class="list-group-item">Third item</a>
</div>
REFER P29.HTML
<div class="list-group">
<a href="#" class="list-group-item disabled">First item</a>
<a href="#" class="list-group-item">Second item</a>
<a href="#" class="list-group-item">Third item</a>
</div>
REFER P29.HTML
11/27/2020 75
Contextual classes can be used to color list items
<ul class="list-group">
<li class="list-group-item list-group-item-success">First item</li>
<li class="list-group-item list-group-item-info">Second item</li>
<li class="list-group-item list-group-item-warning">Third item</li>
<li class="list-group-item list-group-item-danger">Fourth item</li>
</ul>
REFER P29.HTML
11/27/2020 76
Custom Content
You can add nearly any HTML inside a list group
item
REFER P29.HTML
11/27/2020 77
Panels, dropdowns, collapse…
Self Study …
11/27/2020 78
Tabs
Tabs are created with <ul class="nav nav-tabs">
11/27/2020 79
Tabs With Dropdown Menu
Tabs can also hold dropdown menus - The following example
adds a dropdown menu to Menu 1
11/27/2020 80
Pills
Pills are created with <ul class="nav nav-pills">
11/27/2020 82
Pills With Dropdown Menu
Pills can also hold dropdown menus - The following example
adds a dropdown menu to "Menu 1“
11/27/2020 83
Centered Tabs and Pills
To center/justify the tabs and pills, use the .nav-justified class
Note that on screens that are smaller than 768px, the list
items are stacked (content will remain centered)
11/27/2020 84
<!-- Centered Pills -->
<ul class="nav nav-pills nav-justified">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Menu 1</a></li>
<li><a href="#">Menu 2</a></li>
<li><a href="#">Menu 3</a></li>
</ul>
Refer P32.HTML
11/27/2020 85
Bootstrap Navigation Bar
A navigation bar is a navigation header that is placed
at the top of the page
11/27/2020 86
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">WebSiteName</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Page 1</a></li>
<li><a href="#">Page 2</a></li>
<li><a href="#">Page 3</a></li>
</ul>
</div>
</nav>
Refer P33.HTML
11/27/2020 87
Inverted Navigation Bar
Just change the .navbar-default class into
.navbar-inverse
Refer P33.HTML
11/27/2020 88
Navigation Bar With Dropdown
11/27/2020 89
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">WebSiteName</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Page 1
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Page 1-1</a></li>
<li><a href="#">Page 1-2</a></li>
<li><a href="#">Page 1-3</a></li>
</ul>
</li>
<li><a href="#">Page 2</a></li>
<li><a href="#">Page 3</a></li>
</ul> Refer P33.HTML
</div>
</nav>
11/27/2020 90
Right-Aligned Navigation Bar
The .navbar-right class is used to right-align
navigation bar buttons
11/27/2020 91
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">WebSiteName</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Page 1</a></li>
<li><a href="#">Page 2</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign
Up </a></li>
<li><a href="#"><span class="glyphicon glyphicon-log-
in"></span> Login</a></li>
</ul>
</div>
</nav> Refer P33.HTML
11/27/2020 92
Navbar Buttons
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">WebSiteName</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
<button class="btn btn-danger navbar-btn">Button</button>
</div>
</nav>
11/27/2020 93
Navbar Forms
To add form elements inside the navbar, add the
.navbar-form class to a form element and add an
input(s)
11/27/2020 94
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">WebSiteName</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Page 1</a></li>
<li><a href="#">Page 2</a></li>
</ul>
<form class="navbar-form navbar-left">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</div>
</nav> Refer P34.HTML
11/27/2020 95
<form class="navbar-form navbar-left">
<div class="input-group">
<input type="text" class=“form-control“
placeholder="Search">
<div class="input-group-btn">
<button class="btn btn-default" type="submit">
<i class="glyphicon glyphicon-search"></i>
</button>
</div>
</div>
</form>
Refer P35.HTML
11/27/2020 96
Fixed Navigation Bar
The navigation bar can also be fixed at the top or at
the bottom of the page
11/27/2020 97
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">WebSiteName</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Page 1</a></li>
<li><a href="#">Page 2</a></li>
<li><a href="#">Page 3</a></li>
</ul>
</div>
</nav>
Refer P36.HTML
11/27/2020 98
The .navbar-fixed-bottom class makes the navigation bar
stay at the bottom
11/27/2020 99
Bootstrap Forms
Form controls automatically receive some global
styling with Bootstrap
11/27/2020 100
Bootstrap Form Layouts
Bootstrap provides three types of form layouts:
11/27/2020 101
Bootstrap Vertical Form (default)
The following example creates a vertical form with two input
fields, one checkbox, and a submit button
<form>
<div class="form-group">
<label for="email">Email address:</label>
<input type="email" class="form-control" id="email">
</div>
<div class="form-group">
<label for="pwd">Password:</label>
<input type="password" class="form-control" id="pwd"> Refer P38.HTML
</div>
<div class="checkbox">
<label><input type="checkbox"> Remember me</label>
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
11/27/2020 102
Bootstrap Inline Form
In an inline form, all of the elements are inline, left-aligned,
and the labels are alongside.
Refer P38.HTML
11/27/2020 104
Bootstrap Horizontal Form
A horizontal form means that the labels are aligned next to the
input field (horizontal) on large and medium screens
11/27/2020 105
Tip: Use Bootstrap's predefined grid classes to
align labels and groups of form controls in a
horizontal layout.
Refer P39.HTML
11/27/2020 106
Bootstrap Form Inputs
Bootstrap supports the following form controls:
input
textarea
checkbox
radio
select
11/27/2020 107
The following example contains two input elements; one
of type text and one of type password
<div class="form-group">
<label for="usr">Name:</label>
<input type="text" class="form-control" id="usr">
</div>
<div class="form-group">
<label for="pwd">Password:</label>
<input type="password" class="form-control" id="pwd">
</div>
11/27/2020 108
Bootstrap Textarea
<div class="form-group">
<label for="comment">Comment:</label>
<textarea class="form-
control" rows="5" id="comment"></textarea>
</div>
11/27/2020 109
Bootstrap Checkboxes
<div class="checkbox">
<label><input type="checkbox" value="">Option 1</label>
</div>
<div class="checkbox">
<label><input type="checkbox" value="">Option 2</label>
</div>
<div class="checkbox disabled">
<label><input type="checkbox" value="" disabled>Option
3</label>
</div>
11/27/2020 110
Use the .checkbox-inline class if you want the
checkboxes to appear on the same line
<label class="checkbox-inline">
<input type="checkbox" value="">Option 1</label>
<label class="checkbox-inline">
<input type="checkbox" value="">Option 2</label>
<label class="checkbox-inline">
<input type="checkbox" value="">Option 3</label>
11/27/2020 111
Bootstrap Radio Buttons
<div class="radio">
<label> <input type="radio" name="optradio">Option 1</label>
</div>
<div class="radio">
<label><input type="radio" name="optradio">Option 2</label>
</div>
<div class="radio disabled">
<label><input type="radio" name="optradio" disabled>Option
3</label>
</div>
11/27/2020 112
Use the .radio-inline class if you want the radio buttons
to appear on the same line
<label class="radio-inline">
<input type="radio" name="optradio">Option 1</label>
<label class="radio-inline">
<input type="radio" name="optradio">Option 2</label>
<label class="radio-inline">
<input type="radio" name="optradio">Option 3</label>
11/27/2020 113
Bootstrap Select List
<div class="form-group">
<label for="sel1">Select list:</label>
<select class="form-control" id="sel1">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
</div>
11/27/2020 114
Multiple select…
<select multiple class="form-control" id="sel2">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
11/27/2020 115
Bootstrap Input Sizing
11/27/2020 116
<form>
<div class="form-group">
<label for="inputsm">Small input</label>
<input class="form-control input-sm" id="inputsm" type="text">
</div>
<div class="form-group">
<label for="inputdefault">Default input</label>
<input class="form-control" id="inputdefault" type="text">
</div>
<div class="form-group">
<label for="inputlg">Large input</label>
<input class="form-control input-lg" id="inputlg" type="text">
</div>
</form>
Refer P40.HTML
11/27/2020 117
You can quickly size labels and form controls
within a Horizontal form by adding .form-group-*
to the <div class="form-group"> element
11/27/2020 118
Column Sizing
<div class="form-group row">
<div class="col-xs-2">
<label for="ex1">col-xs-2</label>
<input class="form-control" id="ex1" type="text">
</div>
<div class="col-xs-3">
<label for="ex2">col-xs-3</label>
<input class="form-control" id="ex2" type="text">
</div>
<div class="col-xs-4">
<label for="ex3">col-xs-4</label>
<input class="form-control" id="ex3" type="text">
</div>
</div> Refer P41.HTML
11/27/2020 119
Bootstrap Media Objects
Bootstrap provides an easy way to align media objects
(like images or videos) to the left or to the right of some
content. This can be used to display blog comments,
tweets and so on
11/27/2020 120
Use a <div> element with the .media class to create a
container for media objects
11/27/2020 121
<!-- Left-aligned -->
<div class="media">
<div class="media-left">
<img src="img_avatar1.png" class="media-object" style="width:60px">
</div>
<div class="media-body">
<h4 class="media-heading">John Doe</h4>
<p>Lorem ipsum...</p>
</div>
</div>
11/27/2020 122
The media object can also be top, middle or
bottom aligned with the media-top, media-
middle or media-bottom class
Refer P43.HTML
11/27/2020 123
Nesting Media Objects
Refer P44.HTML
Refer P45.HTML
11/27/2020 124
Bootstrap Carousel Plugin
11/27/2020 125
11/27/2020 126
The .slide class adds a CSS transition and
animation effect, which makes the items slide when
showing a new item. Omit this class if you do not
want this effect
11/27/2020 127
The "Indicators" part:
11/27/2020 128
The "Wrapper for slides" part:
11/27/2020 129
The "Left and right controls" part:
Refer P46.HTML
11/27/2020 130
Add Captions to Slides
Refer P47.HTML
11/27/2020 131
Bootstrap Modal Plugin
11/27/2020 132
How To Create a Modal
The "Trigger" part:
11/27/2020 133
The "Modal" part:
11/27/2020 134
The attribute role="dialog" improves accessibility
for people using screen readers
11/27/2020 135
The "Modal content" part:
11/27/2020 136
The <button> inside the header has a data-
dismiss="modal" attribute which closes the modal if you
click on it
The .close class styles the close button, and the .modal-
title class styles the header with a proper line-height
Add the size class to the <div> element with class .modal-
dialog
11/27/2020 138
Bootstrap Tooltip Plugin
The Tooltip plugin is small pop-up box that appears when the
user moves the mouse pointer over an element
11/27/2020 139
Tooltips must be initialized with jQuery: select the
specified element and call the tooltip() method
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script>
Refer P49.HTML
11/27/2020 140
Positioning Tooltips
By default, the tooltip will appear on top of the element
Refer P49.HTML
11/27/2020 141
You can also use the data-placement attribute
with a value of "auto", which will let the browser
decide the position of the tooltip
11/27/2020 142
Bootstrap Popover Plugin
11/27/2020 143
To create a popover, add the data-toggle="popover"
attribute to an element
11/27/2020 144
Popovers must be initialized with jQuery: select the
specified element and call the popover() method
<script>
$(document).ready(function(){
$('[data-toggle="popover"]').popover();
});
</script>
Refer P50.HTML
11/27/2020 145
Positioning Popovers
11/27/2020 146
<a href="#" title="Header" data-toggle="popover" data-placement="top" data-
content="Content">Click</a>
<a href="#" title="Header" data-toggle="popover" data-placement="bottom" data-
content="Content">Click</a>
<a href="#" title="Header" data-toggle="popover" data-placement="left" data-
content="Content">Click</a>
<a href="#" title="Header" data-toggle="popover" data-placement="right" data-
content="Content">Click</a>
11/27/2020 147
Closing Popovers
By default, the popover is closed when you click on
the element again
11/27/2020 148
If you want the popover to be displayed when you
move the mouse pointer over the element, use
the data-trigger attribute with a value of "hover“
11/27/2020 149
Bootstrap Scrollspy Plugin
The Scrollspy plugin is used to automatically update
links in a navigation list based on scroll position
11/27/2020 150
Note that scrollable elements must match the ID of
the links inside the navbar's list items (<div
id="section1"> matches <a href="#section1">
Refer P51.HTML
Default is 10 pixels
11/27/2020 151
Thank You …
11/27/2020 152