Differences Between Bootstrap 3 and 4

Bootstrap is a effective and famous cellular first the front-give up framework for constructing responsive cellular first web sites at the internet by means of the use of HTML, CSS and JS framework.

Component Bootstrap three Bootstrap 4
Source CSS Files



Primary CSS Unit



Media Queries Unit



Global Font Size



Default Fonts

Helvetica Neue, Helvetica, Arial, sans-serif

Uses a "native font stack" (user's system fonts), with a fallback to Helvetica Neue, Arial, and sans-serif

Grid Tiers

four tier grid gadget (xs, sm, md, lg)

5 tier grid system (xs, sm, md, lg, xl).

Offsetting Columns

Uses col-*-offset-* classes to offset columns. For example, col-md-offset-4.

Uses offset-*-* training to offset columns. For instance, offset-md-4.

Dark/inverse Tables

Not supported.

Added darkish/inverse tables with the .Table-dark class.

Note: Prior to the Beta 2 launch, these required the .Table-inverse elegance. This class has been changed with .Table-dark in Beta 2.

Table Head Styles

Not supported.

Added desk head patterns with the .Thead-mild and .Thead-dark lessons.

Note: Prior to the Beta 2 launch, these required the .Table-default magnificence and the .Desk-darkish class. These classes were changed with .Desk-light and .Desk-dark in Beta 2.

Condensed Tables



Contextual Classes

Bootstrap 3 does not use the .Desk- prefix for its contextual training.

For instance, Bootstrap 3 makes use of .Lively while Bootstrap 4 uses .Table-energetic. Other than that, each versions use the identical five contextual key phrases (active, fulfillment, info, warning, chance).

Added the .Desk- prefix for its contextual instructions.

Responsive Tables

The .Desk-responsive class need to be delivered to a discern div detail.

The .Table-responsive elegance need to be brought to a parent div detail.

Can add .Table-responsive to the actual desk element.

Beta 2 has also delivered the .Desk-responsive-* instructions that may be used to specify a particular breakpoint. These are .Table-responsive-sm, .Desk-responsive-md, .Table-responsive-lg, and .Desk-responsive-xl.

Reflow Tables

Not supported.

Added reflow tables with the .Table-reflow magnificence.

Reflow tables have now been dropped.

Horizontal Forms

Horizontal paperwork require the .Form-horizontal elegance.

Forms do not require .Row while the usage of grids (even though this class is still a demand on Bootstrap 3 grids in wellknown).

Bootstrap four dropped the .Shape-horizontal elegance — it's far not needed to display horizontal paperwork.

Forms require both the .Row class while the use of grids, or the .Form-row magnificence (added in Bootstrap four), which makes the form greater compact.

Use .Manage-label while the usage of grids for form layout.

Bootstrap 4 uses .Col-shape-label * when using grids for form format.

* Note that Bootstrap four to start with used .Shape-manipulate-label however subesquently modified this to .Col-form-label.

Checkboxes and Radio Buttons

Uses .Radio, .Radio-inline, .Checkbox, or .Checkbox-inline to display checkboxes and radio buttons.

Uses .Shape-check, .Form-check-label, .Form-check-input, and .Shape-test-inline.

Form Control Size

Use .Enter-lg and .Input-sm to growth or decrease the scale of an enter control.

Use .Shape-manage-lg and .Form-manipulate-sm to increase or lower the dimensions of an enter manipulate.

Form Label Size

No specific instructions for adjusting form label size.

Bootstrap 4 delivered .Col-shape-label-sm and .Col-form-label-lg to growth or decrease the scale of a label to fit the size of the relevant shape control.

Help Text

Use the .Assist-block magnificence to show assist textual content.

Bootstrap 4 makes use of the .Form-textual content class to show assist textual content.

Validation and Feedback Icons

Includes validation patterns for error, warning, and fulfillment states on form controls (for example, .Has-caution). To gift icons on the input fields the use of Bootstrap 3.

Validation styles are not available for Bootstrap four bureaucracy. Use custom Bootstrap shape validation messages as a substitute.


No training for styling the shape legends.

Provides the option of the use of .Col-shape-label on legend elements to style it greater like a label.

Static textual content

Uses .Shape-manipulate-static to render static text in preference to a manage.

In Bootstrap four, .Form-control-static has been renamed to .Shape-control-plaintext.

Custom Forms

Not supported.

Bootstrap four brought custom bureaucracy — completely custom shape elements that update the browser defaults.


Includes the .Btn-default and .Btn-information classes.

The .Btn-secondary elegance isn't available in Bootstrap 3.

Introduced the .Btn-secondary, .Btn-light, and .Btn-darkish classes.

Dropped the .Btn-default class.

Note that the .Btn-info class was first of all dropped in Bootstrap four but then reappeared again.

Outline Buttons

Not supported.

Introduced the .Btn-define-* lessons for styling buttons with an outline colour.

Introduced the .Btn-*-outline instructions for styling buttons with an define color.

(The .Btn-*-define training became .Btn-outline-* in Alpha 3).

Button Sizes

The .Btn-xs class is to be had.

Dropped the .Btn-xs class (most effective .Btn-sm and .Btn-lg are available now).

Input groups

Bootstrap 3 uses the .Input-group-addon and .Enter-group-btn classes.

Bootstrap 4 dropped .Input-organization-addon and .Enter-institution-btn for 2 new training: .Input-organization-prepend and .Input-organization-append.

Bootstrap four also delivered .Input-group-textual content for textual content inside an input institution.

Responsive Images

Use .Img-responsive class.

Use .Img-fluid magnificence.

Image Alignment

Use .Pull-right, .Pull-left, and .Middle-block helper instructions.

Uses .M-x-vehicle in place of .Middle-block to align block-degree pics.

Can additionally use the numerous .Pull-*-right and .Pull-*-left responsive helper classes, as well as the .Text-*-left, .Text-*-middle, and .Text-*-right helper classes on the image's figure.

Can use the numerous .Pull-*-none classes to disable floating.

Media Objects

Includes many unique classes for media items, including .Media, .Media-body .Media-item, .Media-heading, .Media-proper, .Media-left, and .Media-listing and .Media-frame.

Uses simply .Media magnificence. Margins may be applied the usage of spacer utilities. Media gadgets are flexbox enabled in Bootstrap 4, so the numerous flexbox training can also be carried out (including reordering, etc).


Apply dropdowns to lists (i.E. The usage of ul and li ).

Dropdowns may be built with ul or div s.

Apply the .Dropdown-item to a a or button detail and wrap all of them in a div (or ul ) with a .Dropdown-menu magnificence carried out.

Menu Headers

Apply .Dropdown-header to the li tag.

Apply .Dropdown-header to h1 - tags (as Bootstrap now not makes use of li tags to construct dropdowns).


Apply the .Divider magnificence to the li element (because it used lists to construct dropdowns).

Apply the .Dropdown-divider to the div detail.

Disabled Menu Items

Apply the .Disabled class to the li element.

Apply the .Disabled class to the a detail.

Button Groups

Supports justified button businesses (through the .Btn-organization-justified class).

Not supported.

Extra Small?

Supports greater small button groups (via the .Btn-group-xs elegance).

Not supported (dropped the .Btn-group-xs class).

Inline Navs

There is not any .Nav-inline elegance.

Can use the .Nav-inline magnificence to explicitly specify navs to be displayed inline.


Limited (preset) color alternatives. Supports inverse navbars but not the opposite classes.

New (preset) color options. Introduced the .Navbar-mild and the .Navbar-darkish instructions, and lets in the .Bg-* lessons to be used on navbars.

Navbar Alignment

Use .Navbar-right, .Navbar-left to align components within the navbar.

Use the numerous .Pull-*-right and .Pull-*-left responsive helper training.

Can also use the numerous .Pull-*-none classes to disable floating.

Can either use spacing utilities such as .Mr-vehicle, or any of the flexbox alignment utilities.

Navbar Forms

Add the .Navbar-shape elegance to bureaucracy within navbars.

Bootstrap four dropped the .Navbar-shape class. It's no longer necessary.

Fixed Navbars

Uses .Navbar-fixed-top and .Navbar-fixed-backside to repair navbars to the pinnacle or bottom.

Uses .Fixed-top and .Fixed-bottom.

Default Pagination

Only calls for .Pagination to be delivered (to the ul detail that represents the list of pages).

Must additionally add .Web page-item to every li detail and .Page-link to each a element.


Uses .Preceding and .Next for aligning pagers.

Pagers were dropped in Bootstrap four (Alpha three).

Uses .Pager-prev and .Pager-next for aligning pagers.

Pill Labels

The .Label-pill elegance isn't always available. However, Bootstrap 3 does have badges (which achieves a similar visible impact).

Labels were changed through badges in Bootstrap 4.

Badges can use the .Badge-pill for rounded corners.



"Tags" are called "Labels" in Bootstrap three (i.E. They use the .Label elegance).


The .Tag class was introduced in Bootstrap four (Alpha three) to replace the .Label class.

This became executed to disambiguate from the label detail.

Tags have now been renamed to "badges". These update labels from Bootstrap three.


The .Jumbotron-fluid class isn't always required on full-width jumbotrons.

Introduced the .Jumbotron-fluid magnificence for complete-width jumbotrons.

Progress Bars
Uses progress?

Doesn't use the development for progress bars. Instead, applies progress bar training to nested div factors.

Uses the HTML5 development element whilst running with development bars.

Using the progress element was deserted in Alpha 6. Bootstrap 4 now makes use of the div detail again.



Not supported.


Bootstrap patterns are implemented to the blockquote detail via default.

Introduced the .Blockquote magnificence for styling the blockquote element (i.E. Styling this element is now choose-in).

Blockquote Alignment

Use .Blockquote-opposite to align a blockquote to the proper.

Use the text utilities to align blockquotes (.Textual content-middle and .Textual content-right).

Page Headers

The .Page-header magnificence is supported.

The .Web page-header magnificence isn't always supported.

Description Lists

The .Dl-horizontal class become used to claim a horizontal listing.

Horizontal lists are actually declared with the .Row class at the dl tag, then any of the grid device's predefined training to the dt and dd tags.

Non-Responsive Usage

Supported. You can specify a format to be non-responsive.

Not supported.

List Groups
Linked List Items / Button List Items

Apply .List-institution-object to the a element.

Apply .Listing-organization-object-action to the a element.

Show content material

Uses .In to have content increased upon page load.

Uses .Show to have content material expanded upon page load.


Not supported.

Introduced in Bootstrap 4. Cards update functionality that turned into formerly supplied by way of panels , wells , and thumbnails .



Not supported. Use playing cards instead.



Not supported. Use cards alternatively.



Not supported. Use cards instead.


Uses the .Breadcrumb magnificence in opposition to the ul tag.

Also requires .Breadcrumb-item to be applied towards all li factors that make up the breadcrumb.

Breadcrumbs also can be used outdoor of lists. For example, the .Breadcrumb-item might be carried out to a gaggle of a factors that are wrapped in a .Breadcrumb detail.

Carousel Item

Use .Object elegance.

Use .Carousel-item elegance.