Monday, March 16, 2026

“Bootstrap Table Setup Tutorial: Create Responsive and Professional Tables Step-by-Step”




 1. Basic Bootstrap Table Setup

First include Bootstrap CSS and JS.

Result

Bootstrap automatically adds:

padding

borders

clean layout

responsive styling


2. Table Styling Classes

Bootstrap provides many table design options.

Class

Purpose

.table

Basic table

.table-striped

Zebra stripes

.table-bordered

Borders

.table-hover

Row hover effect

.table-dark

Dark theme



Example

<table class="table table-striped table-hover table-bordered">

Output Features

✔ Alternate row colors

✔ Hover effect

✔ Borders


3. Contextual Row Colors

Bootstrap allows status-based row colors.

<table class="table">

<tr class="table-success">

<td>Payment Success</td>

</tr>

<tr class="table-warning">

<td>Pending Payment</td>

</tr>

<tr class="table-danger">

<td>Payment Failed</td>

</tr>

</table>

Color Classes

Class

Meaning

table-primary

Blue

table-success

Green

table-warning

Yellow

table-danger

Red

table-info

Cyan

4. Responsive Tables (Important Feature)

Tables often break on mobile screens.

Bootstrap solves this with:

<div class="table-responsive">

<table class="table">

Example

<div class="table-responsive">

<table class="table table-bordered">

<thead>

<tr>

<th>ID</th>

<th>Name</th>

<th>Email</th>

<th>Phone</th>

<th>Address</th>

</tr>

</thead>

<body>

<tr>

<td>1</td>

<td>Ali</td>

<td>ali@email.com</td>

<td>987654321</td>

<td>Hyderabad</td>

</tr>

</body>

</table>

</div>

✔ Adds horizontal scroll on small devices


5. Small Tables

Reduce table size.

<table class="table table-sm">

✔ Smaller padding

✔ Good for dashboards


6. Table Head Styling

You can style table headers.

<thead class="table-dark">

Example:

<table class="table">

<thead class="table-dark">

<tr>

<th>ID</th>

<th>Name</th>

<th>Course</th>

</tr>

</thead>

</table>


7. Advanced Feature: Table Groups

You can organize rows.



<body>

<tr>

<td>1</td>

<td>Student A</td>

</tr>

</body>

<body>

<tr>

<td>2</td>

<td>Student B</td>

</tr>

</body>

Useful for grouping data sections.


8. Adding Buttons Inside Tables 

Example: Edit / Delete

<td>

<button class="btn btn-primary btn-sm">Edit</button>

<button class="btn btn-danger btn-sm">Delete</button>

</td>

Full Example:

<table class="table table-striped">

<thead>

<tr>

<th>ID</th>

<th>Name</th>

<th>Action</th>

</tr>

</thead>

<body>

<tr>

<td>1</td>

<td>Rahul</td>

<td>

<button class="btn btn-success btn-sm">Edit</button>

<button class="btn btn-danger btn-sm">Delete</button>

</td>

</tr>

</body>

</table>


9. Advanced Feature: Table with Images

Example user profile table.

<td>

<img src="user.jpg" width="40" class="rounded-circle">

</td>


10. Advanced Feature: Table with Icons

Using icons improves the UI.



Example:

<td>

<span class="badge bg-success">Active</span>

</td>

Status table example:

User

Status

John

Active

David

Pending



11. Advanced Feature: Scrollable Tables

For large datasets.

<div style="height:300px; overflow-y:auto;">

<table class="table">


12. Professional Dashboard Table Example

<div class="container mt-4">



<h3>User Management</h3>


<div class="table-responsive">


<table class="table table-striped table-hover">

<thead class="table-dark">

<tr>

<th>ID</th>

<th>Name</th>

<th>Email</th>

<th>Status</th>

<th>Action</th>

</tr>

</thead>

<body>

<tr>

<td>1</td>

<td>Rahul</td>

<td>rahul@email.com</td>

<td><span class="badge bg-success">Active</span></td>

<td>

<button class="btn btn-warning btn-sm">Edit</button>

<button class="btn btn-danger btn-sm">Delete</button>

</td>

</tr>


</body>



</table>



</div>

</div>

✔ Responsive

✔ Professional design

✔ Used in admin dashboards


13. Modern Advanced Feature: Bootstrap Table with Search

Add JavaScript search.

<input type="text" id="searchInput" class="form-control mb-3" placeholder="Search">

<script>

document.getElementById("searchInput").addEventListener("keyup", function() {

let value = this.value.toLowerCase();

let rows = document.querySelectorAll("tbody tr");

rows.forEach(function(row){

row.style.display = row.innerText.toLowerCase().includes(value) ? "" : "none";



});



});


</script>

✔ Live search filter


14. Pagination Table (Advanced)

Using JavaScript or plugins you can add:

pagination

sorting

filtering

export to Excel

Popular plugin:

Bootstrap Table Plugin

Features:

search

sort

pagination

column toggle

export data


15. Project Uses

Bootstrap tables are used in:



Application

Table Example

Admin dashboard

User list

E-commerce

Orders table

School system

Student list

Hospital system

Patient records

CRM

Customer data

 Exercise

Create a Student Management Table

Columns:

Student ID

Name

Course

Marks

Status

Action Buttons

Add:

✔ striped rows

✔ hover effect

✔ responsive table

✔ status badges

✔ edit/delete buttons


Saturday, March 14, 2026

Bootstrap Table Classes – The Secret to Creating Stunning Tables Module 37




 #Online Courses

 Bootstrap Module 36

If You want To Earn Certificate For My  All   Course Then Contact Me At My  Contact  Page   then I Will Take A Test And  Give You  certificate  . Go My Contant Page And Fill Your Details Then I Will Contact You Click Here And Go To My Contact Page 

https://onlinecourses2024for.blogspot.com/p/contact-us.html

Thursday, March 12, 2026

Bootstrap Module 37

 



 Module 37 : Bootstrap Tables – Basics.

1. Introduction to Bootstrap Tables

Tables are essential components in web applications for displaying structured data such as user lists, reports, pricing details, marksheets, dashboards, and analytics. Bootstrap provides predefined table classes that make tables:



Responsive

Visually consistent

Easy to style

Faster to develop without writing custom CSS

Bootstrap tables rely on standard HTML <table> elements, enhanced using Bootstrap utility and component classes.


2. Basic Structure of an HTML Table (Foundation)

Before Bootstrap styling, every table follows this structure:

<table> <thead> <tr> <th>Header</th> </tr> </thead> <tbody> <tr> <td>Data</td> </tr> </tbody> </table>



<table> → Defines the table

<thead> → Header section

<tbody> → Body section

<tr> → Table row

<th> → Table heading (bold by default)

<td> → Table data cell

Bootstrap does not replace HTML tables, it enhances them.


3. Creating a Basic Bootstrap Table

Syntax

<table class="table"> ... </table>

Example

<table class="table"> <thead> <tr> <th>ID</th> <th>Name</th> <th>Email</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>Ali</td> <td>ali@example.com</td> </tr> <tr> <td>2</td> <td>Sara</td> <td>sara@example.com</td> </tr> </tbody> </table>

.table adds:

Padding to cells

Light horizontal lines

Clean typography

No borders by default

Professional appearance without CSS


4. Table Head Styling

Bootstrap automatically styles table headers.

Dark Header Example

<thead class="table-dark">

<thead class="table-dark"> <tr> <th>ID</th> <th>Product</th> <th>Price</th> </tr> </thead>



table-dark gives contrast

Improves readability

Often used in dashboards


5. Table Variations (Visual Styling)

5.1 Striped Rows

<table class="table table-striped">

Purpose:

Improves readability for large datasets


5.2 Bordered Table

<table class="table table-bordered">

Purpose:

Shows borders around all cells

Useful for invoices and reports


5.3 Hover Effect

<table class="table table-hover">

Purpose:

Highlights row on mouse hover

Common in admin panels


Combined Example

<table class="table table-striped table-bordered table-hover">


6. Contextual Table Classes (Color)

Bootstrap allows color- rows or cells.

Row Coloring Example

<tr class="table-success"> <td>1</td> <td>Completed</td> </tr> <tr class="table-danger"> <td>2</td> <td>Failed</td> </tr>

Common Classes




Class

Meaning

table-primary

Important

table-success

Success

table-danger

Error

table-warning

Warning

table-info

Information

table-secondary

Neutral

table-dark

Dark theme



7. Responsive Tables 

Tables can break on small screens. Bootstrap solves this.

Responsive Wrapper

<div class="table-responsive"> <table class="table"> ... </table> </div>

Explanation

Adds horizontal scrolling on small devices

Prevents layout breaking

Essential for mobile-first design


8. Exercise 

Exercise 1: Create a table with:

Roll No

Name

Subject

Marks

Result (color coded)

<table class="table table-bordered table-striped"> <thead class="table-dark"> <tr> <th>Roll No</th> <th>Name</th> <th>Subject</th> <th>Marks</th> <th>Result</th> </tr> </thead> <tbody> <tr> <td>101</td> <td>Rahul</td> <td>Math</td> <td>85</td> <td class="table-success">Pass</td> </tr> <tr> <td>102</td> <td>Anita</td> <td>Math</td> <td>35</td> <td class="table-danger">Fail</td> </tr> </tbody> </table>

Header styling

Row coloring

Structured data presentation


9. Creating a Responsive Bootstrap Table

Objective

To design a responsive, styled data table using Bootstrap classes.



Requirements

Bootstrap CDN

Basic HTML knowledge

Steps

Include Bootstrap CSS CDN

Create HTML table structure

Apply .table class

Add .table-striped and .table-hover

Wrap table in .table-responsive

Code

<!DOCTYPE html> <html> <head> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"> </head> <body class="p-4"> <div class="table-responsive"> <table class="table table-hover table-striped"> <thead class="table-primary"> <tr> <th>ID</th> <th>Employee</th> <th>Department</th> <th>Salary</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>John</td> <td>IT</td> <td>50000</td> </tr> <tr> <td>2</td> <td>Mary</td> <td>HR</td> <td>45000</td> </tr> </tbody> </table> </div> </body> </html>

Result

Fully responsive table

Professional UI

Mobile-friendly


10. Research 

Topic: Bootstrap Tables vs Custom CSS Tables



Key Findings

Aspect

Bootstrap Table

Custom CSS Table

Development Time

Fast

Slow

Responsiveness

Built-in

Manual

Consistency

High

Depends

Learning Curve

Low

Medium

Customization

Moderate

High


Industry Usage

Admin dashboards

CRM systems

ERP applications

Data reporting tools


Use Bootstrap tables for standard data

Combine with JavaScript libraries (DataTables.js) for:

Sorting

Pagination

Search


11. Summary 


Bootstrap tables are HTML-based + class-driven

                 


.table is the foundation

Responsive tables are essential for mobile devices

Contextual classes improve UX

Ideal for beginners and professionals


Tuesday, March 10, 2026

BootScript Assignment Challenge 😱 | Can You Crack the Code Before Time Runs Out

 



Bootstrap Assignment 

If You want To Earn Certificate For My  All   Course Then Contact Me At My  Contact  Page   then I Will Take A Test And  Give You  certificate  . Go My Contant Page And Fill Your Details Then I Will Contact You Click Here And Go To My Contact Page 

https://onlinecourses2024for.blogspot.com/p/contact-us.html

Sunday, March 8, 2026

Assignment Checkboxs Radio Buttons And Switches

 


Assignment 

Use Bootstrap form components.

Implement checkboxes, radio buttons, and switches.



Create a clean and responsive form layout.

Apply Bootstrap classes for styling form controls.

Assignment creates a User Preference Form using Bootstrap. The form should collect information about a user's interests and preferences using checkboxes, radio buttons, and toggle switches.


4. Requirements

1. Include Bootstrap

Add the Bootstrap CDN in the HTML file.




2. Form Sections

Your form must contain the following sections:


A. Hobbies (Checkboxes)

Allow users to select multiple hobbies.

Example options:

Reading

Traveling

Gaming

Music

Sports


B. Gender (Radio Buttons)

Allow the user to select only one option.

Options:

Male

Female

Other


C. Notification Settings (Switches)

Create toggle switches for settings.














Options:

Email Notifications

SMS Notifications

Push Notifications


5. Example Layout

Form should include:

Page title

Bootstrap container

Styled form controls

Submit button


6. Sample Code Structure

Html

Copy code

<!DOCTYPE html>

<html>

<head>

<title>Bootstrap Form Assignment</title>


<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">


</head>


<body>


<div class="container mt-5">


<h2>User Preference Form</h2>


<form>


<h4>Hobbies</h4>


<div class="form-check">

<input class="form-check-input" type="checkbox">

<label class="form-check-label">Reading</label>

</div>


<div class="form-check">

<input class="form-check-input" type="checkbox">

<label class="form-check-label">Traveling</label>

</div>


<div class="form-check">

<input class="form-check-input" type="checkbox">

<label class="form-check-label">Gaming</label>

</div>



<h4 class="mt-3">Gender</h4>


<div class="form-check">

<input class="form-check-input" type="radio" name="gender">

<label class="form-check-label">Male</label>

</div>


<div class="form-check">

<input class="form-check-input" type="radio" name="gender">

<label class="form-check-label">Female</label>

</div>



<h4 class="mt-3">Notifications</h4>


<div class="form-check form-switch">

<input class="form-check-input" type="checkbox">

<label class="form-check-label">Email Notifications</label>

</div>


<div class="form-check form-switch">

<input class="form-check-input" type="checkbox">

<label class="form-check-label">SMS Notifications</label>

</div>


<br>


<button class="btn btn-primary">Submit</button>


</form>


</div>


</body>

</html>













7. Submission Requirements

must submit:

index.html file

Screenshots of the output

Brief explanation (5–6 lines)


8. Evaluation Criteria








Criteria

Marks

Proper Bootstrap usage

5

Checkbox implementation

5

Radio button implementation

5

Switch implementation

5

UI design & layout

5

Total: 25 Marks



Complete This Assignment And Submit It  On  My Contact Page

“Bootstrap Table Setup Tutorial: Create Responsive and Professional Tables Step-by-Step”

 1. Basic Bootstrap Table Setup First include Bootstrap CSS and JS. Result Bootstrap automatically adds: padding borders clean layout respon...