Explain HTML background?

Asked: Apr 15, 2023

There are two types of background in HTML:

  1. Colored Background : In this the background of the html is colored.

<body bgcolor = “red”>

The value of the bgcolor can be set in three ways by hexadecimal number, an RGB value and Color name.

<body bgcolor = “black”><body bgcolor = “rgb(0,0,0)”><body bgcolor = “#000000”>

  1. Image Background : In this we set the background of the website by an image. Syntax used for this is :

<body background=”study.gif”>

Asked by brijesh

Answers (0)

No answers yet. Be the first to answer!