How to field colour in html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to field colour in html

9th Sep 2020, 3:30 AM
Vansh TYAGI
4 Answers
+ 3
Did you mean how to fill elements with some colour? if so, then you can look into using CSS 'background-color'. Add HTML to your thread tags please?
9th Sep 2020, 3:37 AM
Ipang
+ 3
There is a background-color, color, fill color in canvas in html and css. Ex:- background-color: coral; color: red; Hope you get what you wanted. Thanks!
9th Sep 2020, 4:19 AM
Shaili Shah
Shaili Shah - avatar
+ 1
As you have tried only html till now I would suggest you to use style="background:red;" as an attribute in the element to which element you want to color Ex- <div style="background:red;">this is red color div element</div> If you want a color text inside any html element use style="color:red;" as an attribute. Ex- <P>this is red text</p> Ofcourse you can set color of your choice in place of red. It will clear to you in css lesson.Choose css after completing html as next language.
9th Sep 2020, 5:49 PM
Divya Mohan
Divya Mohan - avatar
0
Thanks
10th Sep 2020, 2:35 AM
Vansh TYAGI