How to add background color behind the text in HTML ?


How to add background color behind the text in HTML ?

 

 

If You want to highlight the text in HTML  . So add background color behind the text with help of HTML coding . Follow these simple Steps and add background color .


1 . Add this code at the starting of your text .

<table>
<td bgcolor= red>


Note : change " red" to any color name or code you want .


2 . Add this below code at the ending of your text .

</td>
</table>


3 . Complete Your coding like this .

<table>
<td bgcolor=YOUR COLOR>
YOUR TEXT HERE
</td>
</table>

0 comments: