HTML Table Borders | HTML Table Border Style | Bordered Table

HTML Table Borders


2. Collapsible Table border: This property is used to set a collapsible border in a single line around our table using the border-collapse property.

table{
border-collapse: collapse;
}

Example:

table{
border-collapse: collapse;
}
table, th, td{
border:0px;
}

3. The border around the table: This property allows us to add table border only at outside edges, not to each individual table cells, simply as :

table {
border : 1px;
}

4. Dotted table border: one can simply add a dotted outline as a border to their table by using simply the following syntax as : 

table{
border : 1px; dotted color-name;
}

5. Dashed table border: Like dotted, we can set the dashed border around our table or table cells. This could be thin or thick as per user choice by setting value.