C777 Unit 2: Cascading Style
Sheets (CSS) exam test 2023-2024
1. Element [attribute$=value] - Which selector targets every instance of a specified
HTML element whose specified attribute ends with the specified value?
2. element[attribute*=value] - Which selector targets every instance of a specified
HTML element whose specified attribute contains the specified substring value?
3. element[attribute^=value] - Which selector targets every instance of a specified
HTML element whose specified attribute begins with the specified value?
4. Element: checked - Which selector targets every checked instance of a specified
HTML element?
5. Element: disabled - Which selector targets every disabled instance of a specified
HTML element?
6. Element: enabled - Which selector targets every enabled instance of a specified
HTML element?
7. Element: first-of-type - Which selector targets every instance of a specified HTML
element that is the first of its parent?
8. Element: last-of-type - Which selector targets every instance of a specified HTML
element that is the last of its parent?
9. element1~element2 - Which selector targets every instance of element2 that is
preceded by an instance of element1?
10.background
11.Properties are in this order:
12.Background: big-color big-image position/big-size big-repeat big-origin big-clip
big-attachment initial inherit; - Which property allows you to set different
background properties in one declaration?
13.background-clip
14.Key values for this property:
15.border-box - extends behind the border