body class

Standard HTML tag that defines the document body. 

The following illustrations show: 

  1. The body style before applying CSS changes.

  2. The body style after the background-color property has been changed to peachpuff.

Default CSSModified CSS


body {<br/> background-color: #f2f2f2; <br/> margin: 0; <br/>}


body {<br/> background-color: peachpuff; <br/> margin: 0; <br/>}

The following illustrations show: 

  1. The body style before applying CSS changes.
  2. The body style after the background-image property has been changed.
Default CSSModified CSS


body {<br/> background-color: #f2f2f2; <br/> margin: 0; <br/>}


body {<br/> background-color: #f2f2f2; <br/> margin: 0; <br/> background-image: <br/>url("h<span>ttp</span>s://dyzz9obi78pm5.cloudfront.net/app/image/id <br/>/5be1c1b1ec161cdf731977d2/n/portland-cityscape.jpg"); <br/>}