0
How will you give color in background
5 Antworten
+ 2
using CSS
body{
background-color: red;
}
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"
0
What a brilliant answer
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 😅
0
Ansh Raj Please complete your HTML course, before any any HTML question here.