It is very easy to setup and start using Bootstrap. This chapter will explain how to download and setup Bootstrap.
You can download the latest version of Bootstrap from http://getbootstrap.com/. When you click on this link, you will get to see a screen as below -
Here you can see two buttons -
Download Bootstrap − Clicking this, you can download the precompiled and minified versions of Bootstrap CSS, JavaScript, and fonts. No documentation or original source code files are included..
Download Source − Clicking this, you can get the latest Bootstrap LESS and JavaScript source code directly from GitHub.
Add the HTML 5 doctype : Bootstrap uses HTML elements and CSS properties, so you have to add the HTML 5 doctype at the beginning of the page with lang attribute and correct character set.
See this example:
Bootstrap is mobile friendly: Bootstrap 3 is designed to be responsive to mobile devices.
Mobile-first styles are part of the core framework of Bootstrap.You have to add the following <meta> tag inside the <head> element for proper rendering and touch zooming:
Note: The "width=device-width" part is used to set the width of the page to follow the screen-width of the device (vary according to the devices).
The initial-scale=1 part is used to set the initial zoom level when the page is first loaded by the browser.