SlideShare uma empresa Scribd logo
1 de 55
Baixar para ler offline
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 !

Mais conteúdo relacionado

Mais procurados

An introduction to bootstrap
An introduction to bootstrapAn introduction to bootstrap
An introduction to bootstrapMind IT Systems
 
Bootstrap PPT by Mukesh
Bootstrap PPT by MukeshBootstrap PPT by Mukesh
Bootstrap PPT by MukeshMukesh Kumar
 
Bootstrap Part - 1
Bootstrap Part - 1Bootstrap Part - 1
Bootstrap Part - 1EPAM Systems
 
Bootstrap 5 whats new
Bootstrap 5   whats newBootstrap 5   whats new
Bootstrap 5 whats newSandun Perera
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tagsHimanshu Pathak
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to BootstrapRon Reiter
 
Html and css presentation
Html and css presentationHtml and css presentation
Html and css presentationumesh patil
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Chris Poteet
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basicsEliran Eliassy
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS PresentationShawn Calvert
 
CSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive DesignCSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive DesignZoe Gillenwater
 
Introduction to JavaScript (1).ppt
Introduction to JavaScript (1).pptIntroduction to JavaScript (1).ppt
Introduction to JavaScript (1).pptMuhammadRehan856177
 
Responsive web-design through bootstrap
Responsive web-design through bootstrapResponsive web-design through bootstrap
Responsive web-design through bootstrapZunair Sagitarioux
 
Front-End Frameworks: a quick overview
Front-End Frameworks: a quick overviewFront-End Frameworks: a quick overview
Front-End Frameworks: a quick overviewDiacode
 
Bootstrap Web Development Framework
Bootstrap Web Development FrameworkBootstrap Web Development Framework
Bootstrap Web Development FrameworkCindy Royal
 

Mais procurados (20)

An introduction to bootstrap
An introduction to bootstrapAn introduction to bootstrap
An introduction to bootstrap
 
Bootstrap
BootstrapBootstrap
Bootstrap
 
Bootstrap PPT by Mukesh
Bootstrap PPT by MukeshBootstrap PPT by Mukesh
Bootstrap PPT by Mukesh
 
Bootstrap Part - 1
Bootstrap Part - 1Bootstrap Part - 1
Bootstrap Part - 1
 
Bootstrap 4 ppt
Bootstrap 4 pptBootstrap 4 ppt
Bootstrap 4 ppt
 
Bootstrap 5 whats new
Bootstrap 5   whats newBootstrap 5   whats new
Bootstrap 5 whats new
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tags
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
 
CSS
CSSCSS
CSS
 
Html and css presentation
Html and css presentationHtml and css presentation
Html and css presentation
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
Css backgrounds
Css   backgroundsCss   backgrounds
Css backgrounds
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
CSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive DesignCSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive Design
 
Introduction to JavaScript (1).ppt
Introduction to JavaScript (1).pptIntroduction to JavaScript (1).ppt
Introduction to JavaScript (1).ppt
 
HTML5 & CSS3
HTML5 & CSS3 HTML5 & CSS3
HTML5 & CSS3
 
Responsive web-design through bootstrap
Responsive web-design through bootstrapResponsive web-design through bootstrap
Responsive web-design through bootstrap
 
Front-End Frameworks: a quick overview
Front-End Frameworks: a quick overviewFront-End Frameworks: a quick overview
Front-End Frameworks: a quick overview
 
Bootstrap Web Development Framework
Bootstrap Web Development FrameworkBootstrap Web Development Framework
Bootstrap Web Development Framework
 

Semelhante a 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
 

Semelhante a 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
 

Último

React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Landscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfLandscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfAarwolf Industries LLC
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...itnewsafrica
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Karmanjay Verma
 
A Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxA Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxAna-Maria Mihalceanu
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...BookNet Canada
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Digital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentDigital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentMahmoud Rabie
 
Infrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsInfrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsYoss Cohen
 

Último (20)

React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Landscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfLandscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdf
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
Irene Moetsana-Moeng: Stakeholders in Cybersecurity: Collaborative Defence fo...
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#
 
A Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxA Glance At The Java Performance Toolbox
A Glance At The Java Performance Toolbox
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Digital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentDigital Tools & AI in Career Development
Digital Tools & AI in Career Development
 
Infrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsInfrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platforms
 

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 ?