+ 1
how to change font color of whole programe in html..
8 ответов
+ 3
* {
color: red
}
would set all selectors with that font color.
+ 4
Gordon I'd suggest applying the style to the body element in CSS rather than as a style attribute.
body {color: red}
But... you are essentially correct in your thought process.
+ 3
Calviղ ... Now... why you gotta come in and show off? LOL...
Indeed... the asterisk would supercede the body selector. 😉👍
+ 2
+ 1
Thank you for your endorsement, David.
Last time I checked his profile, he did not start CSS course, so I didn't mention CSS to complicate it.
Yes, Wasiq, I agree with David, it is better for you to put all styling scripts into CSS.
0
<p style="color:red;" >Text</p>
0
and if i want to change color of whole program
0
Put the style attribute in body tag