+ 1
What line of code do you use to change text color?
(for HTML, text-color doesn't work.
4 Réponses
+ 2
style="color: color_name"
Color_name can be a hex code or rgb/rgba value too
+ 2
/*in css file*/
.your_class{
color: red;
}
/*or in html*/
<div style="color:red;"></div>
+ 2
Thanks, Yuri Biasi!
+ 1
<h1 style="color:lightblue">Help</h1>
Here style is an attribute to h1 tag.
It is an inline css (You will study this in Css lessons).
Hope this helps☺️☺️.