Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the background color of a span/div WITHOUT CSS [closed]

Tags:

html

css

I'm building an alert page. I'm trying to make the page work even if javascript and CSS is failing.

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.

Please advise.

like image 856
eastboundr Avatar asked Oct 29 '25 22:10

eastboundr


1 Answers

Try this :D Example:

<div style="background-color:red"> </div>

You must insert the name of color like red, blue and so on.

like image 160
Riccardo Osmosit Avatar answered Nov 01 '25 13:11

Riccardo Osmosit



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!