SlideShare ist ein Scribd-Unternehmen logo
1 von 55
Presented by,
FIROS. K
Contents
o INTRODUCTION
o HISTORY
o WHY BOOTSTRAP ?
o IT INCLUDES !
o HOW TO USE IT ?
o CONTAINERS
o GRID
o WORKING WITH BOOTSTRAP !
o BOOTSTRAP 5 IS COMING !
o CONCLUSION
o REFERENCE
INTRODUCTION
 Bootstrap is a free, open-source, and one of the most popular front-end
framework.
 Developed by twitter for creating responsive web applications.
 It is a collection of CSS and JavaScript.
 Bootstrap is the 6th most starred project on Github, with more than
135,000 stars.
HISTORY
 Developed by Mark Otto and Jacob Thornton at twitter.
 It was renamed from Twitter Blueprint to Bootstrap.
 Released as an open-source product on August 19, 2011 in
Github.
 It consist of 3 major versions, Bootstrap 2, 3 & 4.
HISTORY
 Bootstrap v2.0
 Released on January 31, 2012.
 Built-in support for Glyphicons.
 Supports responsive web designing.
 Bootstrap v3.0
 Released on August 19, 2013.
 Redesigned components to use flat design and a mobile first approach.
HISTORY
 Bootstrap v4.0
 The first alpha version of Bootstrap 4 was released on August 19, 2015.
 The first beta version was released on August 10, 2017.
 Mark Otto suspended work on Bootstrap 3 to free-up time to work on
Bootstrap 4.
 V4.0 was finalized January 18, 2018.
WHY BOOTSTRAP ?
 Mobile first approach.
 Browser support.
Etc.
WHY BOOTSTRAP ?
 Easy to get started.
 Responsive design.
IT INCLUDES !
 It includes 3 files,
 bootstrap.min.css
 jquery.min.js
 Bootstrap.min.js
How to use it ?
 We can include it either by using CDN or downloaded files.
 Syntax for using CDN (Content Distribution Network)
 Syntax for using downloaded files
<script type = “text/javascript” src = “jquery.min.js”></script>
<script type = “text/javascript” src = “bootstrap.min.js”></script>
<link rel = “stylesheet” type = “text/css” href = “bootstrap.min.css”>
Containers
 It has a concept of containing elements to wrap site contents.
 There are two types of containers
 .container
Class used for a responsive fixed width.
 .container-fluid
Class used for a full-width container.
Containers
 Syntax for using .container
<div class = “container”>
…
</div>
 Syntax for using .container-fluid
<div class = “container-fluid”>
…
</div>
Grid
 It is a structure (Usually 2D) made up of series of intersecting straight
(Vertical/Horizontal) lines.
 It is used to structure the contents.
 It is a very effective method to create a consistent layout rapidly &
effectively using Html & CSS.
 Makes the website easy to scan & reduces the load on users.
Grid Structure
Grid Example
 It allows up to 12 columns across the page.
 We can divide the containers in rows and each row in columns with space
multiple of 12.
Grid Working
 We can use any combination that the sum be equal to 12.
 Responsive Bootstraps' grid system with 3 columns
Grid Classes
Grid Options
Working with Bootstrap !
Bootstrap Tables
 There are 4 main classes for tables
 table
 table-striped
 table-bordered
 table-hover
table
Basic table style with just some light padding and horizontal dividers.
<table class = “table”> … </table>
Bootstrap Tables
table-striped
Used to get zebra-striping to any rows with in the <tbody>
<table class = “table table-striped”> … </table>
table-bordered
Used to get borders surrounding every element and rounded corners
around the entire table.
<table class = “table table-bordered”> … </table>
Bootstrap Tables
table-hover
Used to get a light grey background to rows while the mouse cursor
come over it.
<table class = “table table-hover”> … </table>
table-condensed
Used to make tables more compact by cutting cell padding in half.
<table class = “table table-condensed”> … </table>
Table – Contextual Classes
 It is used to color table rows / individual cells.
 There are 5 contextual-classes
 active
 success
 info
 warning
 danger
Table - Responsive
 By wrapping any <table> in table-responsive class we can make a
responsive table.
<div class = “table-responsive”>
<table class = “table”>
….
</table>
</div>
Bootstrap Images
 It consist of 3 main classes
 img-rounded
 img-circle
 img-thumbnail
Bootstrap Images
Image - Responsive
 We can also make responsive images by using img-fluid class.
<img src = “…” class = “img-fluid” alt = “Responsive_Image” />
Carousel
 It is a slideshow for cycling through elements.
 We can use the carousel slide class to create slideshow.
 Syntax is,
<div id="demo" class="carousel slide" data-ride="carousel">
Carousel
Carousel
Bootstrap alerts
 It provides an easy way to create predefined alert messages.
 They are created with the alert class followed by the one of the 4
contextual classes.
alert-success
alert-info
alert-warning
alert-danger
Alert - Example
Alert - Example
Bootstrap Buttons
 Bootstrap provides 7 styles of buttons. We can use the btn class to obtain
it.
btn-default
btn-primary
btn-success
btn-info
btn-warning
btn-danger
btn-link
Buttons - Example
Spinners
 It is used to create a spinner/loader.
 We can use the spinner-border class to create it.
 Syntax is,
<div class="spinner-border"></div>
 By using contextual class we can change the color of the spinner
accordingly.
Spinners
Bootstrap - Glyphicons
 Bootstrap provides 260 glyphicons from Glyphicon Halflings set.
Glyphicons - Example
Glyphicons - Example
Bootstrap - Labels
 Used to provide information about something.
 We can create labels with colorful backgrounds to highlight the text.
 Use the label class followed by one of the six contextual classes.
label-default label-primary
label-success label-info
label-warning label-danger
Labels - Example
Bootstrap - Panels
 It is a bordered box with some padding around it’s content that can be
used to highlight or separated from information.
 Like other classes it is also used with contextual classes.
panel-default panel-primary
panel-success panel-info
panel-warning panel-danger
Panels - Example
Bootstrap - Forms
 Form controls automatically receive some global styling with Bootstrap.
 All elements with class form-control have a width of 100%.
 It provides following types of layout,
 Vertical form (default)
 Horizontal form
 Inline form
Vertical Forms
 It is the default form layout.
 Wrap labels and controls in a <div> with a class form-group, which is
used for optimum spacing.
 Add the class form-control to all the elements
Vertical Forms
Horizontal Forms
 Add the class form-horizontal in the <form> tag.
 Add the class control-label to all labels in form.
Inline Forms
 It is used align all the elements of form in a line and left aligned.
 Add the class form-inline in <form> tag.
 This only applies to form within viewports that are at least 768px wide.
Bootstrap - Themes & Templates
 We can find and download several themes & templates.
 A theme consist of customized CSS.
 A template consist of one or more predesigned Html pages, which often make
use of theme.
 Both are collection of bootstrap elements (Grid, buttons, panels, etc.).
Bootstrap 5 is coming !
► Dropped jQuery
► Responsive containers
► Using as module
► Refreshed website
Conclusion
 Bootstrap is a free and open-source CSS framework directed at
responsive, mobile-first front-end web development.
 It makes the responsive web designing more easy and effective.
 It contains CSS, jQuery / Javascript that makes the designing more easier.
Reference
 Otto Mark (November 28, 2019) – “Bootstrap 4.4.1”
https://github.com/twbs/bootstrap
 Jake Spurlock (May, 2013) – “Bootstrap”
 W3Schools (2018) – “Bootstrap 4 - Tutorials”
https://www.w3schools.com/bootstrap4/
Do you have any doubts ?
Thank You !

Weitere ähnliche Inhalte

Was ist angesagt?

Presentation of bootstrap
Presentation of bootstrapPresentation of bootstrap
Presentation of bootstrap1amitgupta
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to BootstrapRon Reiter
 
An introduction to bootstrap
An introduction to bootstrapAn introduction to bootstrap
An introduction to bootstrapMind IT Systems
 
javascript objects
javascript objectsjavascript objects
javascript objectsVijay Kalyan
 
Bootstrap Web Development Framework
Bootstrap Web Development FrameworkBootstrap Web Development Framework
Bootstrap Web Development FrameworkCindy Royal
 
Spring Boot and REST API
Spring Boot and REST APISpring Boot and REST API
Spring Boot and REST API07.pallav
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3Lanh Le
 
HTML and CSS crash course!
HTML and CSS crash course!HTML and CSS crash course!
HTML and CSS crash course!Ana Cidre
 
JavaScript Programming
JavaScript ProgrammingJavaScript Programming
JavaScript ProgrammingSehwan Noh
 
Responsive web-design through bootstrap
Responsive web-design through bootstrapResponsive web-design through bootstrap
Responsive web-design through bootstrapZunair Sagitarioux
 
Bootstrap PPT Part - 2
Bootstrap PPT Part - 2Bootstrap PPT Part - 2
Bootstrap PPT Part - 2EPAM Systems
 

Was ist angesagt? (20)

Bootstrap
BootstrapBootstrap
Bootstrap
 
Bootstrap ppt
Bootstrap pptBootstrap ppt
Bootstrap ppt
 
Presentation of bootstrap
Presentation of bootstrapPresentation of bootstrap
Presentation of bootstrap
 
Bootstrap ppt
Bootstrap pptBootstrap ppt
Bootstrap ppt
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
 
An introduction to bootstrap
An introduction to bootstrapAn introduction to bootstrap
An introduction to bootstrap
 
Bootstrap grids
Bootstrap gridsBootstrap grids
Bootstrap grids
 
javascript objects
javascript objectsjavascript objects
javascript objects
 
Bootstrap Web Development Framework
Bootstrap Web Development FrameworkBootstrap Web Development Framework
Bootstrap Web Development Framework
 
Spring Boot and REST API
Spring Boot and REST APISpring Boot and REST API
Spring Boot and REST API
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
 
Basics of JavaScript
Basics of JavaScriptBasics of JavaScript
Basics of JavaScript
 
HTML and CSS crash course!
HTML and CSS crash course!HTML and CSS crash course!
HTML and CSS crash course!
 
Java script
Java scriptJava script
Java script
 
JavaScript Programming
JavaScript ProgrammingJavaScript Programming
JavaScript Programming
 
Responsive web-design through bootstrap
Responsive web-design through bootstrapResponsive web-design through bootstrap
Responsive web-design through bootstrap
 
Bootstrap Framework
Bootstrap Framework Bootstrap Framework
Bootstrap Framework
 
CSS
CSSCSS
CSS
 
Bootstrap PPT Part - 2
Bootstrap PPT Part - 2Bootstrap PPT Part - 2
Bootstrap PPT Part - 2
 

Ähnlich wie Bootstrap - Basics

Twitter bootstrap (css, components and javascript)
Twitter bootstrap (css, components and javascript)Twitter bootstrap (css, components and javascript)
Twitter bootstrap (css, components and javascript)NexThoughts Technologies
 
Twitter bootstrap training_session_ppt
Twitter bootstrap training_session_pptTwitter bootstrap training_session_ppt
Twitter bootstrap training_session_pptRadheshyam Kori
 
Bootstrap webtech presentation - new
Bootstrap   webtech presentation - newBootstrap   webtech presentation - new
Bootstrap webtech presentation - newWebtech Learning
 
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 3Wahyu Putra
 
7.-Bootstrap-5-report powerpoint presentation
7.-Bootstrap-5-report powerpoint presentation7.-Bootstrap-5-report powerpoint presentation
7.-Bootstrap-5-report powerpoint presentationJohnLagman3
 
ViA Bootstrap 4
ViA Bootstrap 4ViA Bootstrap 4
ViA Bootstrap 4imdurgesh
 
Introduction to Responsive Web Development
Introduction to Responsive Web DevelopmentIntroduction to Responsive Web Development
Introduction to Responsive Web DevelopmentNikhil Baby
 
Web Development Course - Twitter Bootstrap by RSOLUTIONS
Web Development Course - Twitter Bootstrap by RSOLUTIONSWeb Development Course - Twitter Bootstrap by RSOLUTIONS
Web Development Course - Twitter Bootstrap by RSOLUTIONSRSolutions
 
Web development and web design with seo
Web development and web design with seoWeb development and web design with seo
Web development and web design with seoRajat Anand
 
Pemrograman Web 4 - Bootstrap 3
Pemrograman Web 4 - Bootstrap 3Pemrograman Web 4 - Bootstrap 3
Pemrograman Web 4 - Bootstrap 3Nur Fadli Utomo
 
Bootstrap Presentation Mitesh
Bootstrap Presentation MiteshBootstrap Presentation Mitesh
Bootstrap Presentation MiteshMitesh Gandhi
 

Ähnlich wie Bootstrap - Basics (20)

Lecture-03.pptx
Lecture-03.pptxLecture-03.pptx
Lecture-03.pptx
 
Twitter bootstrap (css, components and javascript)
Twitter bootstrap (css, components and javascript)Twitter bootstrap (css, components and javascript)
Twitter bootstrap (css, components and javascript)
 
Twitter bootstrap training_session_ppt
Twitter bootstrap training_session_pptTwitter bootstrap training_session_ppt
Twitter bootstrap training_session_ppt
 
Bootstrap webtech presentation - new
Bootstrap   webtech presentation - newBootstrap   webtech presentation - new
Bootstrap webtech presentation - new
 
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
 
Bootstrap day1
Bootstrap day1Bootstrap day1
Bootstrap day1
 
7.-Bootstrap-5-report powerpoint presentation
7.-Bootstrap-5-report powerpoint presentation7.-Bootstrap-5-report powerpoint presentation
7.-Bootstrap-5-report powerpoint presentation
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Bootstrap 3 vs. bootstrap 4
Bootstrap 3 vs. bootstrap 4Bootstrap 3 vs. bootstrap 4
Bootstrap 3 vs. bootstrap 4
 
Bootstrap [part 1]
Bootstrap [part 1]Bootstrap [part 1]
Bootstrap [part 1]
 
Module 3 - Intro to Bootstrap
Module 3 - Intro to BootstrapModule 3 - Intro to Bootstrap
Module 3 - Intro to Bootstrap
 
BOTSTRAP.ppt
BOTSTRAP.pptBOTSTRAP.ppt
BOTSTRAP.ppt
 
Boot strap introduction
Boot strap introductionBoot strap introduction
Boot strap introduction
 
Anvesh_BOOTSTRAP.pptx
Anvesh_BOOTSTRAP.pptxAnvesh_BOOTSTRAP.pptx
Anvesh_BOOTSTRAP.pptx
 
ViA Bootstrap 4
ViA Bootstrap 4ViA Bootstrap 4
ViA Bootstrap 4
 
Introduction to Responsive Web Development
Introduction to Responsive Web DevelopmentIntroduction to Responsive Web Development
Introduction to Responsive Web Development
 
Web Development Course - Twitter Bootstrap by RSOLUTIONS
Web Development Course - Twitter Bootstrap by RSOLUTIONSWeb Development Course - Twitter Bootstrap by RSOLUTIONS
Web Development Course - Twitter Bootstrap by RSOLUTIONS
 
Web development and web design with seo
Web development and web design with seoWeb development and web design with seo
Web development and web design with seo
 
Pemrograman Web 4 - Bootstrap 3
Pemrograman Web 4 - Bootstrap 3Pemrograman Web 4 - Bootstrap 3
Pemrograman Web 4 - Bootstrap 3
 
Bootstrap Presentation Mitesh
Bootstrap Presentation MiteshBootstrap Presentation Mitesh
Bootstrap Presentation Mitesh
 

Kürzlich hochgeladen

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 

Kürzlich hochgeladen (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

Bootstrap - Basics

  • 2. Contents o INTRODUCTION o HISTORY o WHY BOOTSTRAP ? o IT INCLUDES ! o HOW TO USE IT ? o CONTAINERS o GRID o WORKING WITH BOOTSTRAP ! o BOOTSTRAP 5 IS COMING ! o CONCLUSION o REFERENCE
  • 3. INTRODUCTION  Bootstrap is a free, open-source, and one of the most popular front-end framework.  Developed by twitter for creating responsive web applications.  It is a collection of CSS and JavaScript.  Bootstrap is the 6th most starred project on Github, with more than 135,000 stars.
  • 4. HISTORY  Developed by Mark Otto and Jacob Thornton at twitter.  It was renamed from Twitter Blueprint to Bootstrap.  Released as an open-source product on August 19, 2011 in Github.  It consist of 3 major versions, Bootstrap 2, 3 & 4.
  • 5. HISTORY  Bootstrap v2.0  Released on January 31, 2012.  Built-in support for Glyphicons.  Supports responsive web designing.  Bootstrap v3.0  Released on August 19, 2013.  Redesigned components to use flat design and a mobile first approach.
  • 6. HISTORY  Bootstrap v4.0  The first alpha version of Bootstrap 4 was released on August 19, 2015.  The first beta version was released on August 10, 2017.  Mark Otto suspended work on Bootstrap 3 to free-up time to work on Bootstrap 4.  V4.0 was finalized January 18, 2018.
  • 7. WHY BOOTSTRAP ?  Mobile first approach.  Browser support. Etc.
  • 8. WHY BOOTSTRAP ?  Easy to get started.  Responsive design.
  • 9. IT INCLUDES !  It includes 3 files,  bootstrap.min.css  jquery.min.js  Bootstrap.min.js
  • 10. How to use it ?  We can include it either by using CDN or downloaded files.  Syntax for using CDN (Content Distribution Network)  Syntax for using downloaded files <script type = “text/javascript” src = “jquery.min.js”></script> <script type = “text/javascript” src = “bootstrap.min.js”></script> <link rel = “stylesheet” type = “text/css” href = “bootstrap.min.css”>
  • 11. Containers  It has a concept of containing elements to wrap site contents.  There are two types of containers  .container Class used for a responsive fixed width.  .container-fluid Class used for a full-width container.
  • 12. Containers  Syntax for using .container <div class = “container”> … </div>  Syntax for using .container-fluid <div class = “container-fluid”> … </div>
  • 13. Grid  It is a structure (Usually 2D) made up of series of intersecting straight (Vertical/Horizontal) lines.  It is used to structure the contents.  It is a very effective method to create a consistent layout rapidly & effectively using Html & CSS.  Makes the website easy to scan & reduces the load on users.
  • 15. Grid Example  It allows up to 12 columns across the page.  We can divide the containers in rows and each row in columns with space multiple of 12.
  • 16. Grid Working  We can use any combination that the sum be equal to 12.  Responsive Bootstraps' grid system with 3 columns
  • 20. Bootstrap Tables  There are 4 main classes for tables  table  table-striped  table-bordered  table-hover table Basic table style with just some light padding and horizontal dividers. <table class = “table”> … </table>
  • 21. Bootstrap Tables table-striped Used to get zebra-striping to any rows with in the <tbody> <table class = “table table-striped”> … </table> table-bordered Used to get borders surrounding every element and rounded corners around the entire table. <table class = “table table-bordered”> … </table>
  • 22. Bootstrap Tables table-hover Used to get a light grey background to rows while the mouse cursor come over it. <table class = “table table-hover”> … </table> table-condensed Used to make tables more compact by cutting cell padding in half. <table class = “table table-condensed”> … </table>
  • 23. Table – Contextual Classes  It is used to color table rows / individual cells.  There are 5 contextual-classes  active  success  info  warning  danger
  • 24. Table - Responsive  By wrapping any <table> in table-responsive class we can make a responsive table. <div class = “table-responsive”> <table class = “table”> …. </table> </div>
  • 25. Bootstrap Images  It consist of 3 main classes  img-rounded  img-circle  img-thumbnail
  • 27. Image - Responsive  We can also make responsive images by using img-fluid class. <img src = “…” class = “img-fluid” alt = “Responsive_Image” />
  • 28. Carousel  It is a slideshow for cycling through elements.  We can use the carousel slide class to create slideshow.  Syntax is, <div id="demo" class="carousel slide" data-ride="carousel">
  • 31. Bootstrap alerts  It provides an easy way to create predefined alert messages.  They are created with the alert class followed by the one of the 4 contextual classes. alert-success alert-info alert-warning alert-danger
  • 34. Bootstrap Buttons  Bootstrap provides 7 styles of buttons. We can use the btn class to obtain it. btn-default btn-primary btn-success btn-info btn-warning btn-danger btn-link
  • 36. Spinners  It is used to create a spinner/loader.  We can use the spinner-border class to create it.  Syntax is, <div class="spinner-border"></div>  By using contextual class we can change the color of the spinner accordingly.
  • 38. Bootstrap - Glyphicons  Bootstrap provides 260 glyphicons from Glyphicon Halflings set.
  • 41. Bootstrap - Labels  Used to provide information about something.  We can create labels with colorful backgrounds to highlight the text.  Use the label class followed by one of the six contextual classes. label-default label-primary label-success label-info label-warning label-danger
  • 43. Bootstrap - Panels  It is a bordered box with some padding around it’s content that can be used to highlight or separated from information.  Like other classes it is also used with contextual classes. panel-default panel-primary panel-success panel-info panel-warning panel-danger
  • 45. Bootstrap - Forms  Form controls automatically receive some global styling with Bootstrap.  All elements with class form-control have a width of 100%.  It provides following types of layout,  Vertical form (default)  Horizontal form  Inline form
  • 46. Vertical Forms  It is the default form layout.  Wrap labels and controls in a <div> with a class form-group, which is used for optimum spacing.  Add the class form-control to all the elements
  • 48. Horizontal Forms  Add the class form-horizontal in the <form> tag.  Add the class control-label to all labels in form.
  • 49. Inline Forms  It is used align all the elements of form in a line and left aligned.  Add the class form-inline in <form> tag.  This only applies to form within viewports that are at least 768px wide.
  • 50. Bootstrap - Themes & Templates  We can find and download several themes & templates.  A theme consist of customized CSS.  A template consist of one or more predesigned Html pages, which often make use of theme.  Both are collection of bootstrap elements (Grid, buttons, panels, etc.).
  • 51. Bootstrap 5 is coming ! ► Dropped jQuery ► Responsive containers ► Using as module ► Refreshed website
  • 52. Conclusion  Bootstrap is a free and open-source CSS framework directed at responsive, mobile-first front-end web development.  It makes the responsive web designing more easy and effective.  It contains CSS, jQuery / Javascript that makes the designing more easier.
  • 53. Reference  Otto Mark (November 28, 2019) – “Bootstrap 4.4.1” https://github.com/twbs/bootstrap  Jake Spurlock (May, 2013) – “Bootstrap”  W3Schools (2018) – “Bootstrap 4 - Tutorials” https://www.w3schools.com/bootstrap4/
  • 54. Do you have any doubts ?