Practice free →
HomeMaharashtra HSC Class 12 (Arts)informationtechnologyCascading Style Sheets in HTML5 › Which property would you set to add a background…

Which property would you set to add a background image to a webpage?

Abackground-image
Bimg-src
Cborder-image
Dbackground-color
Answer & Solution
Correct answer: A. background-image
1. The CSS Properties table on page 16 lists background-image. 2. 'To set an image as the background of your webpage.' 3. Syntax: url('X') where X is the image path. 4. Example: body{background-image:url('background.jpg')}. _Source: Maharashtra Balbharati Std XII Information Technology, Ch 1 "Cascading Style Sheets in HTML5", §1.4 ¶4_
Solve this in the app — Maharashtra HSC Class 12 (Arts) practice & 24k+ MCQs →
Related questions