+ 1

how to change font color of whole programe in html..

17th Dec 2018, 12:44 PM
Ch Wasiq
Ch Wasiq - avatar
8 Answers
+ 3
* { color: red } would set all selectors with that font color.
18th Dec 2018, 8:11 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 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.
18th Dec 2018, 8:01 AM
David Carroll
David Carroll - avatar
+ 3
Calviղ ... Now... why you gotta come in and show off? LOL... Indeed... the asterisk would supercede the body selector. 😉👍
18th Dec 2018, 1:45 PM
David Carroll
David Carroll - avatar
+ 2
David Carroll 😜
18th Dec 2018, 2:07 PM
CalviŐ˛
CalviŐ˛ - avatar
+ 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.
18th Dec 2018, 8:06 AM
Gordon
Gordon - avatar
0
<p style="color:red;" >Text</p>
17th Dec 2018, 12:54 PM
Gordon
Gordon - avatar
0
and if i want to change color of whole program
18th Dec 2018, 6:51 AM
Ch Wasiq
Ch Wasiq - avatar
0
Put the style attribute in body tag
18th Dec 2018, 7:32 AM
Gordon
Gordon - avatar