Podcast
Questions and Answers
In CSS, which attribute is used to specify a background image for an element?
In CSS, which attribute is used to specify a background image for an element?
- background-image (correct)
- img-src
- background-img
- image
Which property is used to set the background color of an element in CSS?
Which property is used to set the background color of an element in CSS?
- background-color (correct)
- element-color
- color-background
- bgcolor
What is the correct way to select an element with id 'example' in CSS?
What is the correct way to select an element with id 'example' in CSS?
- #example (correct)
- id:example
- .example
- element.example
What is the correct way to apply a CSS style to all
elements?
What is the correct way to apply a CSS style to all
elements?
In CSS, what does the 'float' property do?
In CSS, what does the 'float' property do?
Which property is used to change the text color of an element in CSS?
Which property is used to change the text color of an element in CSS?