How will you give color in background | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How will you give color in background

30th May 2020, 11:39 AM
Ansh Raj
Ansh Raj - avatar
5 Answers
+ 2
using CSS body{ background-color: red; }
30th May 2020, 11:53 AM
HNNX 🐿
HNNX 🐿 - avatar
0
If in Html just use the background or background-color properties Eg Background:rgba(255, 0,0, 0);or "red" Background-color:rgb(255, 0,0, 0);or "red"
30th May 2020, 11:57 AM
KATEREGGA ASHIRAF
0
What a brilliant answer
30th May 2020, 12:07 PM
Ansh Raj
Ansh Raj - avatar
0
You may also give background color using js Target the element Using query selector of I'd, class, tag and add style.background and define its value 😅
30th May 2020, 12:37 PM
Ayush Kumar
Ayush Kumar - avatar
0
Ansh Raj Please complete your HTML course, before any any HTML question here.
30th May 2020, 1:40 PM
Calviղ
Calviղ - avatar