but he is not getting the desired output. Help him in identifying | Shaalaa.com" /> but he is not getting the desired output. Help him in identifying " /> but he is not getting the desired output. Help him in identifying" />
English

Gagandeep has written the following code to display an image in the background of HTML document: <BODY BgGround = "Animals.jpeg"> but he is not getting the desired output. Help him in identifying

Advertisements
Advertisements

Question

Gagandeep has written the following code to display an image in the background of HTML document: 

<BODY BgGround = "Animals.jpeg">

but he is not getting the desired output. Help him in identifying correct code from the following :

Options

  • <BODY Bg = "Animals.jpeg">

  • <BODY BACK = "Animals.jpeg">

  • <BODY BGIMAGE = "Animals.jpeg">

  • <BODY BACKGROUND = "Animals.jpeg">

MCQ
Advertisements

Solution

<BODY BACKGROUND = "Animals.jpeg">

Explanation:

"bgGround" is not an attribute of <BODY> tag. Background attribute of <BODY> is used to display an image in the background of HTML document.

shaalaa.com
  Is there an error in this question or solution?
Chapter 3: HTML- I: Basic HTML Elements - Assisted Practice [Page 121]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 3 HTML- I: Basic HTML Elements
Assisted Practice | Q 35. | Page 121
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×