We can say like Bootstrap is a framework class of HTML, CSS and jQuery which helps us to design any responsive web page or website by using the less coding inside our document.
There are 2 ways by which we can define our layout here in Bootstrap and these are:-
In grid system of Bootstrap, 1 row is equals to 12 columns. That means 12 columns or space is allotted to one row.
For achieving this type of effect, we need to add the class here- d-none d-md-block d-lg-block d-xl-block.
As we all have noticed that the quotes also have their author’s or creator name at the end and through this blockquote-footer class we use to achieve this.
Simply, we can add the different color in the link by using the color classes of Bootstrap.
For example:- <a href=”#” class=”text-info”>Link </a>
By using the class border border-danger in Bootstrap, we will be getting the red color of our border.
Through this img-fluid class, we can able to made our images responsive or mobile-friendly.
We can able to provide the padding of 3rem or 48px through p-5 class in Bootstrap.
Through sticky-top class of Bootstrap, we can make any section to stick at the top as soon as that particular section comes to the top when the page been scrolled up.
Alert dialogue box in Bootstrap, can be achieved just by including the alert class in Bootstrap.
Breadcrumb class of Bootstrap is used for displaying the page location of the website.
There are mainly 2 size classes of button in Bootstrap and these are:-
Button in Bootstrap can be easily achieved through btn class but to achieve the green color, we need to add-on the color classes of Bootstrap with btn class. So to achieve both together we need to add the class ="btn btn-success".
Cards are just been any content container which includes image, text and button. And in Bootstrap we can design card through the class="card".
For constructing the Card header in Bootstrap, we just need to include the class="card-header". And for constructing the Card footer, we need to include the class="card-footer" in Bootstrap.
Through card-img-top class of Bootstrap, we can able to place the image inside the card at the top position.
Dropdown class of Bootstrap is use to toggle the hidden content. In first click, you can able to display up your hidden content and in second click you can able to hide your content.
If, we are having the collection of collapse items with us and we want to display only one collapsed item at one time, then our this Accordion class helps us.
I can able to construct the hover effect table in Bootstrap by simply using the class="table table-hover".
Both border and hover effect in Tables, can be achieved in Bootstrap by using 2 different classes, which are class="table table-hover table-bordered".
Through this class of Bootstrap, we are constructing any border from left, right and bottom side but not from the top side.
In Bootstrap to achieve the maximum padding, we need to add the class="p-5" whereas to achieve the maximum margin, we need to add the class="m-5".
As we know through carousel class of Bootstrap, we can able to slide the different sections or different images at one place but through "carousel-fade" class, we will be getting the different sections or images but the sliding effect changes to blinking effect type.
Through Jumbotron, we can create a a big grey extra box to achieve high attention from our users and inside that box, we can keep any type of information or content. In Bootstrap, we ca create the Jumbotron by using the class="jumbotron".
Yes, we can able to display the code in Bootstrap and to achieve this we needs the tags like <code> tag and <pre> tag.
If we offering tips, counts and other information that could help in marking up the web page.
There are mainly two layouts for Bootstrap, which are as follows:-
Modal is like a child window that is layered over its parent window. To enrich the user experience and to add functionality to users, modal windows are been created with help of Modal plugin.
Mainly 7 types of button styles are here which are as follows:-
Input group in Bootstrap are used for form controls. By using an input group, we can able to easily append or prepend text or button to the text-based inputs.
(.table-responsive) class of Bootstrap, we can use to create the responsive table. But this (.table-responsive) class must need to be include over the main table tag (where we include our .table class of our Bootstrap too).
For example:-
<div class="table-responsive">
<table class="table
table-hover">
...
</table>
</div>
It simply provide the transition effects like sliding or fading in modals.
(.card-title) class of Bootstrap we can use simply to add the card titles to any heading element.
Inside any card if we want to have the text over the image then this (.card-img-overlay) class of Bootstrap help us there.
Button group generally allow us to stacked together multiple buttons in a single line. When we want to place buttons together then we can use it simply.
Offsets are another useful feature for more specialized layout. They use to push the defined columns and generate more spacing.
Popovers are just a small pop-up box that appears when the user moves the mouse pointer over an element.
Popovers are just a pop-up box that appears when the user clicks on an element. Although it is similar to the tooltip but the popover can contain much more content then the tooltip.
Bootstrap 5 default font size is 16px, with a line-height of 1.5, default font-family is "Helvetica Nueue, Arial and other sans-serif fonts".
Vertical layout is the default layout of a bootstrap form.
Badges are most similar to labels but the corners of badges are more rounded. Mainly to highlight unread items or important noticable items.
BOOTSTRAP3 | BOOTSTRAP4 |
---|---|
Default font size is 14px. | Default font size is 16px. |
For responsive image we use (.img-responsive) class. | For responsive image we use (.img-fluid) class. |
It does not support flexbox. | It support flexbox. |
Primary unit is px. | Primary unit is rem. |
It has 4 teirs (xs, sm, md, lg). | It has 6 teirs (xs, sm, md, lg, xl). |
BOOTSTRAP4 | BOOTSTRAP5 |
---|---|
It has limited colors. | Extra colors been added here. |
It needs jQuery and popper plugins. | jQuery and popper plugins been removed and it switched to Vanila Js. |
It support both IE 10 and 11. | It does not support both IE 10 and 11. |
It supports Jumbotron. | Jumbotron is been removed here. |
It has 5 teirs (xs, sm, md, lg, xl). | It has 6 teirs (xs, sm, md, lg, xl, xxl). |
BOOTSTRAP | FOUNDATION |
---|---|
It offers unlimited number of UI elements. | It offers limited numner of UI elements. |
It supports LESS as its preprocessor. | It support Sass and Compass as its preprocessor. |
It uses pixels. | It uses REMs. |
It is used to design for both desktop and mobile. | It is used to design for mobile first. |