+ 2

HOW TO COLOUR THE BACKGROUND IN HTML PLZ TELL THE CODE!?

PLZ TELL!!?

11th Jan 2022, 5:06 PM
Alz_47 YT
Alz_47 YT - avatar
16 Answers
+ 6
ALZ47_THE_CODER Development of large websites, where fonts and color information were added to every single page, became a long and expensive process. To solve this problem, the World Wide Web Consortium (W3C) created CSS. CSS removed the style formatting from the HTML page! The style definitions are normally saved in external .css files. With an external stylesheet file, you can change the look of an entire website by changing just one file!
12th Jan 2022, 7:44 PM
JaScript
JaScript - avatar
+ 4
use CSS
11th Jan 2022, 5:08 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 3
<body style="background-color:blue;"> <div style="background-color:yellow; height:10vh;"></div> </body>
11th Jan 2022, 5:27 PM
JaScript
JaScript - avatar
+ 3
ALZ47_THE_CODER here is the mdn reference that shows what to do in CSS. https://developer.mozilla.org/en-US/docs/Web/CSS/background-color
11th Jan 2022, 6:13 PM
Paul K Sadler
Paul K Sadler - avatar
+ 3
Hmm. Thank bro!
12th Jan 2022, 3:32 AM
Alz_47 YT
Alz_47 YT - avatar
+ 3
This is your code ALZ47_THE_CODER with changed background colour as from me above mentioned. Is it okay for you? https://code.sololearn.com/W0MIP7RZfgH5/?ref=app
12th Jan 2022, 11:55 AM
JaScript
JaScript - avatar
+ 2
Hmm let try it.....
11th Jan 2022, 5:15 PM
Alz_47 YT
Alz_47 YT - avatar
+ 2
JaScript I tried ur code on my. Html code it doesn't work I tried it in css
12th Jan 2022, 3:35 AM
Alz_47 YT
Alz_47 YT - avatar
+ 2
JaScript thank u sooo much u are so great!!!!!! Nice
12th Jan 2022, 12:37 PM
Alz_47 YT
Alz_47 YT - avatar
+ 2
JaScript when I change ur background colour blue to green it does change? Why!?
12th Jan 2022, 12:44 PM
Alz_47 YT
Alz_47 YT - avatar
+ 1
ALZ47_THE_CODER , that is result from what we here ever said. Next time please show your code with a question. So cann we see where you have problems. Does not work is no an answer.
12th Jan 2022, 8:15 AM
JaScript
JaScript - avatar
+ 1
<style> body { background-color: #aColorInHex; } </style>
13th Jan 2022, 2:49 AM
underscore
underscore - avatar
+ 1
Use background-color for any element you want to style
13th Jan 2022, 8:18 AM
Abdul-latif Mohammed
Abdul-latif Mohammed - avatar
+ 1
<style = "background-color: rgb(, , ,); >
13th Jan 2022, 4:07 PM
oladiipo ayanlekan ayomide
0
JaScript bruh!!!! 😵
12th Jan 2022, 8:24 AM
Alz_47 YT
Alz_47 YT - avatar
0
This is my code now tell me how to change background colour https://code.sololearn.com/W3bA8jK06R30/?ref=app
12th Jan 2022, 8:25 AM
Alz_47 YT
Alz_47 YT - avatar