SlideShare a Scribd company logo
BOOTSTRAP
What is Bootstrap?
• Bootstrap is  a  free,  open-source  and  is  the  most 
popular  HTML,  CSS,  and  JavaScript  framework 
developed  by  twitter  for  creating  responsive  web 
applications.  
• It can be used to create a web application built with 
any  server  side  technologies  like  ASP.NET,  JAVA, 
PHP etc. 
History
• Bootstrap was developed by Mark Otto and Jacob Thornton at 
Twitter  (Twitter  Blueprint).  It  was  released  as  an  open  source 
product in August 2011 on GitHub.
• Version 2.0 supports Responsive web design.
• Version 3.0 adopted a mobile- first design.
• Version 4.0 alpha added Sass and Flexbox support.
Why use Bootstrap?
• Mobile first approach: 
The  framework  consists  of  Mobile  first  styles 
throughout  the entire library instead of in separate 
files.
• Browser Support:
It is supported by all popular browsers.
• Easy to get started: 
With just the knowledge of HTML and CSS anyone 
can get  started with Bootstrap.  
• Responsive design:
Bootstrap's  responsive  CSS  adjusts  to  Desktops, 
Tablets  and Mobiles.  
What Bootstrap Package Includes?
• Scaffolding:  Bootstrap  provides  a  basic  structure  with 
Grid System, link styles, background.  
• CSS: Bootstrap  comes  with  feature  of  global  CSS 
settings, fundamental HTML elements and enhanced with 
extensible classes, and an advanced grid system.  
• Components: Bootstrap contains over a dozen reusable 
components  built  to  provide  iconography,  dropdowns, 
navigation, alerts, popovers, and much more.  
What Bootstrap Package Includes?
• JavaScript Plugins:  Bootstrap  contains  a  variety  of 
customized jQuery plugins. We can easily include them all, or 
one by one. 
• Customize: We  can  customize  Bootstrap's  components  and 
jQuery plugins to get your very own version.
• You  can  download  the  latest  version  of  Bootstrap  from 
http://getbootstrap.com/.
Download Bootstrap
Bootstrap CDN Links 
• <!-- Latest compiled and minified CSS -->
• <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" 
integrity="sha384-
BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" 
crossorigin="anonymous">
• <!-- Optional theme -->
• <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-
theme.min.css" integrity="sha384-
rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" 
crossorigin="anonymous">
• <!-- Latest compiled and minified JavaScript -->
• <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" 
integrity="sha384-
Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" 
crossorigin="anonymous"></script>
Download Bootstrap
Original source files are included as listed below.
• Jquery.js
• Bootstrap.min.css
• Bootstrap.js
Example:
• <script type="text/javascript" src="js/jquery-3.1.1.js"></script>  
• <script type="text/javascript" src="lib/bootstrap/js/bootstrap.js"></script>
•  <link rel="stylesheet" type="text/css" 
href="lib/bootstrap/css/bootstrap.css">
Containers 
.container class used for a responsive fixed-width.
Syntax:
<div class="container"> 
 …..
</div>
.container-fluid for a full-width container.
Syntax:
<div class="container-fluid"> 
 ...
</div>
What is a Grid?
• Grid is a structure (usually two-dimensional) made up of a 
series of intersecting straight (vertical, horizontal) lines used to 
structure the content.
• In web design, it is a very effective method to create a 
consistent layout rapidly and effectively using HTML and CSS.
• It organize and structure content, makes the websites easy to 
scan and reduces the load on users.
Grid System Description
• Grid System consists of 12 columns.
• The Grid system is used for creating page layouts 
through a series of rows and columns.
• Rows must be placed with a .container (fixed –width) or 
.container –fluid (full-width) for proper alignment and 
padding.
• Use rows to create horizontal group of columns.
• Content should be placed within columns, and only 
columns may be immediate children of rows.
Grid System Structure
col-*-1 col-*-1 col-*-1 col-*-1 col-*-1 col-*-1 col-*-1 col-*-1 col-*-1 col-*-1 col-*-1 col-*-1
 
col- * - 6  col-*-6
col- * - 4 col- * - 4 col- * - 4 
col- * - 4 col- * - 8
col- * - 12
Working of Bootstrap Grid System
Grid systems are used for creating page layouts through a series of rows and 
columns that house your content.
Here's how the Bootstrap grid system works:
•Rows must be placed within a .container class for proper alignment and padding.
•Use rows to create horizontal groups of columns.
•Content should be placed within columns, and only columns may be immediate 
children of rows.
•Predefined grid classes like .row and .col-*-* are available for quickly making grid 
layouts. 
•Columns create gutters (gaps between column content) via padding. That padding 
is offset in rows for the first and last column via negative margin on .rows.
•Grid columns are created by specifying the number of twelve available columns 
you wish to span. 
•If more than 12 columns are placed within a single row, each group of extra 
columns wrap onto a new line.
Grid Classes
The Bootstrap grid system has four classes:
•xs (for phones)
•sm (for tablets)
•md (for desktops)
•lg (for larger desktops)
Grid options
The  following  table  summarizes  aspects  of  how  Bootstrap  grid 
system works across multiple devices:
BASIC GRID STRUCTURE 
Following is basic structure of Bootstrap grid:
BASIC GRID STRUCTURE 
Let us see some simple grid examples:
• Example: Stacked-to-horizontal 
• Example: Medium and Large Device 
• Example: Mobile, tablet, desktops
Bootstrap Grid System Example: Stacked-to-horizontal 
Stacked-to-horizontal
• Container class is added to ensure the proper centering
and maximum width of the layout.
• Once container is added, we need to think in terms of
rows. Add <div class = "row">...</div> and
columns <div class = "col-md-6"></div> inside the
rows
• In the example we have two columns each made of 6
units wide.(6+6 =12).
Bootstrap Grid System Example: Medium and Large
Device
• Here we have used md and lg column groups for
support of medium and large size devices.
• For medium size devices, 2 div’s will go from 50% by
50% of split.
• For large size devices, 2 div’s will go form 33% by 66%
of spilt.
Bootstrap Grid System Example: Mobile, Tablet,
Desktops
Now this gives us 3 different column layouts <div
class="container">
•On a phone, it will be 25% on the left, and 75% on
the right.
•On a tablet, it will be 50%/50% again,
•Large viewport, it will be 33%/66%.
•3 different layouts for each of the 3 responsive sizes.
Column Wrapping
• More than 12 columns are placed within a single
row, Each group of extra columns will wrap onto a
new line.
Responsive column resets
• Assume that four tiers of grids available, we run into
issues where at certain breakpoints.
• Columns are don’t clear quite right as one is taller than
the other.
• To fix this issue, We can use class .clearfix.
Offsetting columns
• It can be used for push columns over for more spacing.
• .col-md-offset-* class increases the left margin of a
column range form 1 to 11.
• Offset class moves the content to the right depending
upon the given value.
Nesting columns
• To nest your content with the default grid, add a
new row and set of columns within an existing column.
• Nested rows should include a set of columns that add
up to 12.
Column Ordering
• To write columns in an order and show them in one
another one by using push and pull modifier classes
where ranges form 1 to 11.
• Syntax:
• .col-md-push-*
• .col-md-pull-*
Typography
• Bootstrap uses Helvetica Neue, Helvetica, Arial, and sans-serif in its default font stack.
Using typography feature of Bootstrap you can create headings, paragraphs, lists and
other inline elements.
• Default font-size is 14px. with a line –height of 1.428.(Applied to <body> and all
paragraphs).
• Paragraph <p> elements have a bottom margin that equals half their computed line-
height (10px by default).
Headings:
All HTML headings (h1 to h6) are styled in Bootstrap. An example is as shown below:
<h1>I'm Heading1 h1</h1> Semibold 36px
<h2>I'm Heading2 h2</h2> Semibold 30px
<h3>I'm Heading3 h3</h3> Semibold 24px
<h4>I'm Heading4 h4</h4> Semibold 18px
<h5>I'm Heading5 h5</h5> Semibold 14px
<h6>I'm Heading6 h6</h6> Semibold 12px
Typography
INLINE SUBHEADINGS:
To add an inline subheading to any of the headings, simply add <small>
around any of the elements or add .small class and you will get smaller text
in a lighter color as shown in the example below:
<h1>I'm Heading1 h1. <small>I'm secondary Heading1 h1</small></h1>
<h2>I'm Heading2 h2. <small>I'm secondary Heading2 h2</small></h2>
<h3>I'm Heading3 h3. <small>I'm secondary Heading3 h3</small></h3>
<h4>I'm Heading4 h4. <small>I'm secondary Heading4 h4</small></h4>
<h5>I'm Heading5 h5. <small>I'm secondary Heading5 h5</small></h5>
<h6>I'm Heading6 h6. <small>I'm secondary Heading1 h6</small></h6>
Inline text elements
Marked Text: Highlight the text using <mark> tag.
Deleted Text: Blocks of text have been deleted using <del> tag.
Strikethrough Text: Blocks of text that are no longer relevant
using the <s> tag.
Inserted text: The <ins> tag defines a text that has been
inserted into a document.
Underline Text: The <u>tag defines a underline text.
Small Text: Use the <small> tag to set the text at 85% the size
of the parent.
Bold: Text with a heavier font-weight can be done by <strong>
tag.
Italics: For Emphasizing of text with italics done by <em> tag.
Alignment classes
Realign text can be done with text alignment classes.
•text-left class used for Left aligned text.
•text-right class used for Right aligned text.
•text-center class used for Center aligned text.
•text-justify class used for Justified text.
•text-nowrap class used for No wrap text.
Transformation classes
Transform text by using text capitalization classes.
•text-lowercase class used for Lowercased text.
•text-uppercase class used for Uppercased text.
•text-capitalize class used for Capitalized text.
Abbreviations
Basic Abbreviation :An abbreviation of the word attribute is
attr.
Syntax :<abbr title="attribute">attr</abbr>
Initialism: Add .Initialism to an abbreviation for a slightly
smaller font-size.
Syntax :<abbr title="HyperText Markup Language"
class="initialism">HTML</abbr>
Addresses
To represent contact information by using <address> tag.
Syntax : <address>……. </address>
Blockquotes
`
Blocks of content from another source within your document.
Default blockquote
The blockquote element is used to present content from another
source using <p> tag.
Block quote options
Naming a source : Style and content changes for simple
variations on a standard <bolckquote>.Add a <footer> for
identifying the source.
Alternate Displays:Add .bolckquote-reverse class right –aligned
content.
Syntax:<blockquote class="blockquote-reverse">
Lists
• Unordered :A list of items in which the order does not explicitly matter.
Syntax : <ul>
<li>...</li>
</ul>
• Ordered :A list of items in which the order does explicitly matter.
Syntax : <ol>
<li>...</li>
</ol>
• Unstyled: Removes the Default list-style and left margin for list items. It
only applies to immediate children of list items.
Syntax:<ul class="list-unstyled">
<li>...</li>
</ul>
• Inline: Place all list items on a single line with padding.
Syntax :<ul class="list-inline">
<li>...</li>
</ul>
• Description: A list of terms with their associated descriptions.
Syntax:<dl>
<dt>...</dt>
<dd>...</dd>
</dl>
Horizontal description
Syntax:<dl class="dl-horizontal">
<dt>...</dt>
<dd>...</dd>
</dl>
Tables
Basic Table:
If you want a nice, basic table style with just some
light padding and horizontal dividers, add the base
class of .table to any table .
Syntax:
<table class="table">
…………..
</table>
Tables
STRIPED TABLE :
By adding the .table-striped class, you will get
zebra-striping to any rows within the <tbody>.
Syntax:
<table class="table table-striped">
…………
</table>
Tables
BORDERED TABLE :
By adding the .table-bordered class, you will get
borders surrounding every element and rounded corners
around the entire table.
Syntax:
<table class="table table-bordered">
………….
</table>
Tables
HOVER TABLE :
By adding the .table-hover class, a light gray
background will be added to rows while the cursor
hovers over them.
Syntax:
<table class="table table-hover">
…………….
</table>
Tables
Condensed table
By adding the .table-condesend class, to make
tables more compat by cutting cell padding in half.
Syntax:
<table class="table table-condensed">
…………….
</table>
Contextual classes
Use contextual classes to color table rows or individual cells.
Class Description
.active
Applies the hover color to a
particular row or cell
.success
Indicates a successful or
positive action
.info
Indicates a neutral informative
change or action
.warning
Indicates a warning that might
need attention
.danger
Indicates a dangerous or
potentially negative action
Tables
RESPONSIVE TABLES:
By wrapping any .table in .table-responsive class, you will
make the table scroll horizontally up to small devices (under
768px). When viewing on anything larger than 768px wide,
you will not see any difference in these tables.
Syntax:
<div class="table-responsive">
<table class="table">
………….
</table>
</div>
Forms
Form controls automatically receive some global styling with
Bootstrap:
All Textual <input>, <textarea>, and <select> elements with
class .form-control have a width of 100%.
Form Layouts:
Bootstrap provides you with following types of form
layouts:
• Vertical (default) form
• Inline form
• Horizontal form
Forms
VERTICAL( OR BASIC) FORM:
• Add a role form to the parent <form> element.
• Wrap labels and controls in a <div> with class .form-group.
This is needed for optimum spacing.
• Add a class of .form-control to all textual <input>,
<textarea>, and <select> elements.
Forms
INLINE FORM :
To create a form where all of the elements are inline,
left aligned and labels are alongside, add the class
.forminline to the <form> tag.
Note: This only applies to forms within viewports that are
at least 768px wide!
Forms
HORIZONTAL FORM:
• Add a class of .form-horizontal to the parent <form>
element.
• Add a class of .control-label to all <labels> elements.
Supported controls
• Inputs: Bootstrap supports all the HTML5 input types: text,
password, datetime, datetime-local, date, month, time, week,
number, email, url, search, tel, and color.
• Inputs will be fully styled if type is properly declared.
• Textarea : Form control supports multiples lines of text. Change
rows attribute as required.
• Checkboxes and Radio Buttons: Checkboxes or Radiobuttons
are used if you want the user to select any number of options
from a list of preset options.
• .checkbox /.radio - Default (stacked orientation).
• .checkbox - inline /.radio - inline - Controls are appear on the same line.
• .disabled – Disable the input.
Selects:
Single select form no.of options
• Select lists that are allow the user to pick from multiple options.
• 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 <p>
element.
• Focus state : We remove the default outline styles on some form
controls and apply a box- shadow in its place for :focus.
• Disabled state: Add the disabled Boolean attribute to an input.
Disabled inputs appear lighter and add a not-allowed cursor.
Syntax:<input class="form-control" id="disabledInput" type="text"
placeholder="Disabled input here..." disabled>
• Readonly state: add the readonly Boolean attribute on an input to
prevent modification of the input’s value. Read-only inputs appear lighter
(just like disabled inputs), but retain the standard cursor.
• Syntax:<input class="form-control" type="text" placeholder="Readonly
input here…" readonly>
• Help Text : A block of help text that breaks onto a new line and may
extend beyond one line.
• Syntax:<label class="sr-only" for="inputHelpBlock">Input with help
text</label>
<input type="text" id="inputHelpBlock" class="form-control" aria-
describedby="helpBlock">.
Validation states
• Bootstrap includes validation styles for error, warning, and success states
on form controls. To use, add .has-warning, .has-error, or .has-success to
the parent element. Any .control-label, .form-control, and .help-block within
that element will receive the validation styles.
Bootstrap Form Control States
•INPUT FOCUS - The outline of the input is removed and a box-shadow is applied
on focus
•DISABLED INPUTS - Add a disabled attribute to disable an input field
•DISABLED FIELDSETS - Add a disabled attribute to a fieldset to disable all
controls within
•READONLY INPUTS - Add a readonly attribute to an input to prevent user input
•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
•HIDDEN LABELS - Add a .sr-only class on non-visible labels
Control sizing
Set the heights of the input elements using classes likes .input-lg
and .input-sm.
Set the widths of elements using grid column classes like .col-lg-
* and .col-sm-*.
Height Sizing
Syntax:
Horizontal form group sizes:
Quickly size labels and form controls within .form-horizontal by
adding .form-group-lg or .form-group-sm.
Syntax:
Column sizing: Wrap inputs in grid columns, or any custom parent
element, to easily enforce desired widths.
Syntax:
Buttons
Here we will discuss about how to use Bootstrap button with examples. Anything that
is given a class of .btn will inherit the default look of a gray button with rounded corners.
Buttons
Button Tags
The button classes used as <a> ,<button> or <input> element.
Example :
Syntax:
<a class="btn btn-default" href="#" role="button">Link</a>
<button class="btn btn-default" type="submit">Button</button>
<input class="btn btn-default" type="button" value="Input">
<input class="btn btn-default" type="submit" value="Submit">
Button Options
Bootstrap provides seven styles of buttons:
Button Sizes
The classes that define the different sizes are:
.btn-lg
.btn-md
.btn-sm
.btn-xs
Create block level buttons—those that span the full width of a
parent— by adding .btn-block.
Active state:
Buttons will appear pressed (with a darker background, darker border, and
inset shadow) when active.
For <button> elements, this can be done by .active class.
Anchor element:
Add the .active class to <a> button.
Disabled state: Make buttons look unclickable by
fading them back with opacity.
Add the disabled attribute to the <button> buttons.
Images
Bootstrap provides three classes that can be used to apply
some simple styles to images:
•.img-rounded: class adds rounded corners to an image (IE8
does not support rounded corners)
•.img-circle: class shapes the image to a circle (IE8 does not
support rounded corners):
•.img-thumbnail: class shapes the image to a thumbnail.
Syntax:
<img src="..." alt="..." class="img-rounded">
<img src="..." alt="..." class="img-circle">
<img src="..." alt="..." class="img-thumbnail">
OUTPUT:
Responsive Images
• Images come in all sizes. So do screens. Responsive images
automatically adjust to fit the size of the screen.
• Create responsive images by adding an .img-responsive class to the
<img> tag. The image will then scale nicely to the parent element.
• The .img-responsive class applies display: block; and max-width: 100%;
and height: auto; to the image:
Syntax :
• <img src="..." class="img-responsive" alt="Responsive image">
Helper classes
• Add meaning through text-colors with the classes
• Example :
Bootstrap Programming.
Bootstrap Programming.
Bootstrap Programming.
Bootstrap Programming.
Bootstrap Programming.
Bootstrap Programming.
Syntax:
<p class="text-muted">...</p>
<p class="text-primary">...</p>
<p class="text-success">...</p>
<p class="text-info">...</p>
<p class="text-warning">...</p>
<p class="text-danger">...</p>
Contextual backgrounds
Add meaning through background-colors with the classes below. Links will darken on hover just
like text classes:
Syntax:
<p class="bg-primary">...</p>
<p class="bg-success">...</p>
<p class="bg-info">...</p>
<p class="bg-warning">...</p>
<p class="bg-danger">...</p>
Close icon :
Use the generic close icon for dismissing content like
modals and alerts. Use the class close to get the close icon.
Carets:
Use carets to indicate dropdown functionality and
direction. To get this functionality use the class caret with a
<span> element.
Quick floats
Float an element to the left or right with a class.
Syntax :<div class="pull-left">...</div>
<div class="pull-right">...</div>
Center content blocks: Sets an element to display:block and
center with margin-right:auto and margin-left:auto.
Syntax :<div class="center-block">...</div>
Showing and hiding content:
.show class Forces an element to be shown (display:block)
.hidden class Forces an element to be hidden (display:none)
Syntax:<div class="show">...</div>
<div class="hidden">...</div>
Responsive utilities
These classes are used to show and/or hide content by device
via media queries.
Available classes :
Use one or a combination of the available classes for toggling
content across viewport breakpoints.
As of v3.2.0, the .visible-*-* classes for each breakpoint come in
three variations, one for each CSS display property value listed
below.
E.g. for small (sm) screens, the available .visible-*-* classes are:
.visible-sm-block, .visible-sm-inline, and .visible-sm-inline-block.
The classes .visible-xs, .visible-sm, .visible-md, and .visible-lg are
deprecated as of v3.2.0. They are approximately equivalent to
.visible-*-block

More Related Content

What's hot

Bootstrap 5 basic
Bootstrap 5 basicBootstrap 5 basic
Bootstrap 5 basic
Jubair Ahmed Junjun
 
Bootstrap - Basics
Bootstrap - BasicsBootstrap - Basics
Bootstrap - Basics
FirosK2
 
Bootstrap PPT by Mukesh
Bootstrap PPT by MukeshBootstrap PPT by Mukesh
Bootstrap PPT by Mukesh
Mukesh Kumar
 
Bootstrap 5 ppt
Bootstrap 5 pptBootstrap 5 ppt
Bootstrap 5 ppt
Mallikarjuna G D
 
Images and Tables in HTML
Images and Tables in HTMLImages and Tables in HTML
Images and Tables in HTML
Aarti P
 
Bootstrap Framework
Bootstrap Framework Bootstrap Framework
Bootstrap Framework
Yaowaluck Promdee
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
Lanh Le
 
Bootstrap grids
Bootstrap gridsBootstrap grids
Bootstrap grids
Webtech Learning
 
Web Development using HTML & CSS
Web Development using HTML & CSSWeb Development using HTML & CSS
Web Development using HTML & CSS
Brainware Consultancy Pvt Ltd
 
Span and Div tags in HTML
Span and Div tags in HTMLSpan and Div tags in HTML
Span and Div tags in HTML
Biswadip Goswami
 
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
 
Flexbox and Grid Layout
Flexbox and Grid LayoutFlexbox and Grid Layout
Flexbox and Grid Layout
Rachel Andrew
 
Bootstrap PPT Part - 2
Bootstrap PPT Part - 2Bootstrap PPT Part - 2
Bootstrap PPT Part - 2
EPAM Systems
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
Shawn Calvert
 
Css ppt
Css pptCss ppt
Css ppt
Nidhi mishra
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTML
satvirsandhu9
 
Html5 semantics
Html5 semanticsHtml5 semantics
Html5 semantics
Webtech Learning
 
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
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
Dave Kelly
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
Sanjeev Kumar
 

What's hot (20)

Bootstrap 5 basic
Bootstrap 5 basicBootstrap 5 basic
Bootstrap 5 basic
 
Bootstrap - Basics
Bootstrap - BasicsBootstrap - Basics
Bootstrap - Basics
 
Bootstrap PPT by Mukesh
Bootstrap PPT by MukeshBootstrap PPT by Mukesh
Bootstrap PPT by Mukesh
 
Bootstrap 5 ppt
Bootstrap 5 pptBootstrap 5 ppt
Bootstrap 5 ppt
 
Images and Tables in HTML
Images and Tables in HTMLImages and Tables in HTML
Images and Tables in HTML
 
Bootstrap Framework
Bootstrap Framework Bootstrap Framework
Bootstrap Framework
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
 
Bootstrap grids
Bootstrap gridsBootstrap grids
Bootstrap grids
 
Web Development using HTML & CSS
Web Development using HTML & CSSWeb Development using HTML & CSS
Web Development using HTML & CSS
 
Span and Div tags in HTML
Span and Div tags in HTMLSpan and Div tags in HTML
Span and Div tags in HTML
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
Flexbox and Grid Layout
Flexbox and Grid LayoutFlexbox and Grid Layout
Flexbox and Grid Layout
 
Bootstrap PPT Part - 2
Bootstrap PPT Part - 2Bootstrap PPT Part - 2
Bootstrap PPT Part - 2
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Css ppt
Css pptCss ppt
Css ppt
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTML
 
Html5 semantics
Html5 semanticsHtml5 semantics
Html5 semantics
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 

Similar to Bootstrap Part - 1

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
Rajat Anand
 
Bootstrap day1
Bootstrap day1Bootstrap day1
Bootstrap day1
Rafi Haidari
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
AirticsTrainer
 
7.-Bootstrap-5-report powerpoint presentation
7.-Bootstrap-5-report powerpoint presentation7.-Bootstrap-5-report powerpoint presentation
7.-Bootstrap-5-report powerpoint presentation
JohnLagman3
 
BOTSTRAP.ppt
BOTSTRAP.pptBOTSTRAP.ppt
BOTSTRAP.ppt
068PrateekRathore
 
Twitter bootstrap training_session_ppt
Twitter bootstrap training_session_pptTwitter bootstrap training_session_ppt
Twitter bootstrap training_session_ppt
Radheshyam Kori
 
Module 3 - Intro to Bootstrap
Module 3 - Intro to BootstrapModule 3 - Intro to Bootstrap
Module 3 - Intro to Bootstrap
Katherine McCurdy-Lapierre, R.G.D.
 
Bootstrap [part 1]
Bootstrap [part 1]Bootstrap [part 1]
Bootstrap [part 1]
Ghanshyam Patel
 
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
RSolutions
 
Introduction to Responsive Web Development
Introduction to Responsive Web DevelopmentIntroduction to Responsive Web Development
Introduction to Responsive Web Development
Nikhil Baby
 
Boot strap introduction
Boot strap introductionBoot strap introduction
Boot strap introduction
abdalmohaymen alesmaeel
 
Boot strap
Boot strapBoot strap
Boot strap
Wahidullah Habib
 
Lecture-03.pptx
Lecture-03.pptxLecture-03.pptx
Lecture-03.pptx
HariKrishna559065
 
Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)
Thinkful
 
ViA Bootstrap 4
ViA Bootstrap 4ViA Bootstrap 4
ViA Bootstrap 4
imdurgesh
 
Intro To Twitter Bootstrap
Intro To Twitter BootstrapIntro To Twitter Bootstrap
Intro To Twitter Bootstrap
Ahmed Haque
 
Bootstrap Presentation Mitesh
Bootstrap Presentation MiteshBootstrap Presentation Mitesh
Bootstrap Presentation Mitesh
Mitesh Gandhi
 
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
 
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
Battle of the Front-End Frameworks: Bootstrap vs. FoundationBattle of the Front-End Frameworks: Bootstrap vs. Foundation
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
Rachel Cherry
 
Bootstrap
Bootstrap Bootstrap
Bootstrap
PumoTechnovation
 

Similar to Bootstrap Part - 1 (20)

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
 
Bootstrap day1
Bootstrap day1Bootstrap day1
Bootstrap day1
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
7.-Bootstrap-5-report powerpoint presentation
7.-Bootstrap-5-report powerpoint presentation7.-Bootstrap-5-report powerpoint presentation
7.-Bootstrap-5-report powerpoint presentation
 
BOTSTRAP.ppt
BOTSTRAP.pptBOTSTRAP.ppt
BOTSTRAP.ppt
 
Twitter bootstrap training_session_ppt
Twitter bootstrap training_session_pptTwitter bootstrap training_session_ppt
Twitter bootstrap training_session_ppt
 
Module 3 - Intro to Bootstrap
Module 3 - Intro to BootstrapModule 3 - Intro to Bootstrap
Module 3 - Intro to Bootstrap
 
Bootstrap [part 1]
Bootstrap [part 1]Bootstrap [part 1]
Bootstrap [part 1]
 
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
 
Introduction to Responsive Web Development
Introduction to Responsive Web DevelopmentIntroduction to Responsive Web Development
Introduction to Responsive Web Development
 
Boot strap introduction
Boot strap introductionBoot strap introduction
Boot strap introduction
 
Boot strap
Boot strapBoot strap
Boot strap
 
Lecture-03.pptx
Lecture-03.pptxLecture-03.pptx
Lecture-03.pptx
 
Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)
 
ViA Bootstrap 4
ViA Bootstrap 4ViA Bootstrap 4
ViA Bootstrap 4
 
Intro To Twitter Bootstrap
Intro To Twitter BootstrapIntro To Twitter Bootstrap
Intro To Twitter Bootstrap
 
Bootstrap Presentation Mitesh
Bootstrap Presentation MiteshBootstrap Presentation Mitesh
Bootstrap Presentation Mitesh
 
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
 
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
Battle of the Front-End Frameworks: Bootstrap vs. FoundationBattle of the Front-End Frameworks: Bootstrap vs. Foundation
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
 
Bootstrap
Bootstrap Bootstrap
Bootstrap
 

More from EPAM Systems

Complete Notes on Angular 2 and TypeScript
Complete Notes on Angular 2 and TypeScriptComplete Notes on Angular 2 and TypeScript
Complete Notes on Angular 2 and TypeScript
EPAM Systems
 
Css Complete Notes
Css Complete NotesCss Complete Notes
Css Complete Notes
EPAM Systems
 
Css3 Complete Reference
Css3 Complete ReferenceCss3 Complete Reference
Css3 Complete Reference
EPAM Systems
 
Bootstrap 4 ppt
Bootstrap 4 pptBootstrap 4 ppt
Bootstrap 4 ppt
EPAM Systems
 
HTML 5 Complete Reference
HTML 5 Complete ReferenceHTML 5 Complete Reference
HTML 5 Complete Reference
EPAM Systems
 
Jquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript BasicsJquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript Basics
EPAM Systems
 
Angular Js Get Started - Complete Course
Angular Js Get Started - Complete CourseAngular Js Get Started - Complete Course
Angular Js Get Started - Complete Course
EPAM Systems
 
Angular Js Advantages - Complete Reference
Angular Js Advantages - Complete ReferenceAngular Js Advantages - Complete Reference
Angular Js Advantages - Complete Reference
EPAM Systems
 
Html
HtmlHtml

More from EPAM Systems (9)

Complete Notes on Angular 2 and TypeScript
Complete Notes on Angular 2 and TypeScriptComplete Notes on Angular 2 and TypeScript
Complete Notes on Angular 2 and TypeScript
 
Css Complete Notes
Css Complete NotesCss Complete Notes
Css Complete Notes
 
Css3 Complete Reference
Css3 Complete ReferenceCss3 Complete Reference
Css3 Complete Reference
 
Bootstrap 4 ppt
Bootstrap 4 pptBootstrap 4 ppt
Bootstrap 4 ppt
 
HTML 5 Complete Reference
HTML 5 Complete ReferenceHTML 5 Complete Reference
HTML 5 Complete Reference
 
Jquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript BasicsJquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript Basics
 
Angular Js Get Started - Complete Course
Angular Js Get Started - Complete CourseAngular Js Get Started - Complete Course
Angular Js Get Started - Complete Course
 
Angular Js Advantages - Complete Reference
Angular Js Advantages - Complete ReferenceAngular Js Advantages - Complete Reference
Angular Js Advantages - Complete Reference
 
Html
HtmlHtml
Html
 

Recently uploaded

How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 

Recently uploaded (20)

How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 

Bootstrap Part - 1

  • 2. What is Bootstrap? • Bootstrap is  a  free,  open-source  and  is  the  most  popular  HTML,  CSS,  and  JavaScript  framework  developed  by  twitter  for  creating  responsive  web  applications.   • It can be used to create a web application built with  any  server  side  technologies  like  ASP.NET,  JAVA,  PHP etc. 
  • 3. History • Bootstrap was developed by Mark Otto and Jacob Thornton at  Twitter  (Twitter  Blueprint).  It  was  released  as  an  open  source  product in August 2011 on GitHub. • Version 2.0 supports Responsive web design. • Version 3.0 adopted a mobile- first design. • Version 4.0 alpha added Sass and Flexbox support.
  • 4. Why use Bootstrap? • Mobile first approach:  The  framework  consists  of  Mobile  first  styles  throughout  the entire library instead of in separate  files. • Browser Support: It is supported by all popular browsers. • Easy to get started:  With just the knowledge of HTML and CSS anyone  can get  started with Bootstrap.   • Responsive design: Bootstrap's  responsive  CSS  adjusts  to  Desktops,  Tablets  and Mobiles.  
  • 5. What Bootstrap Package Includes? • Scaffolding:  Bootstrap  provides  a  basic  structure  with  Grid System, link styles, background.   • CSS: Bootstrap  comes  with  feature  of  global  CSS  settings, fundamental HTML elements and enhanced with  extensible classes, and an advanced grid system.   • Components: Bootstrap contains over a dozen reusable  components  built  to  provide  iconography,  dropdowns,  navigation, alerts, popovers, and much more.  
  • 6. What Bootstrap Package Includes? • JavaScript Plugins:  Bootstrap  contains  a  variety  of  customized jQuery plugins. We can easily include them all, or  one by one.  • Customize: We  can  customize  Bootstrap's  components  and  jQuery plugins to get your very own version. • You  can  download  the  latest  version  of  Bootstrap  from  http://getbootstrap.com/. Download Bootstrap
  • 7. Bootstrap CDN Links  • <!-- Latest compiled and minified CSS --> • <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"  integrity="sha384- BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"  crossorigin="anonymous"> • <!-- Optional theme --> • <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap- theme.min.css" integrity="sha384- rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp"  crossorigin="anonymous"> • <!-- Latest compiled and minified JavaScript --> • <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"  integrity="sha384- Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"  crossorigin="anonymous"></script>
  • 8. Download Bootstrap Original source files are included as listed below. • Jquery.js • Bootstrap.min.css • Bootstrap.js Example: • <script type="text/javascript" src="js/jquery-3.1.1.js"></script>   • <script type="text/javascript" src="lib/bootstrap/js/bootstrap.js"></script> •  <link rel="stylesheet" type="text/css"  href="lib/bootstrap/css/bootstrap.css">
  • 11. Grid System Description • Grid System consists of 12 columns. • The Grid system is used for creating page layouts  through a series of rows and columns. • Rows must be placed with a .container (fixed –width) or  .container –fluid (full-width) for proper alignment and  padding. • Use rows to create horizontal group of columns. • Content should be placed within columns, and only  columns may be immediate children of rows.
  • 12. Grid System Structure col-*-1 col-*-1 col-*-1 col-*-1 col-*-1 col-*-1 col-*-1 col-*-1 col-*-1 col-*-1 col-*-1 col-*-1   col- * - 6  col-*-6 col- * - 4 col- * - 4 col- * - 4  col- * - 4 col- * - 8 col- * - 12
  • 13. Working of Bootstrap Grid System Grid systems are used for creating page layouts through a series of rows and  columns that house your content. Here's how the Bootstrap grid system works: •Rows must be placed within a .container class for proper alignment and padding. •Use rows to create horizontal groups of columns. •Content should be placed within columns, and only columns may be immediate  children of rows. •Predefined grid classes like .row and .col-*-* are available for quickly making grid  layouts.  •Columns create gutters (gaps between column content) via padding. That padding  is offset in rows for the first and last column via negative margin on .rows. •Grid columns are created by specifying the number of twelve available columns  you wish to span.  •If more than 12 columns are placed within a single row, each group of extra  columns wrap onto a new line.
  • 15. Grid options The  following  table  summarizes  aspects  of  how  Bootstrap  grid  system works across multiple devices:
  • 17. BASIC GRID STRUCTURE  Let us see some simple grid examples: • Example: Stacked-to-horizontal  • Example: Medium and Large Device  • Example: Mobile, tablet, desktops
  • 19. Stacked-to-horizontal • Container class is added to ensure the proper centering and maximum width of the layout. • Once container is added, we need to think in terms of rows. Add <div class = "row">...</div> and columns <div class = "col-md-6"></div> inside the rows • In the example we have two columns each made of 6 units wide.(6+6 =12).
  • 20. Bootstrap Grid System Example: Medium and Large Device • Here we have used md and lg column groups for support of medium and large size devices. • For medium size devices, 2 div’s will go from 50% by 50% of split. • For large size devices, 2 div’s will go form 33% by 66% of spilt.
  • 21. Bootstrap Grid System Example: Mobile, Tablet, Desktops Now this gives us 3 different column layouts <div class="container"> •On a phone, it will be 25% on the left, and 75% on the right. •On a tablet, it will be 50%/50% again, •Large viewport, it will be 33%/66%. •3 different layouts for each of the 3 responsive sizes.
  • 22. Column Wrapping • More than 12 columns are placed within a single row, Each group of extra columns will wrap onto a new line.
  • 23. Responsive column resets • Assume that four tiers of grids available, we run into issues where at certain breakpoints. • Columns are don’t clear quite right as one is taller than the other. • To fix this issue, We can use class .clearfix.
  • 24. Offsetting columns • It can be used for push columns over for more spacing. • .col-md-offset-* class increases the left margin of a column range form 1 to 11. • Offset class moves the content to the right depending upon the given value.
  • 25. Nesting columns • To nest your content with the default grid, add a new row and set of columns within an existing column. • Nested rows should include a set of columns that add up to 12.
  • 26. Column Ordering • To write columns in an order and show them in one another one by using push and pull modifier classes where ranges form 1 to 11. • Syntax: • .col-md-push-* • .col-md-pull-*
  • 27. Typography • Bootstrap uses Helvetica Neue, Helvetica, Arial, and sans-serif in its default font stack. Using typography feature of Bootstrap you can create headings, paragraphs, lists and other inline elements. • Default font-size is 14px. with a line –height of 1.428.(Applied to <body> and all paragraphs). • Paragraph <p> elements have a bottom margin that equals half their computed line- height (10px by default). Headings: All HTML headings (h1 to h6) are styled in Bootstrap. An example is as shown below: <h1>I'm Heading1 h1</h1> Semibold 36px <h2>I'm Heading2 h2</h2> Semibold 30px <h3>I'm Heading3 h3</h3> Semibold 24px <h4>I'm Heading4 h4</h4> Semibold 18px <h5>I'm Heading5 h5</h5> Semibold 14px <h6>I'm Heading6 h6</h6> Semibold 12px
  • 28. Typography INLINE SUBHEADINGS: To add an inline subheading to any of the headings, simply add <small> around any of the elements or add .small class and you will get smaller text in a lighter color as shown in the example below: <h1>I'm Heading1 h1. <small>I'm secondary Heading1 h1</small></h1> <h2>I'm Heading2 h2. <small>I'm secondary Heading2 h2</small></h2> <h3>I'm Heading3 h3. <small>I'm secondary Heading3 h3</small></h3> <h4>I'm Heading4 h4. <small>I'm secondary Heading4 h4</small></h4> <h5>I'm Heading5 h5. <small>I'm secondary Heading5 h5</small></h5> <h6>I'm Heading6 h6. <small>I'm secondary Heading1 h6</small></h6>
  • 29. Inline text elements Marked Text: Highlight the text using <mark> tag. Deleted Text: Blocks of text have been deleted using <del> tag. Strikethrough Text: Blocks of text that are no longer relevant using the <s> tag. Inserted text: The <ins> tag defines a text that has been inserted into a document. Underline Text: The <u>tag defines a underline text. Small Text: Use the <small> tag to set the text at 85% the size of the parent. Bold: Text with a heavier font-weight can be done by <strong> tag. Italics: For Emphasizing of text with italics done by <em> tag.
  • 30. Alignment classes Realign text can be done with text alignment classes. •text-left class used for Left aligned text. •text-right class used for Right aligned text. •text-center class used for Center aligned text. •text-justify class used for Justified text. •text-nowrap class used for No wrap text.
  • 31. Transformation classes Transform text by using text capitalization classes. •text-lowercase class used for Lowercased text. •text-uppercase class used for Uppercased text. •text-capitalize class used for Capitalized text.
  • 32. Abbreviations Basic Abbreviation :An abbreviation of the word attribute is attr. Syntax :<abbr title="attribute">attr</abbr> Initialism: Add .Initialism to an abbreviation for a slightly smaller font-size. Syntax :<abbr title="HyperText Markup Language" class="initialism">HTML</abbr> Addresses To represent contact information by using <address> tag. Syntax : <address>……. </address>
  • 33. Blockquotes ` Blocks of content from another source within your document. Default blockquote The blockquote element is used to present content from another source using <p> tag. Block quote options Naming a source : Style and content changes for simple variations on a standard <bolckquote>.Add a <footer> for identifying the source. Alternate Displays:Add .bolckquote-reverse class right –aligned content. Syntax:<blockquote class="blockquote-reverse">
  • 34. Lists • Unordered :A list of items in which the order does not explicitly matter. Syntax : <ul> <li>...</li> </ul> • Ordered :A list of items in which the order does explicitly matter. Syntax : <ol> <li>...</li> </ol> • Unstyled: Removes the Default list-style and left margin for list items. It only applies to immediate children of list items. Syntax:<ul class="list-unstyled"> <li>...</li> </ul>
  • 35. • Inline: Place all list items on a single line with padding. Syntax :<ul class="list-inline"> <li>...</li> </ul> • Description: A list of terms with their associated descriptions. Syntax:<dl> <dt>...</dt> <dd>...</dd> </dl> Horizontal description Syntax:<dl class="dl-horizontal"> <dt>...</dt> <dd>...</dd> </dl>
  • 36. Tables Basic Table: If you want a nice, basic table style with just some light padding and horizontal dividers, add the base class of .table to any table . Syntax: <table class="table"> ………….. </table>
  • 37. Tables STRIPED TABLE : By adding the .table-striped class, you will get zebra-striping to any rows within the <tbody>. Syntax: <table class="table table-striped"> ………… </table>
  • 38. Tables BORDERED TABLE : By adding the .table-bordered class, you will get borders surrounding every element and rounded corners around the entire table. Syntax: <table class="table table-bordered"> …………. </table>
  • 39. Tables HOVER TABLE : By adding the .table-hover class, a light gray background will be added to rows while the cursor hovers over them. Syntax: <table class="table table-hover"> ……………. </table>
  • 40. Tables Condensed table By adding the .table-condesend class, to make tables more compat by cutting cell padding in half. Syntax: <table class="table table-condensed"> ……………. </table>
  • 41. Contextual classes Use contextual classes to color table rows or individual cells. Class Description .active Applies the hover color to a particular row or cell .success Indicates a successful or positive action .info Indicates a neutral informative change or action .warning Indicates a warning that might need attention .danger Indicates a dangerous or potentially negative action
  • 42. Tables RESPONSIVE TABLES: By wrapping any .table in .table-responsive class, you will make the table scroll horizontally up to small devices (under 768px). When viewing on anything larger than 768px wide, you will not see any difference in these tables. Syntax: <div class="table-responsive"> <table class="table"> …………. </table> </div>
  • 43. Forms Form controls automatically receive some global styling with Bootstrap: All Textual <input>, <textarea>, and <select> elements with class .form-control have a width of 100%. Form Layouts: Bootstrap provides you with following types of form layouts: • Vertical (default) form • Inline form • Horizontal form
  • 44. Forms VERTICAL( OR BASIC) FORM: • Add a role form to the parent <form> element. • Wrap labels and controls in a <div> with class .form-group. This is needed for optimum spacing. • Add a class of .form-control to all textual <input>, <textarea>, and <select> elements.
  • 45. Forms INLINE FORM : To create a form where all of the elements are inline, left aligned and labels are alongside, add the class .forminline to the <form> tag. Note: This only applies to forms within viewports that are at least 768px wide!
  • 46. Forms HORIZONTAL FORM: • Add a class of .form-horizontal to the parent <form> element. • Add a class of .control-label to all <labels> elements.
  • 47. Supported controls • Inputs: Bootstrap supports all the HTML5 input types: text, password, datetime, datetime-local, date, month, time, week, number, email, url, search, tel, and color. • Inputs will be fully styled if type is properly declared. • Textarea : Form control supports multiples lines of text. Change rows attribute as required. • Checkboxes and Radio Buttons: Checkboxes or Radiobuttons are used if you want the user to select any number of options from a list of preset options.
  • 48. • .checkbox /.radio - Default (stacked orientation). • .checkbox - inline /.radio - inline - Controls are appear on the same line. • .disabled – Disable the input. Selects: Single select form no.of options
  • 49. • Select lists that are allow the user to pick from multiple options. • 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 <p> element.
  • 50. • Focus state : We remove the default outline styles on some form controls and apply a box- shadow in its place for :focus. • Disabled state: Add the disabled Boolean attribute to an input. Disabled inputs appear lighter and add a not-allowed cursor. Syntax:<input class="form-control" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>
  • 51. • Readonly state: add the readonly Boolean attribute on an input to prevent modification of the input’s value. Read-only inputs appear lighter (just like disabled inputs), but retain the standard cursor. • Syntax:<input class="form-control" type="text" placeholder="Readonly input here…" readonly> • Help Text : A block of help text that breaks onto a new line and may extend beyond one line. • Syntax:<label class="sr-only" for="inputHelpBlock">Input with help text</label> <input type="text" id="inputHelpBlock" class="form-control" aria- describedby="helpBlock">.
  • 52. Validation states • Bootstrap includes validation styles for error, warning, and success states on form controls. To use, add .has-warning, .has-error, or .has-success to the parent element. Any .control-label, .form-control, and .help-block within that element will receive the validation styles.
  • 53. Bootstrap Form Control States •INPUT FOCUS - The outline of the input is removed and a box-shadow is applied on focus •DISABLED INPUTS - Add a disabled attribute to disable an input field •DISABLED FIELDSETS - Add a disabled attribute to a fieldset to disable all controls within •READONLY INPUTS - Add a readonly attribute to an input to prevent user input •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 •HIDDEN LABELS - Add a .sr-only class on non-visible labels
  • 54. Control sizing Set the heights of the input elements using classes likes .input-lg and .input-sm. Set the widths of elements using grid column classes like .col-lg- * and .col-sm-*. Height Sizing
  • 55. Syntax: Horizontal form group sizes: Quickly size labels and form controls within .form-horizontal by adding .form-group-lg or .form-group-sm.
  • 56. Syntax: Column sizing: Wrap inputs in grid columns, or any custom parent element, to easily enforce desired widths. Syntax:
  • 57. Buttons Here we will discuss about how to use Bootstrap button with examples. Anything that is given a class of .btn will inherit the default look of a gray button with rounded corners.
  • 58. Buttons Button Tags The button classes used as <a> ,<button> or <input> element. Example : Syntax: <a class="btn btn-default" href="#" role="button">Link</a> <button class="btn btn-default" type="submit">Button</button> <input class="btn btn-default" type="button" value="Input"> <input class="btn btn-default" type="submit" value="Submit">
  • 59. Button Options Bootstrap provides seven styles of buttons:
  • 60. Button Sizes The classes that define the different sizes are: .btn-lg .btn-md .btn-sm .btn-xs
  • 61. Create block level buttons—those that span the full width of a parent— by adding .btn-block. Active state: Buttons will appear pressed (with a darker background, darker border, and inset shadow) when active. For <button> elements, this can be done by .active class.
  • 62. Anchor element: Add the .active class to <a> button. Disabled state: Make buttons look unclickable by fading them back with opacity. Add the disabled attribute to the <button> buttons.
  • 63. Images Bootstrap provides three classes that can be used to apply some simple styles to images: •.img-rounded: class adds rounded corners to an image (IE8 does not support rounded corners) •.img-circle: class shapes the image to a circle (IE8 does not support rounded corners): •.img-thumbnail: class shapes the image to a thumbnail.
  • 64. Syntax: <img src="..." alt="..." class="img-rounded"> <img src="..." alt="..." class="img-circle"> <img src="..." alt="..." class="img-thumbnail"> OUTPUT:
  • 65. Responsive Images • Images come in all sizes. So do screens. Responsive images automatically adjust to fit the size of the screen. • Create responsive images by adding an .img-responsive class to the <img> tag. The image will then scale nicely to the parent element. • The .img-responsive class applies display: block; and max-width: 100%; and height: auto; to the image: Syntax : • <img src="..." class="img-responsive" alt="Responsive image">
  • 66. Helper classes • Add meaning through text-colors with the classes • Example : Bootstrap Programming. Bootstrap Programming. Bootstrap Programming. Bootstrap Programming. Bootstrap Programming. Bootstrap Programming. Syntax: <p class="text-muted">...</p> <p class="text-primary">...</p> <p class="text-success">...</p> <p class="text-info">...</p> <p class="text-warning">...</p> <p class="text-danger">...</p>
  • 67. Contextual backgrounds Add meaning through background-colors with the classes below. Links will darken on hover just like text classes: Syntax: <p class="bg-primary">...</p> <p class="bg-success">...</p> <p class="bg-info">...</p> <p class="bg-warning">...</p> <p class="bg-danger">...</p>
  • 68. Close icon : Use the generic close icon for dismissing content like modals and alerts. Use the class close to get the close icon. Carets: Use carets to indicate dropdown functionality and direction. To get this functionality use the class caret with a <span> element.
  • 69. Quick floats Float an element to the left or right with a class. Syntax :<div class="pull-left">...</div> <div class="pull-right">...</div> Center content blocks: Sets an element to display:block and center with margin-right:auto and margin-left:auto. Syntax :<div class="center-block">...</div> Showing and hiding content: .show class Forces an element to be shown (display:block) .hidden class Forces an element to be hidden (display:none) Syntax:<div class="show">...</div> <div class="hidden">...</div>
  • 70. Responsive utilities These classes are used to show and/or hide content by device via media queries. Available classes : Use one or a combination of the available classes for toggling content across viewport breakpoints.
  • 71. As of v3.2.0, the .visible-*-* classes for each breakpoint come in three variations, one for each CSS display property value listed below. E.g. for small (sm) screens, the available .visible-*-* classes are: .visible-sm-block, .visible-sm-inline, and .visible-sm-inline-block. The classes .visible-xs, .visible-sm, .visible-md, and .visible-lg are deprecated as of v3.2.0. They are approximately equivalent to .visible-*-block

Editor's Notes

  1. Explain about program
  2. Explain about program
  3. Explain about program
  4. 4th program
  5. Program 5 Explain about xs devices.
  6. Program 6
  7. Explain Program 7
  8. Explain program 8.
  9. Explain program 9
  10. Program 10
  11. Program 11
  12. Program 12
  13. Program 12
  14. Program 14
  15. Program 15
  16. Program 15