Please note, this is a STATIC archive of website technosmarter.com from 20 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
 

HTML table bordercolor attribute


The table contains a lot of data. You can use the table border and table color by the attribute of table <table> border-color attribute.
You can use any type of color code within bordercolor attribute.
Before you give the border color you need to give the border of a table. Without table border declaration it cannot be work.

First, give the table border.
Second, give the table border-color.
The following example of a table in which table border and table border color appear.

HTML Table bordercolor


<!DOCTYPE html>
<html>
<head>
<title>HTML Table bordercolor </title>
</head>
<body>
<table height="150" width="500" border="1" bordercolor="red">  
<tr> 
<td> 
Employee Name
</td> 
<td> 
Ramesh 
</td> >
<td> 
Vikash
</td> <td> 
Sheema 
</td> <td> 
Suresh
</td> 
</td> <td> 
Reetu
</td> 
</tr> 
<tr> 
<td> 
Salary
</td> 
<td> 
10000
</td> 
<td> 
15000
</td> <td> 
20000
</td> <td> 
12000
</td> 
<td> 
25000
</td> 
</tr> 
</table>
</body>
</html>
Run

Note- The table bordercolor is specified "red".

Please Share

Recommended Posts:-