How to change the background color of a span/div WITHOUT CSS [closed]
I would like to use maybe deprecate HTML codes to do this. I need the span that contains the alert message to have a red background.
You can use the
bgcolor attribute to set the background colour, but it's far better to use CSS to style a page as the
bgcolor attribute only works on certain tags.
<table bgcolor="#FF0000"><tr><td> My alert contents </td></tr></table>
For example it won't work on
<p> tags, but will work on