VOOZH about

URL: https://www.geeksforgeeks.org/bootstrap/bootstrap-5-table-borders/

⇱ Bootstrap 5 Table borders - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Bootstrap 5 Table borders

Last Updated : 23 Jul, 2025

Bootstrap 5 Table borders classes are used to set or unset the border of the table. With bootstrap 5 table borders are easy to customize with border or no border.

  • Bordered tables: This is used to set the border on each side of the table.
  • Tables without borders: This is used to make the table borderless all over the table like there will be no row and column divider.

Syntax:

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

Here * can be table-bordered or table-borderless.

Example 1: In this example, we will create bordered table.

Output:

👁 Image
Bootstrap 5 Table borders

Example 2:  In this example, we will use a borderless table.

Output:

👁 Bootstrap 5 Table borders
Bootstrap 5 Table borders

Reference: https://getbootstrap.com/docs/5.0/content/tables/#table-borders

Comment
Article Tags:

Explore