In our previous example, we have discussed bootstrap features and what makes the CSS framework widely popular. Now let us get our hands on the next step to build our first bootstrap application. For building bootstrap application, first you need to download the required bootstrap framework files.
To work with Bootstrap you need to include
bootstrap.min.js files to your HTML page. This can be done in two ways. Either you can download a copy of Bootstrap framework and host the required files on your web server or directly use the Bootstrap’s CDN files.
I personally prefer to use the bootstrap CDN, as the CDN copies are always up to date.
Linking Bootstrap from CDN
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
Downloading Bootstrap Bundle
There are two versions available for download, compiled Bootstrap and Bootstrap source files. You can download Bootstrap files from here.
Get the precompiled bundle
Download the precompiled bootstrap bundle from here.
This will download the compiled and minified
Get the full source code:
Download the bootstrap complete source code bundle from here.
This will download the full source code bundle of Bootstrap. You have to install and compile the source code before actually using this. Here are the files and folders that come with the source code bundle.
In case of a downloaded local copy of Bootstrap, we include the following files to your HTML HEAD section.