CSS Flashcards
Which selector targets every instance of a specified HTML element whose specified attribute ends with the specified value?
$
element[attribute$=value]
Which selector targets every instance of a specified HTML element whose specified attribute contains the specified substring value?
*
element[attribute*=value]
Which selector targets every instance of a specified HTML element whose specified attribute begins with the specified value?
^
element[attribute^=value]
Which selector targets every checked instance of a specified HTML element?
element:checked
Which selector targets every disabled instance of a specified HTML element?
element:disabled
Which selector targets every enabled instance of a specified HTML element?
element:enabled
Which selector targets every instance of a specified HTML element that is the first of its parent?
element:first-of-type
Which selector targets every instance of a specified HTML element that is the last of its parent?
element:last-of-type
Which selector targets every instance of element2 that is preceded by an instance of element1?
element1~element2
Which property allows you to set different background properties in one declaration?
background
Which property specifies whether the background extends into the border or not?
background-clip
Which property positions the background-image relative to an element’s border, padding or content?
background-origin
Which property defines the size of background images?
background-size
Which property creates a border that uses an image instead of a line?
border-image
Which property defines the shape or curve of a border around an HTML element?
border-radius
Which property applies shadows to edges of HTML elements to create visual depth?
box-shadow
Which two values are required to create a box-shadow?
h-shadow and v-shadow
Which property specifies transparency for an HTML element?
opacity
Which property defines whether an HTML element can be resized by the user and how it can be resized?
resize
Which property cuts off, or clips, text that extends beyond its container?
text-overflow
Which property applies shadows to edges of text characters to create visual depth?
text-shadow
Which rule allows developers to specify custom fonts?
@font-face
Which two properties are required to specify a custom font?
font-family — specifies the font name
src — identifies the font file’s location by URL
Which property specifies how the font should be stretched or spaced?
font-stretch
element that is preceded by an \