SlideShare a Scribd company logo
Presented By:
Mukesh Kumar
Presented To:
Archsoft
Technology
 Introduction
 Why Bootstrap
 Getting Started Bootstrap
 Grid System of Bootstrap
 Components of Bootstrap
 Bootstrap was developed by Mark Otto and Jacob
Thornton at Twitter, and released as an open source
product in August 2011 on GitHub.
 In june 2014, no. 1 project on GitHub.
 Bootstrap is the most popular HTML, CSS, and
JavaScript framework for developing responsive,
mobile-first web sites.
 Bootstrap is completely free to download and use!
 Responsive web design is about creating web sites
which automatically adjust themselves to look good on all
devices, from small phones to large desktops.
 Bootstrap gives you the ability to easily create responsive
designs.
 Easy to use: Anybody with just basic knowledge of
HTML and CSS can start using Bootstrap
 Responsive features: Bootstrap's responsive CSS
adjusts to phones, tablets, and desktops
 Mobile-first approach: In Bootstrap 3, mobile-first
styles are part of the core framework
 Browser compatibility: Bootstrap is compatible
with all modern browsers
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href=“css/style.css” rel="stylesheet>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js">
</script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js">
</script>
</head>
<body>
<h1>Bootstrap Heading</h1>
<p>Bootstrap Paragraph</p>
</body>
</html>
 If you don't want to download and host Bootstrap
yourself, you can include it from a CDN (Content Delivery
Network).
 MaxCDN provide CDN support for Bootstrap's CSS and
JavaScript. Also include jQuery:
The Bootstrap grid system has four
classes:
xs (for phones)
sm (for tablets)
md (for desktops)
lg (for larger desktops)
 Rows must be placed within a .container (fixed-width).
 Rows must be placed within a .container-fluid (full-width).
 Use rows to create horizontal groups of columns.
 Predefined classes like .row and .col-sm-4 are available
for quickly making grid layouts.
 <div class="container">
<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>
</div>
Bootstrap PPT by Mukesh
 <div class="row">
<div class="col-md-8"> </div>
<div class="col-md-4"> </div>
</div>
 <div class="row">
<div class="col-xs-6">.col-xs-6</div>
<div class="col-xs-6">.col-xs-6</div>
</div>
Bootstrap's Default Settings
 Bootstrap's global default font-size is 14px, with a line-
height of 1.428.
 <blockquote>
 To show the quote on the right, use the .blockquote-
reverse class:
Contextual Colors and Backgrounds
 The classes for text colors are:
 .text-muted,
 .text-primary,
 .text-success,
 .text-info,
 .text-warning, and
 .text-danger:
The classes for background colors are:
 .bg-primary,
 .bg-success,
 .bg-info,
 .bg-warning, and
 .bg-danger:
 Responsive Tables
 The .table-responsive class creates a responsive table.
The table will then scroll horizontally on small devices
 <div class="table-responsive">
<table class="table">
...
</table>
</div>
Striped Rows
 The .table-striped class adds zebra-stripes to a table:
Bordered Table
 The .table-bordered class adds borders on all sides of
the table and cells:
Hover Rows
 The .table-hover class enables a hover state on table
rows:
Condensed Table
 The .table-condensed class makes a table more compact
by cutting cell padding in half:
 <!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="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
 </head>
 <body>
<div class="container">
 <h2>Bordered Table</h2>
 <p>The .table-bordered class adds borders to a table:</p>
 <table class="table table-bordered table-responsive">
 <thead>
 <tr>
 <th>Firstname</th>
 <th>Lastname</th>
 </tr>
 </thead>
 <tbody>
 <tr>
 <td>John</td>
 <td>Doe</td>
 </tr>
 <tr>
 <td>Mary</td>
 <td>Moe</td>
 </tr>
 </tbody>
 </table>
 </div>
</body>
 </html>
Contextual Classes
 Contextual classes can be used to color table rows (<tr>)
or table cells (<td>):
 Create responsive images by adding an .img-
responsive class to the <img> tag.
 The .img-rounded class adds rounded corners to an image
 The .img-circle class shapes the image to a circle
 The .img-thumbnail class shapes the image to a thumbnail.
 A jumbotron indicates a big box for calling extra attention
to some special content or information.
 A jumbotron is displayed as a grey box with rounded
corners.
 Its created with .jumbotron class.
 Header created with .page-header class.
 .jumbotron class may contain inside or outside of
container
 <div class="container">
<div class="jumbotron">
<h1>Bootstrap Tutorial</h1>
<p>Bootstrap is the most popular HTML, CSS, and JS framework
for developing responsive, mobile-first projects on the web.</p>
</div>
<p>This is some text.</p>
<p>This is another text.</p>
</div>
 The .well class adds a rounded border around an
element with a gray background color and some padding:
 <div class="well">Basic Well</div>
 <div class="well well-sm">Small Well</div>
 <div class="well well-lg">Large Well</div>
 Change the size of the well by adding the .well-sm class
for small wells or .well-lg class for large wells:
 <div class="well well-sm">Small Well</div>
 <div class="well well-lg">Large Well</div>
 <body>
<div class="container">
<h2>Well</h2>
<div class="well">Basic Well</div>
</div>
</body>
 Alerts are created with the .alert class, followed by one of
the four contextual classes
.alert-success,
.alert-info,
.alert-warning &
.alert-danger.
 To close the alert message, add class="close“ and data-
dismiss="alert“ to a link or a button element:
 <div class="alert alert-success">
<a href="#" class="close“ data-dismiss="alert“ > &times;</a>
<strong>Success!</strong>This alert box indicates a successful or
positive action.
</div>
 The .fade and .in classes adds a fading effect when
closing the alert message:
 <div class="alert alert-success fade in">
 By the <div class="alert alert-warning fade out"> we hide
those specific alerts.
Bootstrap PPT by Mukesh
 Bootstrap provides seven styles of buttons:
 .btn-default
 .btn-primary
 .btn-success
 .btn-info
 .btn-warning
 .btn-danger
 .btn-link
 <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>
 Bootstrap allows you to group a series of buttons
together (on a single line or Vertical line)
 Use the class .btn-group to create a horizontal button
group
 Use the class .btn-group-vertical to create a vertical
button group
 Use the class .btn-group-justify to create a justify button
group
 <div class="btn-group-vertical">
<button type="button" class="btn btn-primary">Apple</button>
<button type="button" class="btn btn-primary">Samsung</button>
<button type="button" class="btn btn-primary">Sony</button>
</div>
 Glyphicons can be used in text, buttons, toolbars, navigation,
forms, etc.
 Here are some examples of glyphicons:
 Envelope glyphicon:
 Print glyphicon:
 Search glyphicon:
 Download glyphicon:
 <span class="glyphicon glyphicon-name"></span>
 <body>
<div class="container">
<h2>Glyphicon Examples</h2>
<p>Search icon: <span class="glyphicon glyphicon-search"></span></p>
<p>Search icon on a styled button:
<button type="button" class="btn btn-info">
<span class="glyphicon glyphicon-search"></span> Search
</button>
</p>
</div>
</body>
 Badges are numerical indicators of how many items are
associated with a link:
 News 5
Comments 10
Updates 2
 The numbers (5, 10, and 2) are the badges.
 <a href="#">News <span class="badge">5</span></a><br>
<a href="#">Comments <span class="badge">10</span></a><br>
<a href="#">Updates <span class="badge">2</span></a>
 Badges can also be used inside buttons:
 <div class="container">
 <h2>Badges on Buttons</h2>
 <button type="button" class="btn btn-primary">Primary <span class="badge">7</span></button>
 <button type="button" class="btn btn-success">Success <span class="badge">3</span></button>
 <button type="button" class="btn btn-danger">Danger <span class="badge">5</span></button>
 </div>
 Labels are used to provide additional information about
something:
 There are six contextual classes followed by .label class.
 .label-default, .label-primary, .label-success, .label-info
.label-warning, .label-danger
 <span class="label label-default">Default Label</span>
 <span class="label label-primary">Primary Label</span>
 <span class="label label-success">Success Label</span>
 <span class="label label-info">Info Label</span>
 <span class="label label-warning">Warning Label</span>
 <span class="label label-danger">Danger Label</span>
 A progress bar can be used to show a user how far along
he/she is in a process.
 Bootstrap provides several types of progress bars.
 .progress-bar-success
 .progress-bar-info
 .progress-bar-warning
 .progress-bar-danger
<div class="progress">
<div class="progress-bar progress-bar success" role = "progressbar" aria-
valuenow="40“ aria-valuemin="0" aria-valuemax="100" style="width:40%">
40% Complete (success)
</div>
</div>
 Add class .progress-bar-striped to add stripes to the
progress bars:
 For the activation of progress bar we use .active class
 To create a basic pagination, add the .pagination class to
an <ul> element:
 <ul class="pagination">
<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>
 Active State
 Add class .active to let the user know which page he/she
is on:
 Disabled State
 Add class .disabled if a link for some reason is disabled:
 Pagination Sizing
 Add class .pagination-lg for larger blocks or .pagination-
sm for smaller blocks:
 Pager is also a form of pagination
 Pager provides previous and next buttons (links).
 To create previous/next buttons, add the .pager class to
an <ul> element:
 <ul class="pager">
<li><a href="#">Previous</a></li>
<li><a href="#">Next</a></li>
</ul>
Align Buttons
 Use the .previous and .next classes to align each button
to the sides of the page:
 A panel in bootstrap is a bordered box with some
padding around its content:
 <div class="panel panel-default">
<div class="panel-body">A Basic Panel</div>
</div>
 .panel-heading class used for panel heading.
 .panel-footer class used for panel footer.
 .panel-group class for group of panels.
<div class="panel panel-default">
<div class="panel-heading">Panel Heading</div>
<div class="panel-body">Panel Content</div>
<div class="panel-footer">Panel Footer</div>
</div>
 The .dropdown class indicates a dropdown menu.
 To open the dropdown menu, use a button or a link with a
class of .dropdown-toggle
 The .caret class creates a caret arrow icon ( ), which
indicates that the button is a dropdown.
 Add the .dropdown-menu class to a <ul> element to
actually build the dropdown menu.
 <div class="dropdown">
<button class="btn btn-primary dropdown-
toggle" type="button" data-toggle="dropdown">Dropdown Example
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">HTML</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">JavaScript</a></li>
</ul>
</div>
Dropdown Header
 The .dropdown-header class is used to add headers
inside the dropdown menu:
 <li class="dropdown-header">Dropdown header 1</li>
To add .disable class for disable any item.
 <li class="disabled"><a href="#">CSS</a></li>
 change the <div> element with class="dropdown" to
"dropup":
 <div class="dropup">
 Collapsibles are useful when you want to hide and show
large amount of content:
 It started with .collapse class.
 To control (show/hide) the collapsible content, add the
data-toggle="collapse" attribute to an <a> or a <button>
element.
 Then add the data-target="#id" attribute to connect the
button with the collapsible content (<div id="demo">).
 <div class="container">
 <button type="button" class="btn btn-info" data-toggle="collapse"
data-target="#demo">Collapsible btn</button>
 <div id="demo" class="collapse in">
 this text showing after click on btn
 </div>
 </div>
 Tabs are created with <ul class="nav nav-tabs">:
 <ul class="nav nav-tabs">
<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>
 Pills are created with <ul class="nav nav-pills">. Also
mark the current page with <li class="active">:
 <ul class="nav nav-pills">
<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>
To center/justify the tabs and pills, use the .nav-justified
class.
 A standard navigation bar is created with <nav class="navbar
navbar-default">.
 <nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">WebSiteName</a>
</div>
<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>
</div>
</nav>
Just change the .navbar-default class
into .navbar-inverse:
Right-Aligned Navigation Bar
 The .navbar-right class is used to right-align navigation
bar buttons.
 <nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">WebSiteName</a>
</div>
<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>
<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>
</div>
</nav>
 The navigation bar takes up too much space on a small
screen.
 We should hide the navigation bar; and only show it
when it is needed.
 Navigation bar is replaced by a button in the top right
corner. Only when the button is clicked, the navigation
bar will be displayed:
 Its created by .navbar-collapse with .collapse class.
 <nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">WebSiteName</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<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>
<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>
</div>
</nav>
Before Collapse:
After Collapse:
 Bootstrap provides three types of form layouts:
 Vertical form (this is default)
 Horizontal form
 Inline form
 Always use <form role="form"> (helps improve accessibility for
people using screen readers)
 Wrap labels and form controls in <div class="form-
group"> (needed for optimum spacing)
 Add class .form-control to all textual <input>, <textarea>,
and <select> elements
 Add class .form-inline to the <form> element.
 <form role="form“ class=“form-inline”>
 <form role="form">
<div class="form-group">
<label for="email">Email address:</label>
<input type="email" class="form-control" id="email">
</div>
</form>
 Input
<div class="form-group">
<label for="usr">Name:</label>
<input type="text" class="form-control" id="usr">
</div>
 Textarea
<div class="form-group“>
<textarea class="form-control" rows="5" id="comment"></textarea>
</div>
 Checkbox
<div class="checkbox">
<label><input type="checkbox" value="">Option 1</label>
</div>
 Radio
<div class="radio">
<label><input type="radio" name="optradio">Option 1</label>
</div>
 select
 <select class="form-control" id="sel1">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
 Static Control
 If you need to insert plain text next to a form label within
a horizontal form, use the .form-control-static class on a
<p> element:
 <form class="form-horizontal" role="form">
<div class="form-group">
<label class="control-label col-sm-2" for="email">Email:</label>
<div class="col-sm-10">
<p class="form-control-static">someone@example.com</p>
</div>
</div>
</form>
 VALIDATION STATES
 Bootstrap includes validation styles for error,
warning, and success messages. To use, add .has-
warning, .has-error, or .has-success to the parent
element
 ICONS
 You can add feedback icons with the .has-feedback
class and an icon
 <div class="form-group has-success has-feedback">
<label class="col-sm-2 control-label" for="inputSuccess">
Input with success and icon</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="inputSuccess">
<span class="glyphicon glyphicon-ok form-control-feedback"></span>
</div>
</div>
 Set the heights of input elements using classes like
.input-lg and .input-sm.
 Set the widths of elements using grid column classes like
.col-lg-*and .col-sm-*.
 The outermost <div>:
 Carousels require the use of an id (in this
case id="myCarousel") for carousel controls to function
properly.
 The class="carousel" specifies that this <div> contains a
carousel.
 The data-ride="carousel" attribute tells Bootstrap to begin
animating the carousel immediately when the page
loads.
<div class="container">
<br>
<div id="myCarousel" class="carousel" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
</ol>
 The "Indicators" part:
 The indicators are specified in an ordered list with
class .carousel-indicators.
 The .data-target class points to the id of the carousel.
 The .data-slide-to class specifies which slide to go to,
when clicking on the specific dot.
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
</ol>
 The "Wrapper for slides" part:
 The slides are specified in a <div> with class .carousel-inner.
 The content of each slide is defined in a <div> with class .item.
This can be text or images.
 The .active class needs to be added to one of the slides.
Otherwise, the carousel will not be visible.
 Add Captions to Slides
 Add <div class="carousel-caption"> within each <div
class="item"> to create a caption for each slide:
 <!-- Wrapper for slides -->
 <div class="carousel-inner" role="listbox">
 <div class="item active">
 <img src="img_chania.jpg" alt="Chania" width="460" height="345">
 <div class="carousel-caption">
 <h3>Chania</h3>
 <p>The atmosphere in Chania has a touch of Florence and Venice.</p>
 </div>
 </div>
 <div class="item">
 <img src="img_chania2.jpg" alt="Chania" width="460" height="345">
 <div class="carousel-caption">
 <h3>Chania</h3>
 <p>The atmosphere in Chania has a touch of Florence and Venice.</p>
 </div>
 </div>
 </div>
 The "Left and right controls" part:
 This code adds "left" and "right" buttons that allows
the user to go back and forth between the slides
manually.
 The data-slide attribute accepts the keywords
"prev“ or "next", which alters the slide position
relative to its current position.
 <!-- Left and right controls -->
 <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
 <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
 <span class="sr-only">Previous</span>
 </a>
 <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
 <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
 <span class="sr-only">Next</span>
 </a>
 <div class="container">
 <br>
 <div id="myCarousel" class="carousel slide" data-ride="carousel">
 <!-- Indicators -->
 <ol class="carousel-indicators">
 <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
 <li data-target="#myCarousel" data-slide-to="1"></li>
 </ol>
 <!-- Wrapper for slides -->
 <div class="carousel-inner" role="listbox">
 <div class="item active">
 <img src="img_chania.jpg" alt="Chania" width="460" height="345">
 <div class="carousel-caption">
 <h3>Chania</h3>
 <p>The atmosphere in Chania has a touch of Florence and Venice.</p>
 </div>
 </div>
 <div class="item">
 <img src="img_chania2.jpg" alt="Chania" width="460" height="345">
 <div class="carousel-caption">
 <h3>Chania</h3>
 <p>The atmosphere in Chania has a touch of Florence and Venice.</p>
 </div>
 </div>
 </div>
 <!-- Left and right controls -->
 <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
 <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
 <span class="sr-only">Previous</span>
 </a>
 <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
 <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
 <span class="sr-only">Next</span>
 </a>
 </div>
 </div>
Bootstrap PPT by Mukesh
 The Modal plugin is a dialog box/popup window that is
displayed on top of the current page:
 The "Trigger" part:
 To trigger the modal window, you need to use a button or a
link.
 Then include the two data-* attributes:
 data-toggle="modal" opens the modal window
 data-target="#myModal" points to the id of the modal
 <!-- Trigger the modal with a button -->
<button type="button" class="btn btn-info btn-lg" data-
toggle="modal" data-target="#myModal">Open Modal</button>
 The "Modal" part:
 The .modal class identifies the content of <div> as a modal
and brings focus to it.
 The .fade class adds a transition effect which fades the modal
in and out. Remove this class if you do not want.
 The attribute role="dialog" improves accessibility for people
using screen readers.
 The .modal-dialog class sets the proper width and margin of
the modal.
 The "Modal content" part:
 Class="modal-content" styles the modal (border, background-
color, etc.).
 The .modal-header class is used to define the style for the
header of the modal.
 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.
 The .modal-body class is used to define the style for the
body of the modal. Add any HTML markup here;
paragraphs, images, videos, etc.
 The .modal-footer class is used to define the style for the
footer of the modal. Note that this area is right aligned by
default.
 <div class="container">
 <h2>Modal Example</h2>
 <!-- Trigger the modal with a button -->
 <button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-
target="#myModal">Open Modal</button>
 <!-- Modal -->
 <div class="modal fade" id="myModal" role="dialog">
 <div class="modal-dialog">

 <!-- Modal content-->
 <div class="modal-content">
 <div class="modal-header">
 <button type="button" class="close" data-dismiss="modal">&times;</button>
 <h4 class="modal-title">Modal Header</h4>
 </div>
 <div class="modal-body">
 <p>Some text in the modal.</p>
 </div>
 <div class="modal-footer">
 <button type="button" class="btn btn-default" data-dismiss="modal"> Close </button>
 </div>
 </div>
 </div>
 </div>
 </div>
Bootstrap PPT by Mukesh
 The Tooltip plugin is small pop-up box that appears when
the user moves the mouse pointer over an element:
 To create a tooltip, add the data-toggle="tooltip" attribute
to an element.
 Use the title attribute to specify the text that should be
displayed inside the tooltip:
 Tooltips must be initialized with jQuery: select the
specified element and call the tooltip() method.
 <div class="container">
 <h3>Tooltip Example</h3>
 <p>The data-placement attribute specifies the tooltip position.</p>
 <ul class="list-inline">
 <li><a href="#" data-toggle="tooltip" data-placement="top" title="I am
Tooltip!!">Top</a></li>
 <li><a href="#" data-toggle="tooltip" data-placement="bottom" title="I am
Tooltip!!">Bottom</a></li>
 </ul>
 </div>
 <!---jQuery----->
 <script>
 $(document).ready(function(){
 $('[data-toggle="tooltip"]').tooltip();
 });
 </script>
Bootstrap PPT by Mukesh
 The Popover plugin is similar to tooltips.
 it is a pop-up box that appears when the user clicks on an
element.
 The difference is that the popover can contain much more
content.
 To create a popover, add the data-toggle="popover"
attribute to an element.
 <div class="container">
<h3>Popover Example</h3>
<a href="#" data-toggle="popover" title="Popover Header"
data-content="Some content inside the popover">Toggle popover</a>
</div>
< ---jQuery--->
 <script>
$(document).ready(function(){
$('[data-toggle="popover"]').popover();
});
 For the closing of popup by clicking outside the link.
 we use data-trigger = "focus“.
Bootstrap PPT by Mukesh
Ad

More Related Content

What's hot (20)

Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
McSoftsis
 
Bootstrap ppt
Bootstrap pptBootstrap ppt
Bootstrap ppt
Ishtdeep Hora
 
Bootstrap 5 basic
Bootstrap 5 basicBootstrap 5 basic
Bootstrap 5 basic
Jubair Ahmed Junjun
 
Bootstrap grids
Bootstrap gridsBootstrap grids
Bootstrap grids
Webtech Learning
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
Fahim Abdullah
 
Bootstrap 5 ppt
Bootstrap 5 pptBootstrap 5 ppt
Bootstrap 5 ppt
Mallikarjuna G D
 
Bootstrap
BootstrapBootstrap
Bootstrap
AvinashChunduri2
 
Jquery
JqueryJquery
Jquery
Girish Srivastava
 
An introduction to bootstrap
An introduction to bootstrapAn introduction to bootstrap
An introduction to bootstrap
Mind IT Systems
 
HTML5: features with examples
HTML5: features with examplesHTML5: features with examples
HTML5: features with examples
Alfredo Torre
 
javaScript.ppt
javaScript.pptjavaScript.ppt
javaScript.ppt
sentayehu
 
Basics of JavaScript
Basics of JavaScriptBasics of JavaScript
Basics of JavaScript
Bala Narayanan
 
jQuery for beginners
jQuery for beginnersjQuery for beginners
jQuery for beginners
Arulmurugan Rajaraman
 
Responsive web-design through bootstrap
Responsive web-design through bootstrapResponsive web-design through bootstrap
Responsive web-design through bootstrap
Zunair Sagitarioux
 
Bootstrap Web Development Framework
Bootstrap Web Development FrameworkBootstrap Web Development Framework
Bootstrap Web Development Framework
Cindy Royal
 
Html coding
Html codingHtml coding
Html coding
Briana VanBuskirk
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Amit Tyagi
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
Eliran Eliassy
 
html-css
html-csshtml-css
html-css
Dhirendra Chauhan
 
Java Script ppt
Java Script pptJava Script ppt
Java Script ppt
Priya Goyal
 

Viewers also liked (20)

Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
Ron Reiter
 
Bootstrap 3 Basic - Bangkok WordPress Meetup
Bootstrap 3 Basic - Bangkok WordPress MeetupBootstrap 3 Basic - Bangkok WordPress Meetup
Bootstrap 3 Basic - Bangkok WordPress Meetup
Woratana Perth Ngarmtrakulchol
 
Design for Developers: Introduction to Bootstrap 3
Design for Developers: Introduction to Bootstrap 3Design for Developers: Introduction to Bootstrap 3
Design for Developers: Introduction to Bootstrap 3
John Bertucci
 
Bootstrap 3 - Sleek, intuitive, and powerful mobile first front-end framework...
Bootstrap 3 - Sleek, intuitive, and powerful mobile first front-end framework...Bootstrap 3 - Sleek, intuitive, and powerful mobile first front-end framework...
Bootstrap 3 - Sleek, intuitive, and powerful mobile first front-end framework...
Cedric Spillebeen
 
Introduce Bootstrap 3 to Develop Responsive Design Application
Introduce Bootstrap 3 to Develop Responsive Design ApplicationIntroduce Bootstrap 3 to Develop Responsive Design Application
Introduce Bootstrap 3 to Develop Responsive Design Application
eXo Platform
 
The Technology Springboard: How Law Librarians Can Bootstrap Their Future
The Technology Springboard: How Law Librarians Can Bootstrap Their FutureThe Technology Springboard: How Law Librarians Can Bootstrap Their Future
The Technology Springboard: How Law Librarians Can Bootstrap Their Future
Steve Matthews
 
Internship - Bootstrap
Internship - BootstrapInternship - Bootstrap
Internship - Bootstrap
tanay29
 
Twitter Bootstrap
Twitter BootstrapTwitter Bootstrap
Twitter Bootstrap
Vinayak Kulkarni
 
Bootstrap Framework
Bootstrap Framework Bootstrap Framework
Bootstrap Framework
Yaowaluck Promdee
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
Jussi Pohjolainen
 
Introduction To Javascript
Introduction To JavascriptIntroduction To Javascript
Introduction To Javascript
Rajat Pandit
 
JavaScript and jQuery Basics
JavaScript and jQuery BasicsJavaScript and jQuery Basics
JavaScript and jQuery Basics
Kaloyan Kosev
 
So, you want to be a plugin developer?
So, you want to be a plugin developer?So, you want to be a plugin developer?
So, you want to be a plugin developer?
ylefebvre
 
jQuery
jQueryjQuery
jQuery
Jay Poojara
 
Child Theme
Child ThemeChild Theme
Child Theme
Shinichi Nishikawa
 
Refreshing Your UI with HTML5, Bootstrap and CSS3
Refreshing Your UI with HTML5, Bootstrap and CSS3Refreshing Your UI with HTML5, Bootstrap and CSS3
Refreshing Your UI with HTML5, Bootstrap and CSS3
Matt Raible
 
Wordpress Underscores & foundation5
Wordpress Underscores & foundation5Wordpress Underscores & foundation5
Wordpress Underscores & foundation5
Aum Watcharapol
 
An easy guide to Plugin Development
An easy guide to Plugin DevelopmentAn easy guide to Plugin Development
An easy guide to Plugin Development
Shinichi Nishikawa
 
jQuery Presentation
jQuery PresentationjQuery Presentation
jQuery Presentation
Rod Johnson
 
jQuery from the very beginning
jQuery from the very beginningjQuery from the very beginning
jQuery from the very beginning
Anis Ahmad
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
Ron Reiter
 
Design for Developers: Introduction to Bootstrap 3
Design for Developers: Introduction to Bootstrap 3Design for Developers: Introduction to Bootstrap 3
Design for Developers: Introduction to Bootstrap 3
John Bertucci
 
Bootstrap 3 - Sleek, intuitive, and powerful mobile first front-end framework...
Bootstrap 3 - Sleek, intuitive, and powerful mobile first front-end framework...Bootstrap 3 - Sleek, intuitive, and powerful mobile first front-end framework...
Bootstrap 3 - Sleek, intuitive, and powerful mobile first front-end framework...
Cedric Spillebeen
 
Introduce Bootstrap 3 to Develop Responsive Design Application
Introduce Bootstrap 3 to Develop Responsive Design ApplicationIntroduce Bootstrap 3 to Develop Responsive Design Application
Introduce Bootstrap 3 to Develop Responsive Design Application
eXo Platform
 
The Technology Springboard: How Law Librarians Can Bootstrap Their Future
The Technology Springboard: How Law Librarians Can Bootstrap Their FutureThe Technology Springboard: How Law Librarians Can Bootstrap Their Future
The Technology Springboard: How Law Librarians Can Bootstrap Their Future
Steve Matthews
 
Internship - Bootstrap
Internship - BootstrapInternship - Bootstrap
Internship - Bootstrap
tanay29
 
Introduction To Javascript
Introduction To JavascriptIntroduction To Javascript
Introduction To Javascript
Rajat Pandit
 
JavaScript and jQuery Basics
JavaScript and jQuery BasicsJavaScript and jQuery Basics
JavaScript and jQuery Basics
Kaloyan Kosev
 
So, you want to be a plugin developer?
So, you want to be a plugin developer?So, you want to be a plugin developer?
So, you want to be a plugin developer?
ylefebvre
 
Refreshing Your UI with HTML5, Bootstrap and CSS3
Refreshing Your UI with HTML5, Bootstrap and CSS3Refreshing Your UI with HTML5, Bootstrap and CSS3
Refreshing Your UI with HTML5, Bootstrap and CSS3
Matt Raible
 
Wordpress Underscores & foundation5
Wordpress Underscores & foundation5Wordpress Underscores & foundation5
Wordpress Underscores & foundation5
Aum Watcharapol
 
An easy guide to Plugin Development
An easy guide to Plugin DevelopmentAn easy guide to Plugin Development
An easy guide to Plugin Development
Shinichi Nishikawa
 
jQuery Presentation
jQuery PresentationjQuery Presentation
jQuery Presentation
Rod Johnson
 
jQuery from the very beginning
jQuery from the very beginningjQuery from the very beginning
jQuery from the very beginning
Anis Ahmad
 
Ad

Similar to Bootstrap PPT by Mukesh (20)

Pemrograman Web 4 - Bootstrap 3
Pemrograman Web 4 - Bootstrap 3Pemrograman Web 4 - Bootstrap 3
Pemrograman Web 4 - Bootstrap 3
Nur Fadli Utomo
 
Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3
Wahyu Putra
 
Twitter bootstrap training_session_ppt
Twitter bootstrap training_session_pptTwitter bootstrap training_session_ppt
Twitter bootstrap training_session_ppt
Radheshyam Kori
 
The Ultimate Guide to Bootstrap for Beginners.pdf
The Ultimate Guide to Bootstrap for Beginners.pdfThe Ultimate Guide to Bootstrap for Beginners.pdf
The Ultimate Guide to Bootstrap for Beginners.pdf
webcooks Digital Academy
 
ViA Bootstrap 4
ViA Bootstrap 4ViA Bootstrap 4
ViA Bootstrap 4
imdurgesh
 
Bootstrap cheat-sheet-websitesetup.org
Bootstrap cheat-sheet-websitesetup.org Bootstrap cheat-sheet-websitesetup.org
Bootstrap cheat-sheet-websitesetup.org
Ali Bakhtiari
 
Bootstrap day1
Bootstrap day1Bootstrap day1
Bootstrap day1
Rafi Haidari
 
Bootstrap
Bootstrap Bootstrap
Bootstrap
PumoTechnovation
 
Bootstrap - Basics
Bootstrap - BasicsBootstrap - Basics
Bootstrap - Basics
FirosK2
 
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
Roni Banerjee
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
Collaboration Technologies
 
Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
William Myers
 
Bootstrap
BootstrapBootstrap
Bootstrap
Sarvesh Kushwaha
 
bootstrap.pptx
bootstrap.pptxbootstrap.pptx
bootstrap.pptx
Libin51
 
Bootstrap 3 Cheat Sheet PDF Reference
Bootstrap 3 Cheat Sheet PDF ReferenceBootstrap 3 Cheat Sheet PDF Reference
Bootstrap 3 Cheat Sheet PDF Reference
Bootstrap Creative
 
Stop reinventing the wheel: Build Responsive Websites Using Bootstrap
Stop reinventing the wheel: Build Responsive Websites Using BootstrapStop reinventing the wheel: Build Responsive Websites Using Bootstrap
Stop reinventing the wheel: Build Responsive Websites Using Bootstrap
freshlybakedpixels
 
Bootstrap with liferay
Bootstrap with liferayBootstrap with liferay
Bootstrap with liferay
Sendhil Kumar Kannan
 
HTML & CSS #10 : Bootstrap
HTML & CSS #10 : BootstrapHTML & CSS #10 : Bootstrap
HTML & CSS #10 : Bootstrap
Jean Michel
 
Boot strap
Boot strapBoot strap
Boot strap
Wahidullah Habib
 
Twitter bootstrap
Twitter bootstrapTwitter bootstrap
Twitter bootstrap
dennisdc
 
Pemrograman Web 4 - Bootstrap 3
Pemrograman Web 4 - Bootstrap 3Pemrograman Web 4 - Bootstrap 3
Pemrograman Web 4 - Bootstrap 3
Nur Fadli Utomo
 
Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3
Wahyu Putra
 
Twitter bootstrap training_session_ppt
Twitter bootstrap training_session_pptTwitter bootstrap training_session_ppt
Twitter bootstrap training_session_ppt
Radheshyam Kori
 
The Ultimate Guide to Bootstrap for Beginners.pdf
The Ultimate Guide to Bootstrap for Beginners.pdfThe Ultimate Guide to Bootstrap for Beginners.pdf
The Ultimate Guide to Bootstrap for Beginners.pdf
webcooks Digital Academy
 
ViA Bootstrap 4
ViA Bootstrap 4ViA Bootstrap 4
ViA Bootstrap 4
imdurgesh
 
Bootstrap cheat-sheet-websitesetup.org
Bootstrap cheat-sheet-websitesetup.org Bootstrap cheat-sheet-websitesetup.org
Bootstrap cheat-sheet-websitesetup.org
Ali Bakhtiari
 
Bootstrap - Basics
Bootstrap - BasicsBootstrap - Basics
Bootstrap - Basics
FirosK2
 
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
Roni Banerjee
 
bootstrap.pptx
bootstrap.pptxbootstrap.pptx
bootstrap.pptx
Libin51
 
Bootstrap 3 Cheat Sheet PDF Reference
Bootstrap 3 Cheat Sheet PDF ReferenceBootstrap 3 Cheat Sheet PDF Reference
Bootstrap 3 Cheat Sheet PDF Reference
Bootstrap Creative
 
Stop reinventing the wheel: Build Responsive Websites Using Bootstrap
Stop reinventing the wheel: Build Responsive Websites Using BootstrapStop reinventing the wheel: Build Responsive Websites Using Bootstrap
Stop reinventing the wheel: Build Responsive Websites Using Bootstrap
freshlybakedpixels
 
HTML & CSS #10 : Bootstrap
HTML & CSS #10 : BootstrapHTML & CSS #10 : Bootstrap
HTML & CSS #10 : Bootstrap
Jean Michel
 
Twitter bootstrap
Twitter bootstrapTwitter bootstrap
Twitter bootstrap
dennisdc
 
Ad

More from Mukesh Kumar (6)

Institute Mangement System PPT By Mukesh
Institute Mangement System PPT By MukeshInstitute Mangement System PPT By Mukesh
Institute Mangement System PPT By Mukesh
Mukesh Kumar
 
E-ball PPT BY Mukesh
E-ball PPT BY MukeshE-ball PPT BY Mukesh
E-ball PPT BY Mukesh
Mukesh Kumar
 
Mail server PPT By Mukesh
Mail server PPT By MukeshMail server PPT By Mukesh
Mail server PPT By Mukesh
Mukesh Kumar
 
Courier Management System By Mukesh
Courier Management System By MukeshCourier Management System By Mukesh
Courier Management System By Mukesh
Mukesh Kumar
 
HTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by MukeshHTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by Mukesh
Mukesh Kumar
 
Cascading Style Sheets By Mukesh
Cascading Style Sheets By MukeshCascading Style Sheets By Mukesh
Cascading Style Sheets By Mukesh
Mukesh Kumar
 
Institute Mangement System PPT By Mukesh
Institute Mangement System PPT By MukeshInstitute Mangement System PPT By Mukesh
Institute Mangement System PPT By Mukesh
Mukesh Kumar
 
E-ball PPT BY Mukesh
E-ball PPT BY MukeshE-ball PPT BY Mukesh
E-ball PPT BY Mukesh
Mukesh Kumar
 
Mail server PPT By Mukesh
Mail server PPT By MukeshMail server PPT By Mukesh
Mail server PPT By Mukesh
Mukesh Kumar
 
Courier Management System By Mukesh
Courier Management System By MukeshCourier Management System By Mukesh
Courier Management System By Mukesh
Mukesh Kumar
 
HTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by MukeshHTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by Mukesh
Mukesh Kumar
 
Cascading Style Sheets By Mukesh
Cascading Style Sheets By MukeshCascading Style Sheets By Mukesh
Cascading Style Sheets By Mukesh
Mukesh Kumar
 

Recently uploaded (20)

Best Fashion Designing Colleges in Delhi
Best Fashion Designing Colleges in DelhiBest Fashion Designing Colleges in Delhi
Best Fashion Designing Colleges in Delhi
top10privatecolleges
 
CHAPTER 7 - Foreign Direct Investment.pptx
CHAPTER 7 - Foreign Direct Investment.pptxCHAPTER 7 - Foreign Direct Investment.pptx
CHAPTER 7 - Foreign Direct Investment.pptx
72200337
 
Pixida, Simplifying Success in Germany, the USA, Brazil, China and Portugal
Pixida, Simplifying Success in Germany, the USA, Brazil, China and PortugalPixida, Simplifying Success in Germany, the USA, Brazil, China and Portugal
Pixida, Simplifying Success in Germany, the USA, Brazil, China and Portugal
TechMeetups
 
SHIPPING CONTAINdccdcdERS BC (2).pdf.pptx
SHIPPING CONTAINdccdcdERS BC (2).pdf.pptxSHIPPING CONTAINdccdcdERS BC (2).pdf.pptx
SHIPPING CONTAINdccdcdERS BC (2).pdf.pptx
ArshjotSingh30
 
Traditional Medicine aDRTYSRTYSRTnd HIV.ppt
Traditional Medicine aDRTYSRTYSRTnd HIV.pptTraditional Medicine aDRTYSRTYSRTnd HIV.ppt
Traditional Medicine aDRTYSRTYSRTnd HIV.ppt
XolaniRadebe7
 
What's the Volume Quiz Presentation in Green Grey Purple Simple Lined Style (...
What's the Volume Quiz Presentation in Green Grey Purple Simple Lined Style (...What's the Volume Quiz Presentation in Green Grey Purple Simple Lined Style (...
What's the Volume Quiz Presentation in Green Grey Purple Simple Lined Style (...
shenleighmaemolina
 
Huckel_Molecular orbital _Theory_8_Slides.pptx
Huckel_Molecular orbital _Theory_8_Slides.pptxHuckel_Molecular orbital _Theory_8_Slides.pptx
Huckel_Molecular orbital _Theory_8_Slides.pptx
study2022bsc
 
Placement cell of college - why choose me
Placement cell of college - why choose mePlacement cell of college - why choose me
Placement cell of college - why choose me
mmanvi024
 
NATIONALISM IN EUROPE class 10 best ppt.pdf
NATIONALISM IN EUROPE class 10 best ppt.pdfNATIONALISM IN EUROPE class 10 best ppt.pdf
NATIONALISM IN EUROPE class 10 best ppt.pdf
leenamakkar79
 
remakingyourselfpresentation-250430095415-6476ade1.pptx
remakingyourselfpresentation-250430095415-6476ade1.pptxremakingyourselfpresentation-250430095415-6476ade1.pptx
remakingyourselfpresentation-250430095415-6476ade1.pptx
lakhmanpindariya9176
 
HCollege ppt guidance and counselin.pptx
HCollege ppt guidance and counselin.pptxHCollege ppt guidance and counselin.pptx
HCollege ppt guidance and counselin.pptx
liajohn0808
 
Stakeholders Management GT 11052021.cleaned.pptx
Stakeholders Management GT 11052021.cleaned.pptxStakeholders Management GT 11052021.cleaned.pptx
Stakeholders Management GT 11052021.cleaned.pptx
SaranshJeena
 
UPSC+BAProgramme Syllabus for students who want to pursue UPSC coaching from ...
UPSC+BAProgramme Syllabus for students who want to pursue UPSC coaching from ...UPSC+BAProgramme Syllabus for students who want to pursue UPSC coaching from ...
UPSC+BAProgramme Syllabus for students who want to pursue UPSC coaching from ...
Tushar kumar
 
English For Carrier, It enhance your Communication Skills
English For Carrier, It enhance your Communication SkillsEnglish For Carrier, It enhance your Communication Skills
English For Carrier, It enhance your Communication Skills
ankitbeherabiru
 
For ssrvm school Admission Campaign.pptx
For ssrvm school Admission Campaign.pptxFor ssrvm school Admission Campaign.pptx
For ssrvm school Admission Campaign.pptx
ArunTYltp
 
Lecture 4.pptx which is need for microeconomic
Lecture 4.pptx which is need for microeconomicLecture 4.pptx which is need for microeconomic
Lecture 4.pptx which is need for microeconomic
mdrakibhasan1427
 
SAFETY BRIEFING.........................
SAFETY BRIEFING.........................SAFETY BRIEFING.........................
SAFETY BRIEFING.........................
BalaChandran458212
 
Software Development Business Plan1.pptx
Software Development Business Plan1.pptxSoftware Development Business Plan1.pptx
Software Development Business Plan1.pptx
vkprintingsolution
 
GENERAL INFORMATION for the most beautiful
GENERAL INFORMATION for the most beautifulGENERAL INFORMATION for the most beautiful
GENERAL INFORMATION for the most beautiful
12213013
 
sorcesofdrugs-160228074 56 4246643544 (3).ppt
sorcesofdrugs-160228074 56 4246643544 (3).pptsorcesofdrugs-160228074 56 4246643544 (3).ppt
sorcesofdrugs-160228074 56 4246643544 (3).ppt
IndalSatnami
 
Best Fashion Designing Colleges in Delhi
Best Fashion Designing Colleges in DelhiBest Fashion Designing Colleges in Delhi
Best Fashion Designing Colleges in Delhi
top10privatecolleges
 
CHAPTER 7 - Foreign Direct Investment.pptx
CHAPTER 7 - Foreign Direct Investment.pptxCHAPTER 7 - Foreign Direct Investment.pptx
CHAPTER 7 - Foreign Direct Investment.pptx
72200337
 
Pixida, Simplifying Success in Germany, the USA, Brazil, China and Portugal
Pixida, Simplifying Success in Germany, the USA, Brazil, China and PortugalPixida, Simplifying Success in Germany, the USA, Brazil, China and Portugal
Pixida, Simplifying Success in Germany, the USA, Brazil, China and Portugal
TechMeetups
 
SHIPPING CONTAINdccdcdERS BC (2).pdf.pptx
SHIPPING CONTAINdccdcdERS BC (2).pdf.pptxSHIPPING CONTAINdccdcdERS BC (2).pdf.pptx
SHIPPING CONTAINdccdcdERS BC (2).pdf.pptx
ArshjotSingh30
 
Traditional Medicine aDRTYSRTYSRTnd HIV.ppt
Traditional Medicine aDRTYSRTYSRTnd HIV.pptTraditional Medicine aDRTYSRTYSRTnd HIV.ppt
Traditional Medicine aDRTYSRTYSRTnd HIV.ppt
XolaniRadebe7
 
What's the Volume Quiz Presentation in Green Grey Purple Simple Lined Style (...
What's the Volume Quiz Presentation in Green Grey Purple Simple Lined Style (...What's the Volume Quiz Presentation in Green Grey Purple Simple Lined Style (...
What's the Volume Quiz Presentation in Green Grey Purple Simple Lined Style (...
shenleighmaemolina
 
Huckel_Molecular orbital _Theory_8_Slides.pptx
Huckel_Molecular orbital _Theory_8_Slides.pptxHuckel_Molecular orbital _Theory_8_Slides.pptx
Huckel_Molecular orbital _Theory_8_Slides.pptx
study2022bsc
 
Placement cell of college - why choose me
Placement cell of college - why choose mePlacement cell of college - why choose me
Placement cell of college - why choose me
mmanvi024
 
NATIONALISM IN EUROPE class 10 best ppt.pdf
NATIONALISM IN EUROPE class 10 best ppt.pdfNATIONALISM IN EUROPE class 10 best ppt.pdf
NATIONALISM IN EUROPE class 10 best ppt.pdf
leenamakkar79
 
remakingyourselfpresentation-250430095415-6476ade1.pptx
remakingyourselfpresentation-250430095415-6476ade1.pptxremakingyourselfpresentation-250430095415-6476ade1.pptx
remakingyourselfpresentation-250430095415-6476ade1.pptx
lakhmanpindariya9176
 
HCollege ppt guidance and counselin.pptx
HCollege ppt guidance and counselin.pptxHCollege ppt guidance and counselin.pptx
HCollege ppt guidance and counselin.pptx
liajohn0808
 
Stakeholders Management GT 11052021.cleaned.pptx
Stakeholders Management GT 11052021.cleaned.pptxStakeholders Management GT 11052021.cleaned.pptx
Stakeholders Management GT 11052021.cleaned.pptx
SaranshJeena
 
UPSC+BAProgramme Syllabus for students who want to pursue UPSC coaching from ...
UPSC+BAProgramme Syllabus for students who want to pursue UPSC coaching from ...UPSC+BAProgramme Syllabus for students who want to pursue UPSC coaching from ...
UPSC+BAProgramme Syllabus for students who want to pursue UPSC coaching from ...
Tushar kumar
 
English For Carrier, It enhance your Communication Skills
English For Carrier, It enhance your Communication SkillsEnglish For Carrier, It enhance your Communication Skills
English For Carrier, It enhance your Communication Skills
ankitbeherabiru
 
For ssrvm school Admission Campaign.pptx
For ssrvm school Admission Campaign.pptxFor ssrvm school Admission Campaign.pptx
For ssrvm school Admission Campaign.pptx
ArunTYltp
 
Lecture 4.pptx which is need for microeconomic
Lecture 4.pptx which is need for microeconomicLecture 4.pptx which is need for microeconomic
Lecture 4.pptx which is need for microeconomic
mdrakibhasan1427
 
SAFETY BRIEFING.........................
SAFETY BRIEFING.........................SAFETY BRIEFING.........................
SAFETY BRIEFING.........................
BalaChandran458212
 
Software Development Business Plan1.pptx
Software Development Business Plan1.pptxSoftware Development Business Plan1.pptx
Software Development Business Plan1.pptx
vkprintingsolution
 
GENERAL INFORMATION for the most beautiful
GENERAL INFORMATION for the most beautifulGENERAL INFORMATION for the most beautiful
GENERAL INFORMATION for the most beautiful
12213013
 
sorcesofdrugs-160228074 56 4246643544 (3).ppt
sorcesofdrugs-160228074 56 4246643544 (3).pptsorcesofdrugs-160228074 56 4246643544 (3).ppt
sorcesofdrugs-160228074 56 4246643544 (3).ppt
IndalSatnami
 

Bootstrap PPT by Mukesh

  • 1. Presented By: Mukesh Kumar Presented To: Archsoft Technology
  • 2.  Introduction  Why Bootstrap  Getting Started Bootstrap  Grid System of Bootstrap  Components of Bootstrap
  • 3.  Bootstrap was developed by Mark Otto and Jacob Thornton at Twitter, and released as an open source product in August 2011 on GitHub.  In june 2014, no. 1 project on GitHub.  Bootstrap is the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first web sites.  Bootstrap is completely free to download and use!
  • 4.  Responsive web design is about creating web sites which automatically adjust themselves to look good on all devices, from small phones to large desktops.  Bootstrap gives you the ability to easily create responsive designs.
  • 5.  Easy to use: Anybody with just basic knowledge of HTML and CSS can start using Bootstrap  Responsive features: Bootstrap's responsive CSS adjusts to phones, tablets, and desktops  Mobile-first approach: In Bootstrap 3, mobile-first styles are part of the core framework  Browser compatibility: Bootstrap is compatible with all modern browsers
  • 6. <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href=“css/style.css” rel="stylesheet> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"> </script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"> </script> </head> <body> <h1>Bootstrap Heading</h1> <p>Bootstrap Paragraph</p> </body> </html>
  • 7.  If you don't want to download and host Bootstrap yourself, you can include it from a CDN (Content Delivery Network).  MaxCDN provide CDN support for Bootstrap's CSS and JavaScript. Also include jQuery:
  • 8. The Bootstrap grid system has four classes: xs (for phones) sm (for tablets) md (for desktops) lg (for larger desktops)
  • 9.  Rows must be placed within a .container (fixed-width).  Rows must be placed within a .container-fluid (full-width).  Use rows to create horizontal groups of columns.  Predefined classes like .row and .col-sm-4 are available for quickly making grid layouts.
  • 10.  <div class="container"> <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> </div>
  • 12.  <div class="row"> <div class="col-md-8"> </div> <div class="col-md-4"> </div> </div>  <div class="row"> <div class="col-xs-6">.col-xs-6</div> <div class="col-xs-6">.col-xs-6</div> </div>
  • 13. Bootstrap's Default Settings  Bootstrap's global default font-size is 14px, with a line- height of 1.428.  <blockquote>  To show the quote on the right, use the .blockquote- reverse class:
  • 14. Contextual Colors and Backgrounds  The classes for text colors are:  .text-muted,  .text-primary,  .text-success,  .text-info,  .text-warning, and  .text-danger:
  • 15. The classes for background colors are:  .bg-primary,  .bg-success,  .bg-info,  .bg-warning, and  .bg-danger:
  • 16.  Responsive Tables  The .table-responsive class creates a responsive table. The table will then scroll horizontally on small devices  <div class="table-responsive"> <table class="table"> ... </table> </div>
  • 17. Striped Rows  The .table-striped class adds zebra-stripes to a table:
  • 18. Bordered Table  The .table-bordered class adds borders on all sides of the table and cells:
  • 19. Hover Rows  The .table-hover class enables a hover state on table rows:
  • 20. Condensed Table  The .table-condensed class makes a table more compact by cutting cell padding in half:
  • 21.  <!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="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>  </head>  <body> <div class="container">  <h2>Bordered Table</h2>  <p>The .table-bordered class adds borders to a table:</p>  <table class="table table-bordered table-responsive">  <thead>  <tr>  <th>Firstname</th>  <th>Lastname</th>  </tr>  </thead>  <tbody>  <tr>  <td>John</td>  <td>Doe</td>  </tr>  <tr>  <td>Mary</td>  <td>Moe</td>  </tr>  </tbody>  </table>  </div> </body>  </html>
  • 22. Contextual Classes  Contextual classes can be used to color table rows (<tr>) or table cells (<td>):
  • 23.  Create responsive images by adding an .img- responsive class to the <img> tag.  The .img-rounded class adds rounded corners to an image  The .img-circle class shapes the image to a circle  The .img-thumbnail class shapes the image to a thumbnail.
  • 24.  A jumbotron indicates a big box for calling extra attention to some special content or information.  A jumbotron is displayed as a grey box with rounded corners.  Its created with .jumbotron class.  Header created with .page-header class.  .jumbotron class may contain inside or outside of container
  • 25.  <div class="container"> <div class="jumbotron"> <h1>Bootstrap Tutorial</h1> <p>Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web.</p> </div> <p>This is some text.</p> <p>This is another text.</p> </div>
  • 26.  The .well class adds a rounded border around an element with a gray background color and some padding:  <div class="well">Basic Well</div>  <div class="well well-sm">Small Well</div>  <div class="well well-lg">Large Well</div>
  • 27.  Change the size of the well by adding the .well-sm class for small wells or .well-lg class for large wells:  <div class="well well-sm">Small Well</div>  <div class="well well-lg">Large Well</div>
  • 28.  <body> <div class="container"> <h2>Well</h2> <div class="well">Basic Well</div> </div> </body>
  • 29.  Alerts are created with the .alert class, followed by one of the four contextual classes .alert-success, .alert-info, .alert-warning & .alert-danger.  To close the alert message, add class="close“ and data- dismiss="alert“ to a link or a button element:  <div class="alert alert-success"> <a href="#" class="close“ data-dismiss="alert“ > &times;</a> <strong>Success!</strong>This alert box indicates a successful or positive action. </div>
  • 30.  The .fade and .in classes adds a fading effect when closing the alert message:  <div class="alert alert-success fade in">  By the <div class="alert alert-warning fade out"> we hide those specific alerts.
  • 32.  Bootstrap provides seven styles of buttons:  .btn-default  .btn-primary  .btn-success  .btn-info  .btn-warning  .btn-danger  .btn-link
  • 33.  <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>
  • 34.  Bootstrap allows you to group a series of buttons together (on a single line or Vertical line)  Use the class .btn-group to create a horizontal button group  Use the class .btn-group-vertical to create a vertical button group  Use the class .btn-group-justify to create a justify button group
  • 35.  <div class="btn-group-vertical"> <button type="button" class="btn btn-primary">Apple</button> <button type="button" class="btn btn-primary">Samsung</button> <button type="button" class="btn btn-primary">Sony</button> </div>
  • 36.  Glyphicons can be used in text, buttons, toolbars, navigation, forms, etc.  Here are some examples of glyphicons:  Envelope glyphicon:  Print glyphicon:  Search glyphicon:  Download glyphicon:  <span class="glyphicon glyphicon-name"></span>
  • 37.  <body> <div class="container"> <h2>Glyphicon Examples</h2> <p>Search icon: <span class="glyphicon glyphicon-search"></span></p> <p>Search icon on a styled button: <button type="button" class="btn btn-info"> <span class="glyphicon glyphicon-search"></span> Search </button> </p> </div> </body>
  • 38.  Badges are numerical indicators of how many items are associated with a link:  News 5 Comments 10 Updates 2  The numbers (5, 10, and 2) are the badges.  <a href="#">News <span class="badge">5</span></a><br> <a href="#">Comments <span class="badge">10</span></a><br> <a href="#">Updates <span class="badge">2</span></a>
  • 39.  Badges can also be used inside buttons:  <div class="container">  <h2>Badges on Buttons</h2>  <button type="button" class="btn btn-primary">Primary <span class="badge">7</span></button>  <button type="button" class="btn btn-success">Success <span class="badge">3</span></button>  <button type="button" class="btn btn-danger">Danger <span class="badge">5</span></button>  </div>
  • 40.  Labels are used to provide additional information about something:  There are six contextual classes followed by .label class.  .label-default, .label-primary, .label-success, .label-info .label-warning, .label-danger
  • 41.  <span class="label label-default">Default Label</span>  <span class="label label-primary">Primary Label</span>  <span class="label label-success">Success Label</span>  <span class="label label-info">Info Label</span>  <span class="label label-warning">Warning Label</span>  <span class="label label-danger">Danger Label</span>
  • 42.  A progress bar can be used to show a user how far along he/she is in a process.  Bootstrap provides several types of progress bars.  .progress-bar-success  .progress-bar-info  .progress-bar-warning  .progress-bar-danger <div class="progress"> <div class="progress-bar progress-bar success" role = "progressbar" aria- valuenow="40“ aria-valuemin="0" aria-valuemax="100" style="width:40%"> 40% Complete (success) </div> </div>
  • 43.  Add class .progress-bar-striped to add stripes to the progress bars:  For the activation of progress bar we use .active class
  • 44.  To create a basic pagination, add the .pagination class to an <ul> element:  <ul class="pagination"> <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>
  • 45.  Active State  Add class .active to let the user know which page he/she is on:  Disabled State  Add class .disabled if a link for some reason is disabled:
  • 46.  Pagination Sizing  Add class .pagination-lg for larger blocks or .pagination- sm for smaller blocks:
  • 47.  Pager is also a form of pagination  Pager provides previous and next buttons (links).  To create previous/next buttons, add the .pager class to an <ul> element:  <ul class="pager"> <li><a href="#">Previous</a></li> <li><a href="#">Next</a></li> </ul>
  • 48. Align Buttons  Use the .previous and .next classes to align each button to the sides of the page:
  • 49.  A panel in bootstrap is a bordered box with some padding around its content:  <div class="panel panel-default"> <div class="panel-body">A Basic Panel</div> </div>
  • 50.  .panel-heading class used for panel heading.  .panel-footer class used for panel footer.  .panel-group class for group of panels. <div class="panel panel-default"> <div class="panel-heading">Panel Heading</div> <div class="panel-body">Panel Content</div> <div class="panel-footer">Panel Footer</div> </div>
  • 51.  The .dropdown class indicates a dropdown menu.  To open the dropdown menu, use a button or a link with a class of .dropdown-toggle  The .caret class creates a caret arrow icon ( ), which indicates that the button is a dropdown.  Add the .dropdown-menu class to a <ul> element to actually build the dropdown menu.
  • 52.  <div class="dropdown"> <button class="btn btn-primary dropdown- toggle" type="button" data-toggle="dropdown">Dropdown Example <span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">HTML</a></li> <li><a href="#">CSS</a></li> <li><a href="#">JavaScript</a></li> </ul> </div>
  • 53. Dropdown Header  The .dropdown-header class is used to add headers inside the dropdown menu:  <li class="dropdown-header">Dropdown header 1</li>
  • 54. To add .disable class for disable any item.  <li class="disabled"><a href="#">CSS</a></li>
  • 55.  change the <div> element with class="dropdown" to "dropup":  <div class="dropup">
  • 56.  Collapsibles are useful when you want to hide and show large amount of content:  It started with .collapse class.  To control (show/hide) the collapsible content, add the data-toggle="collapse" attribute to an <a> or a <button> element.  Then add the data-target="#id" attribute to connect the button with the collapsible content (<div id="demo">).
  • 57.  <div class="container">  <button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo">Collapsible btn</button>  <div id="demo" class="collapse in">  this text showing after click on btn  </div>  </div>
  • 58.  Tabs are created with <ul class="nav nav-tabs">:  <ul class="nav nav-tabs"> <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>
  • 59.  Pills are created with <ul class="nav nav-pills">. Also mark the current page with <li class="active">:  <ul class="nav nav-pills"> <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>
  • 60. To center/justify the tabs and pills, use the .nav-justified class.
  • 61.  A standard navigation bar is created with <nav class="navbar navbar-default">.  <nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="#">WebSiteName</a> </div> <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> </div> </nav>
  • 62. Just change the .navbar-default class into .navbar-inverse:
  • 63. Right-Aligned Navigation Bar  The .navbar-right class is used to right-align navigation bar buttons.
  • 64.  <nav class="navbar navbar-inverse"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="#">WebSiteName</a> </div> <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> <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> </div> </nav>
  • 65.  The navigation bar takes up too much space on a small screen.  We should hide the navigation bar; and only show it when it is needed.  Navigation bar is replaced by a button in the top right corner. Only when the button is clicked, the navigation bar will be displayed:  Its created by .navbar-collapse with .collapse class.
  • 66.  <nav class="navbar navbar-inverse"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data- target="#myNavbar"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">WebSiteName</a> </div> <div class="collapse navbar-collapse" id="myNavbar"> <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> <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> </div> </nav>
  • 68.  Bootstrap provides three types of form layouts:  Vertical form (this is default)  Horizontal form  Inline form  Always use <form role="form"> (helps improve accessibility for people using screen readers)  Wrap labels and form controls in <div class="form- group"> (needed for optimum spacing)
  • 69.  Add class .form-control to all textual <input>, <textarea>, and <select> elements  Add class .form-inline to the <form> element.  <form role="form“ class=“form-inline”>
  • 70.  <form role="form"> <div class="form-group"> <label for="email">Email address:</label> <input type="email" class="form-control" id="email"> </div> </form>
  • 71.  Input <div class="form-group"> <label for="usr">Name:</label> <input type="text" class="form-control" id="usr"> </div>  Textarea <div class="form-group“> <textarea class="form-control" rows="5" id="comment"></textarea> </div>
  • 72.  Checkbox <div class="checkbox"> <label><input type="checkbox" value="">Option 1</label> </div>  Radio <div class="radio"> <label><input type="radio" name="optradio">Option 1</label> </div>
  • 73.  select  <select class="form-control" id="sel1"> <option>1</option> <option>2</option> <option>3</option> <option>4</option> </select>
  • 74.  Static Control  If you need to insert plain text next to a form label within a horizontal form, use the .form-control-static class on a <p> element:
  • 75.  <form class="form-horizontal" role="form"> <div class="form-group"> <label class="control-label col-sm-2" for="email">Email:</label> <div class="col-sm-10"> <p class="form-control-static">[email protected]</p> </div> </div> </form>
  • 76.  VALIDATION STATES  Bootstrap includes validation styles for error, warning, and success messages. To use, add .has- warning, .has-error, or .has-success to the parent element  ICONS  You can add feedback icons with the .has-feedback class and an icon
  • 77.  <div class="form-group has-success has-feedback"> <label class="col-sm-2 control-label" for="inputSuccess"> Input with success and icon</label> <div class="col-sm-10"> <input type="text" class="form-control" id="inputSuccess"> <span class="glyphicon glyphicon-ok form-control-feedback"></span> </div> </div>
  • 78.  Set the heights of input elements using classes like .input-lg and .input-sm.  Set the widths of elements using grid column classes like .col-lg-*and .col-sm-*.
  • 79.  The outermost <div>:  Carousels require the use of an id (in this case id="myCarousel") for carousel controls to function properly.  The class="carousel" specifies that this <div> contains a carousel.  The data-ride="carousel" attribute tells Bootstrap to begin animating the carousel immediately when the page loads.
  • 80. <div class="container"> <br> <div id="myCarousel" class="carousel" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#myCarousel" data-slide-to="0" class="active"></li> <li data-target="#myCarousel" data-slide-to="1"></li> </ol>
  • 81.  The "Indicators" part:  The indicators are specified in an ordered list with class .carousel-indicators.  The .data-target class points to the id of the carousel.  The .data-slide-to class specifies which slide to go to, when clicking on the specific dot.
  • 82. <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#myCarousel" data-slide-to="0" class="active"></li> <li data-target="#myCarousel" data-slide-to="1"></li> </ol>
  • 83.  The "Wrapper for slides" part:  The slides are specified in a <div> with class .carousel-inner.  The content of each slide is defined in a <div> with class .item. This can be text or images.  The .active class needs to be added to one of the slides. Otherwise, the carousel will not be visible.  Add Captions to Slides  Add <div class="carousel-caption"> within each <div class="item"> to create a caption for each slide:
  • 84.  <!-- Wrapper for slides -->  <div class="carousel-inner" role="listbox">  <div class="item active">  <img src="img_chania.jpg" alt="Chania" width="460" height="345">  <div class="carousel-caption">  <h3>Chania</h3>  <p>The atmosphere in Chania has a touch of Florence and Venice.</p>  </div>  </div>  <div class="item">  <img src="img_chania2.jpg" alt="Chania" width="460" height="345">  <div class="carousel-caption">  <h3>Chania</h3>  <p>The atmosphere in Chania has a touch of Florence and Venice.</p>  </div>  </div>  </div>
  • 85.  The "Left and right controls" part:  This code adds "left" and "right" buttons that allows the user to go back and forth between the slides manually.  The data-slide attribute accepts the keywords "prev“ or "next", which alters the slide position relative to its current position.
  • 86.  <!-- Left and right controls -->  <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">  <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>  <span class="sr-only">Previous</span>  </a>  <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">  <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>  <span class="sr-only">Next</span>  </a>
  • 87.  <div class="container">  <br>  <div id="myCarousel" class="carousel slide" data-ride="carousel">  <!-- Indicators -->  <ol class="carousel-indicators">  <li data-target="#myCarousel" data-slide-to="0" class="active"></li>  <li data-target="#myCarousel" data-slide-to="1"></li>  </ol>  <!-- Wrapper for slides -->  <div class="carousel-inner" role="listbox">  <div class="item active">  <img src="img_chania.jpg" alt="Chania" width="460" height="345">  <div class="carousel-caption">  <h3>Chania</h3>  <p>The atmosphere in Chania has a touch of Florence and Venice.</p>  </div>  </div>  <div class="item">  <img src="img_chania2.jpg" alt="Chania" width="460" height="345">  <div class="carousel-caption">  <h3>Chania</h3>  <p>The atmosphere in Chania has a touch of Florence and Venice.</p>  </div>  </div>  </div>  <!-- Left and right controls -->  <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">  <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>  <span class="sr-only">Previous</span>  </a>  <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">  <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>  <span class="sr-only">Next</span>  </a>  </div>  </div>
  • 89.  The Modal plugin is a dialog box/popup window that is displayed on top of the current page:  The "Trigger" part:  To trigger the modal window, you need to use a button or a link.  Then include the two data-* attributes:  data-toggle="modal" opens the modal window  data-target="#myModal" points to the id of the modal  <!-- Trigger the modal with a button --> <button type="button" class="btn btn-info btn-lg" data- toggle="modal" data-target="#myModal">Open Modal</button>
  • 90.  The "Modal" part:  The .modal class identifies the content of <div> as a modal and brings focus to it.  The .fade class adds a transition effect which fades the modal in and out. Remove this class if you do not want.  The attribute role="dialog" improves accessibility for people using screen readers.  The .modal-dialog class sets the proper width and margin of the modal.
  • 91.  The "Modal content" part:  Class="modal-content" styles the modal (border, background- color, etc.).  The .modal-header class is used to define the style for the header of the modal.  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.
  • 92.  The .modal-body class is used to define the style for the body of the modal. Add any HTML markup here; paragraphs, images, videos, etc.  The .modal-footer class is used to define the style for the footer of the modal. Note that this area is right aligned by default.
  • 93.  <div class="container">  <h2>Modal Example</h2>  <!-- Trigger the modal with a button -->  <button type="button" class="btn btn-info btn-lg" data-toggle="modal" data- target="#myModal">Open Modal</button>  <!-- Modal -->  <div class="modal fade" id="myModal" role="dialog">  <div class="modal-dialog">   <!-- Modal content-->  <div class="modal-content">  <div class="modal-header">  <button type="button" class="close" data-dismiss="modal">&times;</button>  <h4 class="modal-title">Modal Header</h4>  </div>  <div class="modal-body">  <p>Some text in the modal.</p>  </div>  <div class="modal-footer">  <button type="button" class="btn btn-default" data-dismiss="modal"> Close </button>  </div>  </div>  </div>  </div>  </div>
  • 95.  The Tooltip plugin is small pop-up box that appears when the user moves the mouse pointer over an element:  To create a tooltip, add the data-toggle="tooltip" attribute to an element.  Use the title attribute to specify the text that should be displayed inside the tooltip:  Tooltips must be initialized with jQuery: select the specified element and call the tooltip() method.
  • 96.  <div class="container">  <h3>Tooltip Example</h3>  <p>The data-placement attribute specifies the tooltip position.</p>  <ul class="list-inline">  <li><a href="#" data-toggle="tooltip" data-placement="top" title="I am Tooltip!!">Top</a></li>  <li><a href="#" data-toggle="tooltip" data-placement="bottom" title="I am Tooltip!!">Bottom</a></li>  </ul>  </div>  <!---jQuery----->  <script>  $(document).ready(function(){  $('[data-toggle="tooltip"]').tooltip();  });  </script>
  • 98.  The Popover plugin is similar to tooltips.  it is a pop-up box that appears when the user clicks on an element.  The difference is that the popover can contain much more content.  To create a popover, add the data-toggle="popover" attribute to an element.
  • 99.  <div class="container"> <h3>Popover Example</h3> <a href="#" data-toggle="popover" title="Popover Header" data-content="Some content inside the popover">Toggle popover</a> </div>
  • 101.  For the closing of popup by clicking outside the link.  we use data-trigger = "focus“.