Practice free →
HomeMaharashtra HSC Class 12 (Arts)informationtechnologyCascading Style Sheets in HTML5 › Per the textbook, what does the padding property…

Per the textbook, what does the padding property do?

AAdds blank spaces around the content of an element
BRemoves borders from an element as per the chapter
CAdds borders around an element
DChanges background colour
Answer & Solution
Correct answer: A. Adds blank spaces around the content of an element
1. The CSS Properties table describes padding. 2. 'Used when you want to add padding (blank spaces) around the content of an element.' 3. Padding is inside the border; margin is outside. 4. Example: h1{padding:30px}. _Source: Maharashtra Balbharati Std XII Information Technology, Ch 1 "Cascading Style Sheets in HTML5", §1.4 ¶3_
Solve this in the app — Maharashtra HSC Class 12 (Arts) practice & 24k+ MCQs →
Related questions