Overview of the project, it's contents, and how to get started with a simple template.
Before getting started, you need the following:
When ready, proceed to the next section, File structure.
Once unzipped, the structure of Bootstrap’s files looks like this:
This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (bootstrap.*
), as well as compiled and minified CSS and JS (bootstrap.min.*
). The image files are compressed using ImageOptim, a Mac app for compressing PNGs.
Bootstrap comes equipped with CSS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the Bootstrap documentation:
Together, the Components and Javascript plugins sections provide the following interface elements:
In future guides, we may walk through these components individually in more detail. Until then, look for each of these in the documentation for information on how to utilize and customize them.
Now that we’ve got the basic information on Bootstrap out of the way, we can focus on getting started. To do that, we’ll utilize a basic HTML template that includes everything we’ve mentioned in the File structure.
As previously mentioned, we won’t cover the basics of writing HTML and CSS here. Instead, we’ll leapfrog through various points in web development complexity to give you the broadest and most complete overview.
Now, here’s a look at a typical HTML file:
<html> <head> <title>Bootstrap 101 Template</title> </head> <body> <h1>Hello, world!</h1> </body> </html>
To make this a Bootstrapped template, just include the appropriate CSS and JS files:
<html> <head> <title>Bootstrap 101 Template</title> <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet"> <script src="js/bootstrap.min.js"></script> </head> <body> <h1>Hello, world!</h1> </body> </html>
And you’re set. With those two files added, you can begin to write Bootstrap-friendly HTML, CSS, and JS to build any site or application you like. Head to the Bootstrap docs for information, examples, and even code snippets for the Bootstrap grid system, base HTML styles, components, and even responsive features.