SlideShare a Scribd company logo
BootStrap
Introduction
• Bootstrap is the most popular HTML, CSS, and
JavaScript framework for developing
responsive, mobile-first web sites.
Where to Get Bootstrap?
There are two ways to start using Bootstrap on
your own web site.
You can:
• Download Bootstrap from getbootstrap.com
• Include Bootstrap from a CDN
• <!-- Latest compiled and minified CSS -->
<link rel="stylesheet"href="http://maxcdn.bootstrapcdn.com/boots
trap/3.3.6/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jq
uery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/b
ootstrap.min.js"></script>
Create First Web Page With Bootstrap
1. Add the HTML5 doctype
2. Bootstrap 3 is mobile-first
3. Containers
4. Grid System
5. Collapse
6. Jumbotron
7. Page Header
8. Navigation bar
1. Add the HTML5 doctype
• Bootstrap uses HTML elements and CSS
properties that require the HTML5 doctype.
• Always include the HTML5 doctype at the
beginning of the page, along with the lang
attribute and the correct character set:
• <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
</html>
2. Bootstrap 3 is mobile-first
• Bootstrap 3 is designed to be responsive to
mobile devices. Mobile-first styles are part of
the core framework.
• To ensure proper rendering and touch
zooming, add the following <meta> tag inside
the <head> element:
• <meta name="viewport" content="width=devi
ce-width, initial-scale=1">
3. Containers
• Bootstrap also requires a containing element to
wrap site contents.
• There are two container classes to choose from:
• The .container class provides a responsive fixed
width container
• The .container-fluid class provides a full width
container, spanning the entire width of the
viewport
• Demo
Bootstrap Grid System
Bootstrap's grid system allows up to 12 columns
across the page.
The Bootstrap grid system has four classes:
• xs (for phones)
• sm (for tablets)
• md (for desktops)
• lg (for larger desktops)
The grid layout
Bootstrap Grid System Example
• <div class="row">
<div class="col-sm-4">.col-sm-4</div>
<div class="col-sm-8">.col-sm-8</div>
</div>
• Demo
Bootstrap Collapse
• Collapsibles are useful when you want to hide
and show large amount of content:
• <button data-toggle="collapse" data-
target="#demo">Collapsible</button>
<div id="demo" class="collapse">
Write some text....
</div>
• Demo
Bootstrap JS Collapse
• $(document).ready(function(){
$("#demo").on("hide.bs.collapse", function(){
$(".btn").html('<span class="glyphicon
glyphicon-collapse-down"></span> Open');
});
$("#demo").on("show.bs.collapse", function(){
$(".btn").html('<span class="glyphicon
glyphicon-collapse-up"></span> Close');
});
});
• Demo
Bootstrap Jumbotron
• 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. It also enlarges the font sizes
of the text inside it.
• Use a <div> element with class .jumbotron to
create a jumbotron:
Page Header
• Use a <div> element with class .page-header
to create a page header:
<div class="page-header">
<h1>Example Page Header</h1>
</div>
• Demo
Bootstrap Navigation Bar
• A navigation bar is a navigation header that is
placed at the top of the page:
• With Bootstrap, a navigation bar can extend or
collapse, depending on the screen size.
• A standard navigation bar is created with <nav
class="navbar navbar-default">
• Demo
Bootstrap Inverted Navigation Bar
• If you don't like the style of the default
navigation bar, Bootstrap provides an
alternative, black navbar:
• Just change the .navbar-default class into
.navbar-inverse:
• Demo
Bootstrap Fixed Navigation Bar
• The navigation bar can also be fixed at the top or
at the bottom of the page.
• A fixed navigation bar stays visible in a fixed
position (top or bottom) independent of the page
scroll.
• The .navbar-fixed-top class makes the navigation
bar fixed at the top:
• The .navbar-fixed-bottom class makes the
navigation bar stay at the bottom:
• Demo
Bootstrap Navigation Bar with
Dropdown
• Navigation bars can also hold dropdown
menus.
• Demo
Bootstrap Right Aligned Navigation Bar
• The .navbar-right class is used to right-align
navigation bar buttons.
• In the following example we insert a "Sign Up"
button and a "Login" button to the right in the
navigation bar. We also add a glyphicon on
each of the two new buttons:
• Demo
Collapsing The Navigation Bar
• 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.
• In the following example the navigation bar is
replaced by a button in the top right corner.
Only when the button is clicked, the
navigation bar will be displayed:
• Demo
Online Resources
• http://www.w3schools.com/bootstrap/bootst
rap_navbar.asp
• http://getbootstrap.com/
• https://bootstrapdocs.com/

More Related Content

PPTX
Presentation of bootstrap
PPTX
Bootstrap [part 2]
PPTX
Bootstrap Framework
PPTX
Bootstrap Web Development Framework
PPTX
Bootstrap [part 1]
PDF
Bootstrap
PPTX
Introduction to Bootstrap
PPT
Web Development Intro
Presentation of bootstrap
Bootstrap [part 2]
Bootstrap Framework
Bootstrap Web Development Framework
Bootstrap [part 1]
Bootstrap
Introduction to Bootstrap
Web Development Intro

What's hot (20)

PPTX
Bootstrap 3
PPTX
PhDigital 2020: Web Development
PPTX
Bootstrap - Web Development Framework
PPT
Introduction to BOOTSTRAP
PPTX
An introduction to bootstrap
PPTX
Tweaking your Template: Joomla Day Boston 2014 Barb Ackemann
PDF
Modern Front-End Development
PPTX
Bootstrap 3
PDF
Introduction to Bootstrap
PDF
Bootstrap
PPTX
Bootstrap PPT by Mukesh
PPTX
18. images in symfony 4
PPS
Bootstrap 3 vs. bootstrap 4
PDF
Bootstrap
PPTX
Bootstrap webtech presentation - new
PDF
Lab#10 navigation, links and hover rollovers
PPS
Introduction to Bootstrap: Design for Developers
PPTX
A beginner's guide to twitter bootstrap
PDF
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
PPTX
Basics of Front End Web Dev PowerPoint
Bootstrap 3
PhDigital 2020: Web Development
Bootstrap - Web Development Framework
Introduction to BOOTSTRAP
An introduction to bootstrap
Tweaking your Template: Joomla Day Boston 2014 Barb Ackemann
Modern Front-End Development
Bootstrap 3
Introduction to Bootstrap
Bootstrap
Bootstrap PPT by Mukesh
18. images in symfony 4
Bootstrap 3 vs. bootstrap 4
Bootstrap
Bootstrap webtech presentation - new
Lab#10 navigation, links and hover rollovers
Introduction to Bootstrap: Design for Developers
A beginner's guide to twitter bootstrap
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
Basics of Front End Web Dev PowerPoint
Ad

Similar to Boot strap (20)

PPTX
Lecture-10.pptx
PDF
HTML & CSS #10 : Bootstrap
PDF
Bootstrap for webtechnology_data science.pdf
PPTX
Bootstrap: the full overview
PPSX
Twitter Bootstrap
PPTX
Twitter bootstrap
PPT
Responsive web design
PPT
Twitter bootstrap (css, components and javascript)
PDF
Boot strap introduction
PPT
Twitter bootstrap training_session_ppt
PPTX
Intro to Bootstrap
PDF
The Ultimate Guide to Bootstrap for Beginners.pdf
PPTX
Module 3 - Intro to Bootstrap
PDF
Introduction to Bootstrap
PPTX
Reboot-Typography.pptx reboot typography to help you in research
PPTX
ICT Presentjrjdjdjdkkdkeeation Final.pptx
PPTX
Bootstrap
PDF
Bootstrap Training Institute, Ghaziabad
PPTX
Bootstrap PPT Part - 2
PPTX
Create Responsive Website Design with Bootstrap 3
Lecture-10.pptx
HTML & CSS #10 : Bootstrap
Bootstrap for webtechnology_data science.pdf
Bootstrap: the full overview
Twitter Bootstrap
Twitter bootstrap
Responsive web design
Twitter bootstrap (css, components and javascript)
Boot strap introduction
Twitter bootstrap training_session_ppt
Intro to Bootstrap
The Ultimate Guide to Bootstrap for Beginners.pdf
Module 3 - Intro to Bootstrap
Introduction to Bootstrap
Reboot-Typography.pptx reboot typography to help you in research
ICT Presentjrjdjdjdkkdkeeation Final.pptx
Bootstrap
Bootstrap Training Institute, Ghaziabad
Bootstrap PPT Part - 2
Create Responsive Website Design with Bootstrap 3
Ad

Recently uploaded (20)

PPTX
artificialintelligenceai1-copy-210604123353.pptx
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PPTX
Digital Literacy And Online Safety on internet
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PPT
250152213-Excitation-SystemWERRT (1).ppt
PPT
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PPTX
t_and_OpenAI_Combined_two_pressentations
DOCX
Unit-3 cyber security network security of internet system
PPTX
Introduction to cybersecurity and digital nettiquette
PPTX
SAP Ariba Sourcing PPT for learning material
PPT
Ethics in Information System - Management Information System
PPTX
Mathew Digital SEO Checklist Guidlines 2025
PDF
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
PPTX
Database Information System - Management Information System
PDF
Exploring VPS Hosting Trends for SMBs in 2025
PPTX
artificial intelligence overview of it and more
PDF
mera desh ae watn.(a source of motivation and patriotism to the youth of the ...
artificialintelligenceai1-copy-210604123353.pptx
SASE Traffic Flow - ZTNA Connector-1.pdf
Digital Literacy And Online Safety on internet
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Design_with_Watersergyerge45hrbgre4top (1).ppt
250152213-Excitation-SystemWERRT (1).ppt
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
t_and_OpenAI_Combined_two_pressentations
Unit-3 cyber security network security of internet system
Introduction to cybersecurity and digital nettiquette
SAP Ariba Sourcing PPT for learning material
Ethics in Information System - Management Information System
Mathew Digital SEO Checklist Guidlines 2025
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
Database Information System - Management Information System
Exploring VPS Hosting Trends for SMBs in 2025
artificial intelligence overview of it and more
mera desh ae watn.(a source of motivation and patriotism to the youth of the ...

Boot strap

  • 2. Introduction • Bootstrap is the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first web sites.
  • 3. Where to Get Bootstrap? There are two ways to start using Bootstrap on your own web site. You can: • Download Bootstrap from getbootstrap.com • Include Bootstrap from a CDN • <!-- Latest compiled and minified CSS --> <link rel="stylesheet"href="http://maxcdn.bootstrapcdn.com/boots trap/3.3.6/css/bootstrap.min.css"> <!-- jQuery library --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jq uery.min.js"></script> <!-- Latest compiled JavaScript --> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/b ootstrap.min.js"></script>
  • 4. Create First Web Page With Bootstrap 1. Add the HTML5 doctype 2. Bootstrap 3 is mobile-first 3. Containers 4. Grid System 5. Collapse 6. Jumbotron 7. Page Header 8. Navigation bar
  • 5. 1. Add the HTML5 doctype • Bootstrap uses HTML elements and CSS properties that require the HTML5 doctype. • Always include the HTML5 doctype at the beginning of the page, along with the lang attribute and the correct character set: • <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> </head> </html>
  • 6. 2. Bootstrap 3 is mobile-first • Bootstrap 3 is designed to be responsive to mobile devices. Mobile-first styles are part of the core framework. • To ensure proper rendering and touch zooming, add the following <meta> tag inside the <head> element: • <meta name="viewport" content="width=devi ce-width, initial-scale=1">
  • 7. 3. Containers • Bootstrap also requires a containing element to wrap site contents. • There are two container classes to choose from: • The .container class provides a responsive fixed width container • The .container-fluid class provides a full width container, spanning the entire width of the viewport • Demo
  • 8. Bootstrap Grid System Bootstrap's grid system allows up to 12 columns across the page. The Bootstrap grid system has four classes: • xs (for phones) • sm (for tablets) • md (for desktops) • lg (for larger desktops)
  • 10. Bootstrap Grid System Example • <div class="row"> <div class="col-sm-4">.col-sm-4</div> <div class="col-sm-8">.col-sm-8</div> </div> • Demo
  • 11. Bootstrap Collapse • Collapsibles are useful when you want to hide and show large amount of content: • <button data-toggle="collapse" data- target="#demo">Collapsible</button> <div id="demo" class="collapse"> Write some text.... </div> • Demo
  • 12. Bootstrap JS Collapse • $(document).ready(function(){ $("#demo").on("hide.bs.collapse", function(){ $(".btn").html('<span class="glyphicon glyphicon-collapse-down"></span> Open'); }); $("#demo").on("show.bs.collapse", function(){ $(".btn").html('<span class="glyphicon glyphicon-collapse-up"></span> Close'); }); }); • Demo
  • 13. Bootstrap Jumbotron • 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. It also enlarges the font sizes of the text inside it. • Use a <div> element with class .jumbotron to create a jumbotron:
  • 14. Page Header • Use a <div> element with class .page-header to create a page header: <div class="page-header"> <h1>Example Page Header</h1> </div> • Demo
  • 15. Bootstrap Navigation Bar • A navigation bar is a navigation header that is placed at the top of the page: • With Bootstrap, a navigation bar can extend or collapse, depending on the screen size. • A standard navigation bar is created with <nav class="navbar navbar-default"> • Demo
  • 16. Bootstrap Inverted Navigation Bar • If you don't like the style of the default navigation bar, Bootstrap provides an alternative, black navbar: • Just change the .navbar-default class into .navbar-inverse: • Demo
  • 17. Bootstrap Fixed Navigation Bar • The navigation bar can also be fixed at the top or at the bottom of the page. • A fixed navigation bar stays visible in a fixed position (top or bottom) independent of the page scroll. • The .navbar-fixed-top class makes the navigation bar fixed at the top: • The .navbar-fixed-bottom class makes the navigation bar stay at the bottom: • Demo
  • 18. Bootstrap Navigation Bar with Dropdown • Navigation bars can also hold dropdown menus. • Demo
  • 19. Bootstrap Right Aligned Navigation Bar • The .navbar-right class is used to right-align navigation bar buttons. • In the following example we insert a "Sign Up" button and a "Login" button to the right in the navigation bar. We also add a glyphicon on each of the two new buttons: • Demo
  • 20. Collapsing The Navigation Bar • 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. • In the following example the navigation bar is replaced by a button in the top right corner. Only when the button is clicked, the navigation bar will be displayed: • Demo
  • 21. Online Resources • http://www.w3schools.com/bootstrap/bootst rap_navbar.asp • http://getbootstrap.com/ • https://bootstrapdocs.com/