0
What is the syntax for back ground colour
I need answers
5 Answers
+ 6
<!DOCTYPE html>
<html>
  <head> Â
  <title>HTML Backgorund Color</title> Â
 </head> Â
 <body style="background-color:grey;">  Â
 </body>
</html>
+ 5
Hello Coder!
âšď¸ Before posting a question here, please check the links at here:
https://code.sololearn.com/WZ8lkR6gTex6/?ref=app
âźď¸Also, i would like to tell you that the Q&A section is powered for to the programming related questions; and in some special cases for SoloLearn-related questions (also).
âšď¸ So you can ask a SoloLearn-related question, but then please read this:
"Posts may also focus on improving aspects of the platform and providing the community with improved content, whenever applicable."
âšď¸ In normal cases (programming-related questions). If you bring for example a part of a code, where you have a problem, and you would need help, then here would be people to help you. đ
Thank you for your understanding! đ
Keep coding and enjoy!đâď¸
+ 5
Anyway, add this to your css:
body {background-color: black;}
- body: call the html tag
- {...} : you need to write the choosen style here
- background-color : you can use this for give a color to the background
- you can add colors:
>by name like 'black'
>by rgb/rgba numbers like 'rgb(255,60,92)'
>by number like '#558329'
+ 4
My tip for you: start to learn some courses like html, css.. The basics are so useful for the days.
But if you have a simple question like this, then please TRY to SEARCH FOR it FIRST. đ
Searching is very important and with it, you can help the work of the SoloLearn Moderators. đđ
//also, Google is your friend too đ
+ 2
Enter this in CSS
Body{
Background-color:blue;
}