Bootstrap Tables
Introduction
In this tutorial, you will learn how to use the Bootstrap toolkit to create tables.
Explanation
In Bootstrap version 2.0, lines 1034 to 1167 in bootstrap.css contain the table styles.
As you know, tables are just used to present tabular data. The same is true for Bootstrap; the markup must be placed as follows:
If you use column headers, the hierarchy should be as follows:
Bootstrap simple table example
Example
| Student-ID | First Name | Last Name | Grade |
|---|---|---|---|
| 001 | Rammohan | Reddy | A+ |
| 002 | Smita | Pallod | A |
| 003 | Rabindranath | Sen | A+ |
Output

View online
Bootstrap striped table example
This table uses the striped CSS class, which is defined in the relevant bootstrap css file; the class name is .table-striped.
Example
| Student-ID | First Name | Last Name | Grade |
|---|---|---|---|
| 001 | Rammohan | Reddy | A+ |
| 002 | Smita | Pallod | A |
| 003 | Rabindranath | Sen | A+ |
Output

View online
View the example above in different browser windows.
Click here to download all the HTML, CSS, JS, and image files used in this tutorial.