0
Putting body background in html
How to put body background in html
3 Answers
+ 2
To set a background for the <body> element in HTML, you can use the background attribute or, preferably, the CSS background property. Here's how you can do it using CSS:
https://www.sololearn.com/fr/compiler-playground/WPZ3z0Suq8pE
Replace 'your-background-image.jpg' with the path to your background image file. You can also adjust other properties like background color, size, position, etc., according to your needs. This method gives you more flexibility and control over your background compared to using the background attribute directly in the <body> tag.
+ 1
You can use either <body background=src>
Or
Body{
Background:url(src);
}
Remember to use two forward slash //in src
0
Those links can help you to resolve your problem ⤾ď¸
https://www.sololearn.com/Discuss/2336465/?ref=app
https://www.sololearn.com/Discuss/1133258/?ref=app
https://www.sololearn.com/Discuss/2746301/?ref=app