Your Title Goes Here

Your content goes here. Edit or remove this text inline or in the module Content settings. You can also style every aspect of this content in the module Design settings and even apply custom CSS to this text in the module Advanced settings.

Your Title Goes Here

Your content goes here. Edit or remove this text inline or in the module Content settings. You can also style every aspect of this content in the module Design settings and even apply custom CSS to this text in the module Advanced settings.

HTML – Background

Using an HTML background, we can change the background of any webpage. By default, our background webpage is white in color. It can be controlled using two ways:-

  1. Color
  2. Image

1. Background Using Colors

bgcolor attribute is used to control the background color of any webpage.

Warning! In HTML5, this attribute is deprecated. Don’t use this attribute.

Input:

<body>
   <p bgcolor="yellow">Using background color</p>
</body>

Output:

These bgcolor attributes value can be given in any form like color name, hex or rgb. It will show the same result.

2. Background Using Images

This background property can be used to provide an image in the background. The image can have any format like jpg, gif or png.

Warning! In HTML5, this attribute is deprecated. Don’t use this attribute.

Input:

<body>

   <table background="https://www.lecturely.com/wp-content/themes/divi-child/asset/img/image-68.png" width="400" height="200">
 
	<tr>

	  <td>This background with patterned background</td>
	</tr>

   </table>

</body>

Output: