CSS for Web Development

0% completed

Previous
Next
Quiz
Question 1
Given the following CSS rule, what does it do?
body {
  background-image: url('images/bg.png');
  background-repeat: no-repeat;
  background-color: #f5f5f5;
}
A
It sets a background image that repeats over a gray background.
B
It sets a background image that does not repeat, over a light gray background.
C
It sets only a background color because the image does not load.
D
It applies the image as an inline element.
Question 2
What does the CSS property background-attachment: fixed; do?
A
It makes the background image scroll with the page content.
B
It resizes the background image to fit the screen.
C
It tiles the background image across the element.
D
It fixes the background image relative to the viewport, so it stays in place during scrolling.
Question 3
Which property controls the thickness and style of an element’s outline?
A
outline-style
B
outline-width
C
outline
D
border
Question 4
Which CSS property can be used to define all background properties in one shorthand?
A
background-attachment
B
background
C
background-size
D
bg

.....

.....

.....

Like the course? Get enrolled and start learning!
Previous
Next