Bootstrap Articles

Found 489 articles

Difference between HTML and Bootstrap

Nikhilesh Aleti
Nikhilesh Aleti
Updated on 16-Mar-2026 1K+ Views

HTML stands for HyperText Markup Language. It is a markup language used for creating and structuring web content. HTML uses tags to define elements like headings, paragraphs, links, and images, providing the basic structure and semantic meaning to web pages. The latest version is HTML5, which includes enhanced multimedia support and semantic elements. Bootstrap is a popular front-end CSS framework developed by Twitter for building responsive and mobile-first websites. It provides pre-built CSS classes, JavaScript components, and a flexible grid system that helps developers create visually appealing and consistent web interfaces quickly. The current version is Bootstrap 5. ...

Read More

How to Expand Accordion from URL in Bootstrap?

Jaisshree
Jaisshree
Updated on 16-Mar-2026 1K+ Views

Bootstrap accordion components can be expanded directly from URL parameters using hash identifiers. This technique allows users to navigate directly to specific accordion sections by including the section ID in the URL (e.g., page.html#section1). When the page loads, JavaScript detects the hash and automatically expands the corresponding accordion panel. Syntax Following is the basic syntax for creating an expandable accordion with URL hash support − Section Title Content here The href attribute contains the hash identifier that matches the id of the collapsible div. ...

Read More

Bootstrap dropdown closing when clicked in HTML

usharani
usharani
Updated on 16-Mar-2026 2K+ Views

Bootstrap dropdowns automatically close when you click outside the dropdown area or on a dropdown item. Sometimes you may want to prevent the dropdown from closing when users click inside the dropdown content, allowing them to interact with forms, checkboxes, or other elements without the dropdown disappearing. Syntax Following is the syntax to prevent dropdown from closing using the hide.bs.dropdown event − $('#dropdownId').on('hide.bs.dropdown', function () { return false; }); Following is the syntax to prevent dropdown closing using stopPropagation() − $('#dropdownId .dropdown-menu').on('click', function(e) { ...

Read More

Bootstrap Helper Classes

Arjun Thakur
Arjun Thakur
Updated on 16-Mar-2026 270 Views

Bootstrap helper classes are utility classes that provide quick styling solutions for common layout and formatting needs. These classes include .pull-left, .pull-right, .center-block, .clearfix, and others that help developers apply styles without writing custom CSS. Common Bootstrap Helper Classes Following are the most commonly used Bootstrap helper classes − .pull-left − Floats an element to the left .pull-right − Floats an element to the right .center-block − Centers a block-level element horizontally .clearfix − Clears floated elements within a container .text-left, .text-center, .text-right − Text alignment utilities .show, .hidden − Show or hide elements ...

Read More

How to add bootstrap toggle-switch using JavaScript?

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 15-Mar-2026 1K+ Views

The Bootstrap library provides a number of features to the user to make their coding experience smooth. One of such features which the user can choose from is the toggle-switch. The toggle-switch, one of its useful features, provides users the ability to add components which can switch between two states such as on and off. Bootstrap Toggle-switch The Cascading Style Sheets (CSS) framework Bootstrap is a toolkit that makes it simpler and more standards-compliant to create websites. It can be used, alongside JavaScript, to create a responsive user interface. The simple Bootstrap toggle-switch component is used to select ...

Read More

Bootstrap Contextual classes

Arjun Thakur
Arjun Thakur
Updated on 15-Mar-2026 2K+ Views

Bootstrap contextual classes allow you to change the background color of table rows or individual cells to convey different meanings and states. These classes provide visual feedback to users about the status or importance of data. Available Contextual Classes Class Description Visual Effect ...

Read More

Bootstrap Form select

Samual Sam
Samual Sam
Updated on 15-Mar-2026 449 Views

A select dropdown is used when you want to allow users to pick from multiple options. By default, it only allows one selection, but can be configured for multiple selections. Use for list options with which users are familiar, such as states, countries, or categories. Use multiple attribute to allow users to select more than one option. Bootstrap's form-control class provides consistent styling across browsers. Basic Select Example Here's a simple Bootstrap form with a select dropdown: ...

Read More

Set heights and widths of forms with Bootstrap

Chandu yadav
Chandu yadav
Updated on 15-Mar-2026 2K+ Views

Bootstrap provides classes to control form element heights and widths. Use .input-lg, .input-sm for height sizing, and grid classes like .col-lg-* for width control. Height Sizing Classes Bootstrap offers three height sizes for form controls: .input-lg - Large height input Default - Standard height (no class needed) .input-sm - Small height input Width Control with Grid System Use Bootstrap's grid classes to control form element widths. Wrap inputs in .row and use column classes like .col-lg-2, .col-lg-3, etc. Example Here's how to implement different form sizes: ...

Read More

Bootstrap Form TextArea

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 15-Mar-2026 3K+ Views

Bootstrap provides excellent styling for textarea elements in forms. The element is used when you need multiple lines of input from users, such as comments, descriptions, or detailed information. Basic Textarea Syntax To create a Bootstrap-styled textarea, use the form-control class: Label Text Complete Example Bootstrap Forms ...

Read More

Add sizes for Bootstrap Buttons

Arjun Thakur
Arjun Thakur
Updated on 15-Mar-2026 321 Views

Bootstrap provides several CSS classes to control button sizes, from large buttons to block-level buttons that span the full width of their container. Button Size Classes Class Description .btn-lg ...

Read More
Showing 1–10 of 489 articles
« Prev 1 2 3 4 5 49 Next »
Advertisements