CSS Questions

0 votes, 0 avg
550

CSS Questions

1 / 15

1. What is not a valid way of declaring a padding value of 10 pixels on the top and bottom, and 0 pixels on the left abd right?

2 / 15

2.  Which of the following CSS property defines the different properties of all four sides of an element’s border in a single declaration?

3 / 15

3. Which of the following selector selects an element if it’s the only child of its parent?

4 / 15

4. Which value specifies a transition effect with a slow start, then fast, then end slowly?

5 / 15

5. If we don’t want to allow a floating div to the left side of an element, which CSS property will we use?

6 / 15

6. Which of the following media query describe output style portrait if height is greater than or equal to width, landscape if the opposite?

7 / 15

7. Suppose we want to arrange 5 no of divs so that div4 is placed above div1. Now, which css property will we use to control the order of stack?

8 / 15

8. Which of the following CSS property defines how an image or video fits into container with established height and width?

9 / 15

9. Which model includes margin, border, padding, and content?

10 / 15

10. Which of the following property sets the background image to scroll or not to scroll with its associated element’s content?

11 / 15

11. Which Of The Following Selector Selects An Element That Has No Children?

12 / 15

12. In the example below, when will the color pink be applied to the anchor element? a:active{ color:pink; }

13 / 15

13. Which of the following selector selects the element that is the first child of its parent that is of its type?

14 / 15

14. Which of the following CSS Property selects an animation defined in an @keyframes rule and applies it to the element?

15 / 15

15. Which of the following property of a anchor element signifies unvisited hyperlinks?

Your score is

The average score is 49%

0%

Written by Shubhranshu Shekhar, who has trained 20000+ students in coding.

Scroll to Top