CSS Questions

0 votes, 0 avg
570

CSS Questions

1 / 15

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

2 / 15

2. 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?

3 / 15

3. Which of the following CSS3 property specifies the sequential navigation order for an element?

4 / 15

4. 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?

5 / 15

5. What will be the output of following CSS code snippet? h1 {color: red text-decoration: underline; font-style: italic;}

6 / 15

6. Which of the following CSS Property sets the stacking order of positioned elements?

7 / 15

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

8 / 15

8. There are many properties that can be used to align elements and create page layouts such as float,postion,flexbox and grid. Out of these four properties, which one should be used to align a global navigation bar which stays fixed at the top of the page?

9 / 15

9. Three of these choices are tue about class selectors. Which is NOT true?

10 / 15

10. Which of the following is the Color Format that is the CSS3 HSL value with a fourth value to set the alpha channel value for the color to define the opacity of the element?

11 / 15

11. How do you comment in CSS file?

12 / 15

12. Choose the option that correctly specifies the output of the following CSS. span {
border: 1px solid red;
outline: green dotted thick;
}

13 / 15

13. What is the correct syntax for referring an external CSS?

14 / 15

14. What will be the output of the following CSS code snippet? span {
border: 1px solid red;
outline: green dotted thick;
}

15 / 15

15. The CSS property used to set the distance between the borders of the adjacent cells in the table is__________

Your score is

The average score is 49%

0%

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

Scroll to Top