Bootstrap consists of a CSS file and a JS file - actually the JS file is only used in some cases but it is good practice to include it. The Bootstrap JS libraries require jQuery, so you need to include a call to that as well. Typically you place the JS file calls at the bottom of the page. 90% of the time this works just fine. Occasionally you will run into a situation where the JS needs to be at the top of the page - just move the files up as needed.
Below, you will see the code for a starter template in Bootstrap. The calls to the CSS and JS files are using our AFIT Scripts library so you don't even need to download anything.
Let's start by creating a template we can use for all of the lessons I post here:
Create a new page in your editor
Copy the code below and replace the contents of the new file with this new code
Name the file blank.htm
Make a copy of blank.htm and rename the copy containers.htm
In order for your site/app to work properly on mobile devices, you have to make sure the viewport META tag is in your document. Without that tag, your pages will not scale up on small screens!