HTML background image | How to add background image in html

Background image represents the background of the page.

The background is done by the direct background -

The following example will show you how to display the background image of the page.


HTML background image


<!DOCTYPE>
<html>
<head>
<title>Type of Heading Tags </title>
</head>
<body background="myimage.jpg">
</body>
</html>
Run



Note-

Background image must specified with body tag .

Recommended Posts:-