css-exam 0 votes, 0 avg 571 123456789101112131415 CSS Questions 1 / 15 1. Which of the following attributes is used to specify elements to bind style rules to? A. Id B. Class C. Tag D. all of the above 2 / 15 2. When adding transparency styles, what is the difference between using the opacity property versus the background property with rgba() value? A. Opacity specifies the level of transparency of the child element. Background with a rgba() value applies transparency to the background color only. B. Opacity applies transparency to the background color only. Background with a rgba() value specifies the level of transparency of an element, as a whole, including its content. C. Opacity specifies the level of transparency of an element, including its content. Background with a rgba() value applies transparency to the background color only. D. Opacity applies transparency to the parent and child elements. Background with a rgba() value specifies the level of transparency of the parent element only. 3 / 15 3. Which of the following property will be used to display border around a cell without any content? A. Noncontent-cell B. Blank-cell C. Empty-cell D. Void-cell 4 / 15 4. Which Event Will Be Used When A Connection To The Server Is Opened. A. Onmessage B. Onopen C. Onerror D. none of the above 5 / 15 5. Which of the following Color Format is a CSS2 introduced named color keywords which allows Web page colors to be matched to an operating system’s color use? A. System Color Names B. HSLa Color C. Commonly defined named colors D. Specificationdefined named colors 6 / 15 6. Which of the following is the correct syntax to display the hyperlinks without any underline? A. a {decoration : no-underline;} B. a {text-decoration : none;} C. a {text-decoration : underline;} D. a {text decoration : none;} 7 / 15 7. Which of the following is used for spread radius? A. blur B. spread C. color D. v-offset 8 / 15 8. What will be the output of the following CSS code snippet? span { border: 1px solid red; outline: green dotted thick; } A. All span elements will have a green thick border and a red outline B. All span elements will have a red border and a green dotted outline C. All span elements will have a outer green dotted border and an inner red border D. All span elements will have an outer red border and inner green dotted border 9 / 15 9. 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? A. HSLa Color B. HSL Color C. RGBa Color D. RGB Color 10 / 15 10. Which of the following property controls the horizontal overflow of a block or inline block? A. overflow-x B. overflow C. overflow-y D. overflow-k 11 / 15 11. 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? A. position B. flexbox C. grid D. float 12 / 15 12. Which of the following property sets the background image to scroll or not to scroll with its associated element’s content? A. background-scroll B. background-attach C. background-attachment D. background-allowance 13 / 15 13. Which of the following is not value for the font-stretch(Font descriptor)? A. normal B. 50% C. expanded D. ultra-expanded 14 / 15 14. Which statement regarding icon fonts is true? A. Icon fonts can be inserted only using JavaScript. B. Icon fonts can be styled with typography-related properties such as font-size and color. C. Icon fonts are inserted as inline images. D. Icon fonts require browser extension. 15 / 15 15. The default value of "position" attribute is___________ A. fixed B. absolute C. inherit D. relative Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin