css-exam 0 votes, 0 avg 547 123456789101112131415 CSS Questions 1 / 15 1. CSS is written in which language? A. PHP B. HTML C. JAVA D. Python 2 / 15 2. Which of the following CSS3 property specifies the sequential navigation order for an element? A. nav B. class C. nav-index D. class-index 3 / 15 3. Which of the following CSS property defines how an image or video fits into container with established height and width? A. object-fit B. object-contain C. object-cover D. position:fixed 4 / 15 4. Which of the following CSS property specifies the look and design of an outline? A. outline-style B. outline-format C. outline-font D. none of the mentioned 5 / 15 5. Which one can animate the width of search input when get focus? A. focus B. outline C. transition D. color 6 / 15 6. What is the correct syntax for referring an external CSS? A. <link rel="stylesheet" type="text/css" href="style.css"/> B. <style rel="stylesheet" type="text/css" href="style.css"></style> C. <script rel="stylesheet" type="text/css" href="style.css"></script> D. none of the above 7 / 15 7. Which CSS property is used for controlling the layout? A. Header B. Footer C. Display D. Cascade 8 / 15 8. Which statement about block and inline elements is true? A. By default, block elements are the same height and width as the content container between their tags; Inline elements span the entire width of its container. B. By default, block elements are span the entire width of its container; Inline elements are the same height and width as the content container between their tags; C. A nav tag element is an example of an inline element. Header tag is an example of a block element. D. A span tag is an example of a block element. Div tag is an example of an inline element. 9 / 15 9. Which of the following Viewport Property determines whether the display can be zoomed in and out? A. scale B. set-scale C. adjust-scale D. user-scalable 10 / 15 10. How do you comment in CSS file? A. //this is a coment// B. /* this is a comment */ C. //this is a comment D. <!-- this is a comment --> 11 / 15 11. Which of the following will insert generated content in the counter? A. content B. counter-reset C. counter-increment D. counter() 12 / 15 12. What is the use of Pseudo-classes In CSS? A. To Match A Specified Element B. To select the active links C. Are used to select all the visited links D. Are used to define a special state of an element 13 / 15 13. What is the difference between display:none and visibillity:hidden? A. Both will hide the element on the page, but display:none has greater browser support, visibilty:hidden is a new property and does not have the best browser support. B. display:none hides the element but maintain the space it previously occupied. Visibility:hidden will hide the element from view and remove it from the normal flow of the document. C. display:none hides the element from view and removes it from the normal flow of the document. Visibility:hidden will hide the element but maintain the space it previously occupied. D. There is no difference, they both hide the elements on the page. 14 / 15 14. What should be the table width, So that the width of the table adjust to the current width of the browser window? A. 640 pixels B. 100.00% C. full-screen D. 1024 px 15 / 15 15. Using an attribute selector, how would you select an a tag element with a 'title' attribute? A. a[title]{...} B. a>title{…} C. a.title{…} D. a=title{…} Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin