Book Image

Learning Bootstrap 4 by Building Projects

Book Image

Learning Bootstrap 4 by Building Projects

Overview of this book

Bootstrap, the world’s most popular frontend framework, is an open source toolkit for building web applications with HTML, CSS, and JavaScript. Learning Bootstrap 4 by Building Projects covers the essentials of Bootstrap 4 along with best practices. The book begins by introducing you to the latest features of Bootstrap 4. You will learn different elements and components of Bootstrap, such as the strict grid system, Sass, which replaced Less, flexbox, Font Awesome, and cards. As you make your way through the chapters, you will use a template that will help you to build different kinds of real-world websites, such as a social media website, a company landing page, a media hosting website, and a profile page, with ease. By the end of this book, you will have built websites that are visually appealing, responsive, and robust.
Table of Contents (9 chapters)
Free Chapter
1
Introduction

Creating the tabs

In the previous section, we covered the navigation bar and the carousel. Now, we will be creating the tabs that will have all the images. This section will come just under the carousel that we created. Let's look at what we are targeting:

As you can see, we have three tabs, one that contains all the photos, and then these photos are categorized in the other two tabs. So, let's get started. In our Visual Studio Code, where the carousel section ends, we are going to add one more section tag and give it id="maintabs". Now, looking at the layout, we can see there are two rows, and in each row, we are going to have three columns. We are going to create the All Photos tab now, the other two tabs will follow the same approach. Let's look at the code for the tabs now:

<section id="maintabs">
<div class="container...