Topic content
v.20250115
Color your content using HTML Color names.
HTML Color names are assigned by the W3C (World Wide Web Consortium) to be used instead of their corresponding hexadecimal code in HTML (hypertext markup language) or CSS (Cascading Style Sheets) files. These names standard and thus for they are supported by all modern web browsers. It's easier to remember color names than color HEX codes.
To color text use <span> like in the next example:
<span style="color:Tomato;">Hello World !</span> will return Hello World !
To color background use:
style="background-color: HTML color name; " ... Like in the next example:
<table align="center" width="300px" border="1">
<tr>
<th style="background-color: darkslategrey; color: white; ">Header cell 1<<th>
<th style="background-color: darkslategrey; color: white; ">Header cell 2<<th>
</tr>
<tr>
<td>Lorem ipsum<<td>
<td>sin dolor</td>
</tr>
</table>
The code above will generate the following table:
Header cell 1 | Header cell 2 |
---|---|
Lorem ipsum | sin dolor |
|
Powered by: |