Styling Tables
13.1
Lesson

Styling Tables

Without styling, HTML tables look plain. Let’s look at some of the commonly used properties to enhance their look and readability:

Borders

The border property for the table element adds a border around the table:

To see borders around the cells, we need to specify border for th and td selectors too: