+ 4
Html question
Which tag is used to apply background color in html
11 odpowiedzi
+ 5
The <body color> attribute assigns a background color.
Syntax: <body bgcolor="color">
Write color which you want to display in background inside "color" which i have written in syntax or you can also write the color code , for eg.#FF0000.
+ 3
Thanks🙏
+ 3
You can use css, check this examples:
https://www.sololearn.com/learn/CSS/1103/
+ 3
body tag is used with bgcolor attribute..
Syntax: <body bgcolor="red">
.... In place of red can write any color 🎨 you want
+ 2
<body bgcolor="color name">
+ 2
<body style="background-color:#000">
Here we should apply style attribute is also used to apply bgcolor and
In place of #000 we can use
rgb(255,255,255) or hsl(100,100%,100%) or you can use directly some predefined colours like lightgrey,orange,red,tomato,skyblue..etc.
+ 1
Your Welcome :)
+ 1
You mayfind answer in https://www.tutorialspoint.com/How-to-set-background-color-in-HTML
+ 1
you can add colors and more in <style> tag
+ 1
Use the attribute background-color
+ 1
bgcolor