How do I change text color of < table data > in HTML?
How do I change text color of < table data > in HTML?
change text color of < table data > in HTML
<table style=" color:blue;">
change text color of < table Row > in HTML
<tr style="color:black;">
Table data color
<td style="color:black;">
change text color of < table header > in HTML
<th style="color:green;">
Source code for text color of table data in HTML
<html>
<head>
</head>
<body>
<table border="1" style="color:blue;">
<tr style="color:black;">
<th>First Header</th><th>Second Header</th>
</tr>
<tr>
<td style ="color:red; ">first</td>
<td style ="color:green;">Second</td>
</tr>
<tr style ="color:green;>
<td> Third </td> <td>Fourth</td>
</tr>
</table>
</body>
</html>
Output Image for change text color of < table data > in HTML
output Image |
color of text (with CSS):
<p style="color:red">This is a first paragraph.</p>
<p style="color:blue">This is second paragraph.</p>
Comments
Post a Comment