Bootstrap 4 - Environment Setup
Bootstrap 4 is the latest version of Bootstrap. In this section, it is shown how to download and setup Bootstrap 4.
There are two ways of using Bootstrap 4 in the Website:
The Bootstrap 4 can be used in the website by inserting it from the CDN which is short for - Content Delivery Network.
The code given below can be used to compile the Bootstrap's CDN of CSS and JS in the project.
There are some components that extensively require the jQuery. Following are some of these components -
Downloading Bootstrap 4:
The Bootstrap 4 can be downloaded from this link given below: https://getbootstrap.com/docs/4.0/getting-started/download/.
Once the link has been opened, a window will open:
Precompiled Bootstrap 4
Once the compiled version Bootstrap 4 is downloaded, extract the ZIP file, and you will see the following file/directory structure -
There are compiled CSS and JS (bootstrap.*), as well as compiled and minified CSS and JS (bootstrap.min.*).
Bootstrap 4 Source Code
Creating the First Web Page with the help of Bootstrap 4:
The example given below can be used to create a very simple and easy to understand web page for Bootstrap 4 -
Example:Test it Now
The following output will be visible, after compiling this code: