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 header layout for the Home page

In this section, we are going to create the top structure where we have our logo on the left and form fields on the right. The following is what we are going to build:

Let's go ahead and get into VS Code and start working on the site. First, we need to import the template into our project. Open your integrated terminal and just do ls. We want to make sure we are in the root folder because sometimes the integrated terminal might be in a different directory, so you always want to make sure you're in the same folder. To start, we are going to remove Hello, world! from our index.html, which came as a template, and we're going to start creating that top structure.

We're going to get a div tag with class="container", and start wrapping everything inside of this container. We're going to have class=&quot...