C777 Unit 2 Cascading
Style Sheets (CSS) Exam
Questions and Complete
Solutions Graded A+
element[attribute$=value] - Answer: Which selector targets every instance of a specified HTML element
whose specified attribute ends with the specified value?
element[attribute*=value] - Answer: Which selector targets every instance of a specified HTML element
whose specified attribute contains the specified substring value?
element[attribute^=value] - Answer: Which selector targets every instance of a specified HTML element
whose specified attribute begins with the specified value?
element:checked - Answer: Which selector targets every checked instance of a specified HTML element?
element:disabled - Answer: Which selector targets every disabled instance of a specified HTML element?
element:enabled - Answer: Which selector targets every enabled instance of a specified HTML element?
element:first-of-type - Answer: Which selector targets every instance of a specified HTML element that
is the first of its parent?
element:last-of-type - Answer: Which selector targets every instance of a specified HTML element that is
the last of its parent?
, element1~element2 - Answer: Which selector targets every instance of element2 that is preceded by an
instance of element1?
background
Properties are in this order:
background: bg-color bg-image position/bg-size bg-repeat bg-origin bg-clip bg-attachment initial|inherit;
- Answer: Which property allows you to set different background properties in one declaration?
background-clip
Key values for this property:
border-box - extends behind the border
padding-box - extends to the inside edge of the border
content-box - extends to the edge of the content box - Answer: Which property specifies whether the
background extends into the border or not?
background-origin
Key values for this property:
padding-box - from the upper left corner of the padding edge
border-box - from the upper left corner of the border
content-box - from the upper left corner of the content - Answer: Which property positions the
background-image relative to an element's border, padding or content?
background-size
Key values for this property:
length - specifies width and height in fixed units
percentage - specifies width and height in in relation to the parent element
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller YourExamplug. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $14.49. You're not tied to anything after your purchase.