minor gremmar fix (#28804)
This commit is contained in:
@ -1,11 +1,10 @@
|
|||||||
---
|
---
|
||||||
title: Body Background Attribute
|
title: Body Background Attribute
|
||||||
---
|
---
|
||||||
|
|
||||||
## Body Background Attribute
|
## Body Background Attribute
|
||||||
|
|
||||||
If you want to add a background image instead of a color, one solution is the `<body background>` attribute. It specifies a background image for an HTML document.
|
If you want to add a background image instead of a color, one solution is the `<body background>` attribute. It specifies a background image for an HTML document.
|
||||||
|
|
||||||
|
|
||||||
Syntax:
|
Syntax:
|
||||||
|
|
||||||
`<body background="URL">`
|
`<body background="URL">`
|
||||||
@ -15,7 +14,6 @@ Attribute:
|
|||||||
|
|
||||||
`background - URL for background image`
|
`background - URL for background image`
|
||||||
|
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
```html
|
```html
|
||||||
<html>
|
<html>
|
||||||
@ -24,15 +22,13 @@ Example:
|
|||||||
</html>
|
</html>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## body-background attribute is depreciated
|
## body-background attribute is depreciated
|
||||||
The body-background attribute has been deprecated in HTML5. The correct way to style the ```<body>``` tag is with CSS.
|
The body-background attribute has been deprecated in HTML5. The correct way to style the ```<body>``` tag is with CSS.
|
||||||
|
|
||||||
|
|
||||||
There are several CSS properties used for setting the background of an element. These can be used on the <body> tag to set the background of an entire page.
|
There are several CSS properties used for setting the background of an element. These can be used on the <body> tag to set the background of an entire page.
|
||||||
|
|
||||||
## Check it Out:
|
## Check it Out:
|
||||||
* [CSS background proprety](https://github.com/freeCodeCamp/guides/blob/master/src/pages/css/background/index.md)
|
* [CSS background](https://github.com/freeCodeCamp/guides/blob/master/src/pages/css/background/index.md)
|
||||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/background)
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/background)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user