Multiple choice technology web technology

What is the correct HTML for inserting a background image?

  1. <img src="background.gif" background />

  2. <body background="background.gif">

  3. <background img="background.gif">

  4. <back-image img="background.gif">

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The background attribute on the element sets a page background image in traditional HTML. Modern practice uses CSS, but this syntax remains valid. and are not real HTML elements.