How come "font color" attribute working in <hr/> tag but not in <p> ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How come "font color" attribute working in <hr/> tag but not in <p> ?

Maybe the answer is obvious , but i am still learning . here is the code i used <hr font color = "red" width="100px" /><!-- this one is copied --> <p font color = "red" ><sup>So</sup> it seems I can but also can't change the colour of the font by font colour attribute</p> so , what is wrong ?

21st Mar 2017, 6:25 AM
Morbius Namor Quaser
Morbius Namor Quaser - avatar
1 Answer
+ 7
hi there, your answer is your next lessons but the statement should be like this : <hr style=" border-color: red"> <p style="color: red" >bla bla some text here</p> it's inline style but the color also could be controlled with css codes. hope it helps, have nice learning times.
25th Mar 2017, 12:39 AM
Alfred