English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

How do you include an image as your web page background? - Computer Applications

Advertisements
Advertisements

Question

How do you include an image as your web page background?

Answer in Brief

Solution

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

shaalaa.com
HTML Attributes
  Is there an error in this question or solution?
Chapter 10: HTML - Structural Tags - Evaluation [Page 236]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 11 TN Board
Chapter 10 HTML - Structural Tags
Evaluation | Q 5. | Page 236
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×