0

How to add a colored border around each cell of a table ?

Using the "border style" attribute in the starting tag of the table which we need to apply....shown below....... <table border style = 'border : solid 5px cyan'> <tr> <th>Name </th> <th>Location</th> </tr> <tr> <td> Smith </td> <td> New York</td> </tr> <tr> <td> Carl </td> <td> France </td> </tr> </table> <!-- You can also use your own border style with thickness and color -->.......Happy coding...... https://code.sololearn.com/WdUAULFBQxhm/?ref=app https://code.sololearn.com/WdUAULFBQxhm/?ref=app

3rd Jul 2020, 5:46 AM
Clear
1 Resposta
+ 5
td { border: 2px solid red; }
3rd Jul 2020, 5:48 AM
Raj Chhatrala
Raj Chhatrala - avatar