How do you include an image as your web page background?
Advertisements
प्रश्न
How do you include an image as your web page background?
Advertisements
उत्तर
An image or picture can be applied as background to a webpage. When we insert an image as background, the text will be displayed on top of the image. Background images can be a texture or bitmap or even a photo.
When we insert a small image, the browser takes the image and repeats it across and down to fill browser window.
The tag to apply an image as background: <body background = “image_name_with_ extension”>
Html Code To Insert Image As Background:
<html>
<head>
<title> Image as background </title>
</head>
<body background = “flower01.gif ”>
This is my browser with an image as background
</body>
</html>
Output:

Internet Explorer with an image as background
APPEARS IN
संबंधित प्रश्न
Which of the following is a special word used inside tag to specify additional information to the tag?
HTML tags should be specified within:
Which section of the browser window displays the main contents?
In HTML, colours are represented as ______.
Which of the following symbol is used to prefix with hexadecimal value representing colour in HTML?
What is the wrong in the following coding?
<html>
<my web page>
<title> Welcome to my web page </head>
</title>
Explain the attributes available with <body> tag.
What are the attributes available in <html> tags?
