Home › Maharashtra HSC Class 12 (Arts) › informationtechnology › Cascading 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_
Related questions
In a CSS rule, what punctuation separates a property name from its value?In the CSS syntax 'Selector{Property1: value1; Property2: value2}', what separates declaraHow does the textbook describe the main benefit of CSS for multi-page websites?What does h1{padding:30px} accomplish per the table?Which embedded CSS placement is correct in an HTML document?Per the textbook, what is unique about an id in HTML?If an HTML element has id='para1', which CSS selector targets it?In CSS h1{margin-left:10px}, what does this rule accomplish?