Bootstrap 3 - SPLessons

Bootstrap Installation

Chapter 4

SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

Bootstrap Installation

Bootstrap Installation

shape Description

Setting up Bootstrap environment is very easy. Bootstrap Installation chapter explains about how to download & install Bootstrap and the file-structure of Bootstrap.

Bootstrap Download

shape Description

Bootstrap can be downloaded from

When clicked on the download button, the page will be directed to the below page which consists of three options:

Download Bootstrap – All the minified and pre-compiled versions of Bootstrap, JavaScript, CSS and fonts will be found here. In the latest versions, documentation or original src files are included.

Download Source – JavaScript source code and latest Bootstrap LESS can be obtained by clicking this button.

Download Sass – All the latest versions from LESS to Sass can be obtained if this button is clicked. These files can be included in Compass and Sass projects.

In this tutorial, pre-compiled version will be used to avoid addition of separate files every time.

Bootstrap File Structure

shape Description

Once the download of bootstrap zip file is completed and extracted, you will get three files such as:

  • css
  • fonts
  • js

The below is the structure of Bootstrap consisting of minified version, themes, fonts, and glyphicons.

Bootstrap Basic Template

shape Description

Bootstrap basic HTML template can be obtained by clicking on “Basic Template” in the official page of Bootstrap. It will be as follows.

<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>Bootstrap 101 Template</title>
    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src=""></script>
      <script src=""></script>
    <h1>Hello, world!</h1>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src=""></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>

The output for above one will be as follows.

In the above example, the below code will be used to add responsiveness to an application. However, this will be explained in further lessons.

<meta name="viewport" content="width=device-width, initial-scale=1">


shape Key Points

  • Bootstrap can be downloaded from
  • Minified versions and pre-defined source code can avoid the addition of external files.