75.6k views
4 votes
How can the border of table cells be changed?

User Pwnall
by
7.8k points

1 Answer

5 votes

Final answer:

To change the border of table cells, you can use CSS (Cascading Style Sheets) to specify different properties for the border, such as width, color, and style.

Step-by-step explanation:

To change the border of table cells, you can use CSS (Cascading Style Sheets). CSS allows you to specify different properties for the border, such as width, color, and style. To change the border of a table cell, you can use the 'border' property and set its value to the desired width, color, and style. For example:

<table>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</table>

This code would create a table with two cells. The first cell would have a black border with a width of 1 pixel, while the second cell would have a red border with a width of 2 pixels and a dotted style.

User Prerna Chavan
by
7.5k points

No related questions found