Horizontal line not working, help plz | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Horizontal line not working, help plz

Why is my horizontal line colour not working? Also, the size inside and outside quotes produce the same results why? Also, what are the available colours, because there are a very large number of colours and naming each one and remembering is very hard. Also, should we use <hr> or <hr/> for a horizontal line?? https://code.sololearn.com/Wu5uLPSrXZ8D/?ref=app

12th Sep 2021, 6:34 AM
Rishi
Rishi - avatar
4 Answers
+ 3
Rishi There is "color" not "colour" Yes you can use both.
12th Sep 2021, 6:39 AM
A͢J
A͢J - avatar
+ 4
Rishi Yes you can give like this: color="#00FFFF" Get from here https://www.rapidtables.com/web/color/RGB_Color.html
12th Sep 2021, 7:03 AM
A͢J
A͢J - avatar
+ 3
12th Sep 2021, 7:31 AM
Rishi
Rishi - avatar
0
A͢J - S͟o͟l͟o͟H͟e͟l͟p͟e͟r͟ how does this work? If I give "dark pink" it displays black colour. Is there a way to mention the r, g and b values?
12th Sep 2021, 6:52 AM
Rishi
Rishi - avatar