At the end of this Tutorial you will be able to:
You can view a finished version of the basic Bootstrap web page you will create in this Tutorial by clicking the link below. The finished web page will open in a new tab of your web browser.
Creating a sub-folder for your Bootstrap files
Creating a basic Bootstrap web page
Adding a title to the <head> of your web page
Adding a description to the <head> of your web page
Adding the Bootstrap CSS link to the <head> of your web page
Adding the three Bootstrap JavaScript links the end of your web page
Bootstrap is a free framework that enables web designers to build web pages more quickly and easily. The current version of Bootstrap is Bootstrap 4.5. A newer version, Bootstrap 5, is due for release later in 2021.
Bootstrap offers a wide range of easy-to-use user interface components for working with common web page elements such as typography, forms, buttons and navigation menus.
Before working with Bootstrap-based web pages, let's begin by creating a sub-folder on your computer for holding your Bootstrap-related files. Here are the steps:
Your complete folder and sub-folder structure should now look as shown below.
That's it. You have now created an organised, tidy folder structure for holding your Bootstrap-related files.
Let’s create a new web page – that is, an HTML file. Here are the steps:
VS Code creates a new, empty file in a new tab within your VS Code window.
It suggests the name of Untitled-1 for your new file.
Let’s give your file a new name and save it as an HTML file.
Because you have included the filename extension (.html), you can ignore the second box named Save as type.
After typing the name of your file, click the Save button.
VS Code displays the name of your bootstrap.html file at the top of the screen.

After one or a few seconds, the Emmet Abbreviation menu appears. Click on the first option from the menu. Or press the Enter key.
VS Code now fills your new file with the basic HTML structure.

When you look at the HTML of your web page on the VS Code screen, you can now see visually ‘at a glance‘ where the <head> ends and the <body> begins.

That’s it. You have successfully created a basic, empty web page.
Now you will update the title to your web page.
<title>Document</title>
<title>Bootstrap Template</title>
Now you will add a summary description of the contents of your web page.
Your web page should now look as shown below.

<meta name="description" content="A basic Bootstrap web page.">

All done. You have now provided a title and description to your basic web page.
Now you will add a link to the Bootstrap stylesheet CSS file (version 4).

<!-- Bootstrap CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">

You can also add one or more other CSS stylesheets to the <head> of a Bootstrap web page.
When you do, you will always add the CSS file(s) after the Bootstrap CSS file. See the example below.
Finally, you will add the links to the JavaScript files required by Bootstrap to work.
<h1>Hello, world!</h1> <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Nulla exercitationem ipsum enim natus soluta rem eos? In dicta eius, reprehenderit illo odit mollitia nulla ex et odio minus expedita numquam!</p>See below.


<!-- jQuery library --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <!-- Popper JS --> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script> <!-- Latest compiled JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>Your web page should now look as shown below.

That’s it. You have now created a basic Bootstrap page that you can use as a foundation for building a wide range of web pages with various layouts and styles.
If you display your bootstrap.html web page in your web browser, it should look as shown below.
Click the link below to see an example of the finished version of the basic Bootstrap web page.
Below you can see where your basic bootstrap.html file is stored within the folder structure on your computer.
Note that you do not need any other files on your computer to create a basic Bootstrap-based web page.
The Bootstrap CSS file and three Javascript files are all hosted online on another web server.
Follow these steps below to upload your entire Bootstrap folder to your website on GitHub.




Your uploaded web page is published on GitHub at a web address similar to the following, where username is the username you have chosen for your GitHub account:
https://username.github.io/bootstrap/bootstrap.html
It may take a few minutes for your uploaded files to appear on GitHub.
Bootstrap 4: Get Started
From From W3schools
Video: Bootstrap Beginner Crash Course
From Traversy Media YouTube Channel
Learn Bootstrap 4 for free through ten interactive screencasts
From Scrimba
Return to Contents.