0
HTML colored Words
Hello, I would like to ask how to change color to a string of word inside an HTML table. I have chosen a black background and i need the words inside these cells to be white instead of black.
1 Respuesta
+ 2
Put the text inside an inline element for example span and use CSS to style your span element.
For example:
<table border="2">
<tr>
<td><span>Red</span></td>
<td><span>Red</span></td>
<td><span>Red</span></td>
</tr>
</table>
In CSS:
span{ color:red;}
Hope this helps.