WGU C777 Unit 2: Cascading Style Sheets (CSS) 2022 with complete solution
Which selector targets every instance of a specified HTML element whose specified attribute ends with the specified value? -Answer- element[att
...
WGU C777 Unit 2: Cascading Style Sheets (CSS) 2022 with complete solution
Which selector targets every instance of a specified HTML element whose specified attribute ends with the specified value? -Answer- element[attribute$=value]
Which selector targets every instance of a specified HTML element whose specified attribute contains the specified substring value? -Answer- element[attribute*=value]
Which selector targets every instance of a specified HTML element whose specified attribute begins with the specified value? -Answer- element[attribute^=value]
Which selector targets every checked instance of a specified HTML element? -Answer- element:checked
Which selector targets every disabled instance of a specified HTML element? -Answer- element:disabled
Which selector targets every enabled instance of a specified HTML element? -Answer- element:enabled
Which selector targets every instance of a specified HTML element that is the first of its parent? -Answer- element:first-of-type
Which selector targets every instance of a specified HTML element that is the last of its parent? -Answer- element:last-of-type
Which selector targets every instance of element2 that is preceded by an instance of element1? -Answer- element1~element2
Which property allows you to set different background properties in one declaration? -Answer- background
Properties are in this order:
background: bg-color bg-image position/bg-size bg-repeat bg-origin bg-clip bg-attachment initial|inherit;
Which property specifies whether the background extends into the border or not? -Answer- 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
Which property positions the background-image relative to an element's border, padding or content? -Answer- 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
Which property defines the size of background images? -Answer- 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
cover - cover the entire container, even if it has to stretch the image or cut a little bit off one of the edges
contain - resize the background image to make sure the image is fully visible
Which property creates a border that uses an image instead of a line? -Answer- border-image
Which property defines the shape or curve of a border around an HTML element? -Answer- border-radius
Which property applies shadows to edges of HTML elements to create visual depth? -Answer- box-shadow
Which two values are required to create a box-shadow? -Answer- h-shadow and v-shadow
Which property specifies transparency for an HTML element? -Answer- opacity
Which property defines whether an HTML element can be resized by the user and how it can be resized? -Answer- resize
Which property cuts off, or clips, text that extends beyond its container? -Answer- text-overflow
Which property applies shadows to edges of text characters to create visual depth? -Answer- text-shadow
Which rule allows developers to specify custom fonts? -Answer- @font-face
Which two properties are required to specify a custom font? -Answer- font-family — specifies the font name
src — identifies the font file's location by URL
[Show More]