css-exam 0 votes, 0 avg 549 123456789101112131415 CSS Questions 1 / 15 1. What is the difference between the margin and padding properties? A. Margin adds space around and inside of an element; Padding adds space only inside on an element. B. Margin adds space around an element; Padding adds space inside of an element. C. Margin adds a line around element; Padding adds space inside of an element. D. Margin adds space inside of an element; Padding adds space around an element. 2 / 15 2. Which Of The Following Selector Selects An Element That Has No Children? A. :nochild B. :empty C. :inheritance D. :no-child 3 / 15 3. Which one can animate the width of search input when get focus? A. focus B. outline C. transition D. color 4 / 15 4. Which of the following CSS selectors are used to specify a group of elements? A. tag B. id C. class D. both id and class 5 / 15 5. In the below code snippet, in what order will the margins be added? p { margin: 25px 50px 75px 100px; } A. Top, Right, Bottom, Left B. Top, Left, Bottom, Right C. Top, Bottom, Right, Left D. Right, Left, Top, Bottom 6 / 15 6. Which of the following selector in CSS is used to select the elements that do not match the selectors? A. :not selector B. :empty selector C. :! Selector D. none of the above 7 / 15 7. Which of the following CSS Property selects an animation defined in an @keyframes rule and applies it to the element? A. animation B. animation-name C. animation-element D. none of the above 8 / 15 8. 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? A. padding:10px 10px 0px 0px; B. padding:10px 0px ; C. padding:10px 0; D. padding:10px 0px 10px 0px; 9 / 15 9. Which of the following CSS3 property specifies the sequential navigation order for an element? A. nav B. class C. nav-index D. class-index 10 / 15 10. Which of the following is not a browser-specific versions of linear-gradient()? A. -moz-linear-gradient() B. -o-linear-gradient() C. -mac-linear-gradient() D. -webkit-linear-gradient() 11 / 15 11. What type of CSS is generally recommended for designing large web pages? A. Inline B. Internal C. External D. none of the above 12 / 15 12. The default value of "position" attribute is___________ A. fixed B. absolute C. inherit D. relative 13 / 15 13. Which property specifies where the background image is positioned? A. background-image B. background-origin C. background-position D. background-clip 14 / 15 14. If we want to show an Arrow as cursor, then which value we will use? A. pointer B. default C. arrow D. cursor 15 / 15 15. Which of the following syntax is correct in CSS to make each word of a sentence start with a capital letter? A. text-style : capital; B. transform : capitalize; C. text-transform : capital; D. text-transform : capitalize; Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin