0
What is the syntax for back ground colour
I need answers
5 Réponses
+ 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;
}