Bootstrap Your Website with Bootstrap
Bootstrap is one of the most popular front-end frameworks with responsive design being kept in mind. It may sound intimidating first, but it is in fact just a set of CSS classes and HTML elements that you use after including the necessary CSS files and JavaScript filesBootstrap.
The good thing for Bootstrap is that it is actually very easy to use.
After downloading Bootstrap, you can see two folders: css
and js
(for bootstrap version 4). Since Bootstrap depends on jQuery, so you also need jQuery in order to use Bootstrap. As Bootstrap is going from version 3 to version 4, we are talking about version 4 in this post. The following code shows how you can bootstrap your web page using the Bootstrap framework.
The above code is the starter template for Bootstrap version 4. The main difference of the code above compared with that of version 3 are added viewport
meta tag and added tether.min.js
.
There are many styles, components and themes in Bootstrap. The one that you should know best is grid based layout for responsive design. The default grid layout is a 12-column based grid system. You can customize it to a different number of columns and different width for gutters etc.. Using it is as simple as adding the corresponding classes like follows:
There are so many components in Bootstrap that we cannot describe them all within this one single post. Here I just give a typical navbar
example as follows:
Although you can use different components and styles provided by Bootstrap, you can also customize it using your own CSS styles or JavaScript codes to avoid your page looking like another page. So Bootstrap is really flexible.
As a front-end developer, you will use Bootstrap somewhere eventually. So getting used to Bootstrap is really important. And the only way to get professional with it is using it in your own projects.