+ 2
HOW TO COLOUR THE BACKGROUND IN HTML PLZ TELL THE CODE!?
PLZ TELL!!?
16 odpowiedzi
+ 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!
+ 4
use CSS
+ 3
<body style="background-color:blue;">
<div style="background-color:yellow; height:10vh;"></div>
</body>
+ 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
+ 3
Hmm. Thank bro!
+ 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
+ 2
Hmm let try it.....
+ 2
JaScript I tried ur code on my. Html code it doesn't work I tried it in css
+ 2
JaScript thank u sooo much u are so great!!!!!! Nice
+ 2
JaScript when I change ur background colour blue to green it does change? Why!?
+ 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.
+ 1
<style>
body {
background-color: #aColorInHex;
}
</style>
+ 1
Use background-color for any element you want to style
+ 1
<style = "background-color: rgb(, , ,); >
0
JaScript bruh!!!! 😵
0
This is my code now tell me how to change background colour
https://code.sololearn.com/W3bA8jK06R30/?ref=app