CDBBB 4521711186739687
CDBBB 4521711186739687
CDBBB 4521711186739687
WEB
TECHNOLOGIES
Browser Support
Browser Support
Easy to Get
Started
With just the knowledge of HTML and CSS, anyone
can get started with Bootstrap. Also, the Bootstrap
official site has good documentation.
Responsive design
Easy to Get
Started
With just the knowledge of HTML and CSS, anyone
can get started with Bootstrap. Also, the Bootstrap
official site has good documentation.
Responsive design
EITHER:
OR:
• Also, most CDN's will make sure that once a user requests
a file from it, it will be served from the server closest to
them, which also leads to faster loading time.
Create Web Page with Bootstrap (1)
• Bootstrap uses HTML elements and CSS properties that require the HTML5
doctype.
• Always include the HTML5 doctype at the beginning of the page, along with
the lang attribute and the correct character set:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
</html>
Create Web Page with Bootstrap (2)
Bootstrap is mobile-first
Bootstrap 3 is designed to be responsive to mobile
devices. Mobile-first styles are part of the core
framework.
Create Web Page with Bootstrap (2)
Bootstrap is mobile-first
To ensure proper rendering and touch zooming, add
the following <meta> tag inside the <head> element:
Bootstrap is mobile-first
• The width=device-width part sets the width of the
page to follow the screen-width of the device (which
will vary depending on the device).
• The initial-scale=1 part sets the initial zoom level
when the page is first loaded by the browser.
Create Web Page with Bootstrap (3)
Containers
• Bootstrap also requires a containing element to wrap site
contents.
Containers
• Bootstrap also requires a containing element to wrap site
contents.
• sm (for tablets)
• md (for desktops)
<!DOCTYPE html>
<html lang="en">
<head><meta http-equiv="Content-Type"
content="text/html; charset=windows-1252">
<title>Any title</title>
</head>
<body>
//write code
</body>
</html>
First Bootstrap Example
In Bootstrap 3, mobile-first
Mobile-first
3 approach styles are part of the core
framework
EITHER
Download Bootstrap from getbootstrap.com
• If you want to download and host Bootstrap
yourself, go to getbootstrap.com, and follow the
instructions there.
Where to Get Bootstrap?
OR
Include Bootstrap from a CDN
• If you don't want to download and host Bootstrap
yourself, you can include it from a CDN (Content
Delivery Network).
• MaxCDN provides CDN support for Bootstrap's
CSS and JavaScript. You must also include jQuery.
Bootstrap Grid
• xs (for phones)
• sm (for tablets)
• md (for desktops)
• lg (for larger desktops)
<div class="row">
<div class="col-*-*"></div>
</div>
<div class="row">
<div class="col-*-*"></div>
<div class="col-*-*"></div>
<div class="col-*-*"></div>
</div>
<div class="row">
...
</div>
Instructions while creating a Bootstrap
Grid