Bootstrap Notes
Bootstrap Notes
What is Bootstrap
• Bootstrap is an Open Source product
• Developed by Mark Otto and Jacob Thornton,
were both employees at Twitter.
• To standardize the front end toolsets of
engineers across the company
• Bootstrap launched in August, 2011
Before Bootstrap
• Engineers at Twitter used almost any library
they were familiar with to meet front-end
requirements.
• More inconsistent
• Difficult to scale and maintain
• Bootstrap was the solution
Bootstrap features
• An entirely CSS driven project
• Include JavaScript plugins
• Icons that go hand in hand with forms and
buttons.
• At its base, it allows for responsive web design,
and features a robust 12 column, 940px wide grid.
• One of the highlights is the build tool on
[Bootstrap’s](http://getbootstrap.com) website
where you can customize the build to suit your
needs, choosing what CSS and Javascript features
that you want to include on your site.
• With Bootstrap, you just need to include the
bootstrap.css CSS file, and optionally the
bootstrap.js JavaScript file into your website
Bootstrap File Structure
• The Bootstrap download includes three
folders: css, js, and img.
• For simplicity, add these to the root of your
project.
• Included are also minified versions of the CSS
and Javascript.
• Both the uncompressed and the minified
versions do not need to be included.
Basic HTML Template
• Basic HTML Layout
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap 101 Template</title>
</head>
<body>
<h1>Hello, world!</h1>
</body>
</html>.
Basic Bootstrap Template.
• With Bootstrap, we simply include the link to the
CSS stylesheet, and the Javascript.
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap 101 Template</title>
<link href="css/bootstrap.min.css"
rel="stylesheet">
</head>
<body>
<h1>Hello, world!</h1>
<script src="js/bootstrap.min.js"></script>
</body>
</html>