+ 4

Html question

Which tag is used to apply background color in html

10th Apr 2020, 3:01 AM
Ravi
Ravi - avatar
11 Respostas
+ 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.
10th Apr 2020, 3:10 AM
Yusuf Ansari
Yusuf Ansari - avatar
+ 3
Thanks🙏
10th Apr 2020, 3:11 AM
Ravi
Ravi - avatar
+ 3
You can use css, check this examples: https://www.sololearn.com/learn/CSS/1103/
10th Apr 2020, 3:41 AM
Cmurio
Cmurio - avatar
+ 3
body tag is used with bgcolor attribute.. Syntax: <body bgcolor="red"> .... In place of red can write any color 🎹 you want
11th Apr 2020, 6:09 PM
Anshi Aggarwal
Anshi Aggarwal - avatar
+ 2
<body bgcolor="color name">
11th Apr 2020, 12:48 PM
đŸ‘©â€đŸ’»
đŸ‘©â€đŸ’» - avatar
+ 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.
11th Apr 2020, 1:08 PM
Nikhil Maroju
Nikhil Maroju - avatar
+ 1
Your Welcome :)
10th Apr 2020, 3:11 AM
Yusuf Ansari
Yusuf Ansari - avatar
10th Apr 2020, 1:45 PM
narayanaprasad
narayanaprasad - avatar
+ 1
you can add colors and more in <style> tag
11th Apr 2020, 11:09 AM
Misho Chitadze
Misho Chitadze - avatar
+ 1
Use the attribute background-color
12th Apr 2020, 12:04 AM
JAYANTHI SAI GOPAL
JAYANTHI SAI GOPAL - avatar
+ 1
bgcolor
15th May 2020, 3:16 PM
ARINWESH KRISOLOGES LAKRA
ARINWESH KRISOLOGES LAKRA - avatar