CSS MCQ Quiz Hub

Css Mcq Set 1

Choose a topic to test your knowledge and improve your CSS skills

1. What is CSS?




2. Who invented CSS?




3. Which of the following tag is used to embed css in html page?




4. Which of the following CSS selectors are used to specify a group of elements?




5. In CSS, what does h1 can be called as _______




6. Which of the following has introduced text, list, box, margin, border, color, and background properties?




7. Which of the following CSS framework is used to create a responsive design?




8. Which CSS selector is used to specify a rule to bind a particular unique element?




9. In CSS, “font-size” can be called as ________




10. Which type of HTML tag is used to define an internal style sheet?




11. Which CSS property is used to make the text bold?




12. What will be the output of following CSS code snippet? h1 {color: "green";}




13. Which of the following CSS style property is used to specify an italic text?




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




15. Which of the following are the CSS Extension Prefixes for Webkit?




16. Which is the correct syntax to link an external style sheet in the HTML file?




17. Which of the following is the first CSS specification to become an official W3C Recommendation?




18. Which of the following is the correct way to apply CSS style to a document?




19. Which of the following is not a value for the font-style property?




20. Which of the following function defines a linear gradient as a CSS image?




21. In css, “color:red” can be called as ________




22. Which CSS property can be used to set the image as a border instead of the border style?




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




24. Which of the following CSS property specifies an image to use as the background of an element?




25. Which of the following is the correct way to apply CSS Styles?




26. Which of the following CSS3 property is used to tell the browser what the sizing properties should be included?




27. Which of the following CSS property sets the font size of text?




28. Which is not the property of the CSS box model?




29. Which of the following CSS property sets the amount of spacing between letters?




30. Which of the following CSS property sets what kind of line decorations are added to an element, such as underlines, overlines, etc?




31. Which of the following CSS property specifies the look and design of an outline?




32. Which of the following CSS property specifies the placement of an element in relation to floating objects?




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




34. Which of the following CSS property adds padding to the top of an element?




35. Which of the following CSS property sets the shadow for a box element?




36. Which of the following CSS property is used to set the color of the text?




37. Which of the following CSS Property controls how an element is positioned?




38. Which of the following CSS selector selects the elements that are checked?




39. Which of the following is an appropriate value for the overflow element?




40. Which of the following CSS property is used to specify table borders in CSS?




41. Which of the following element is used to create a SVG rectangle?




42. Which of the following CSS property converts text to initial capitals, all uppercase, or all lowercase?




43. Which of the following CSS property sets the opacity level for an element?




44. Which of the following strings are defined in CSS?




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




46. What will be the output of the following CSS code? div { border-width:5px; border-style:dotted solid double dashed; }




47. Which of the following CSS property defines the space between cells in a table?




48. ______ has introduced text, list, box, margin, border, color, and background properties.




49. Select the CSS property that sets the width of an element’s bottom border?




50. What will be the output of following code snippet? <style h1 {color: green;}> <h1>Hello</h1>




51. The _______property is used to set the color of the text.




52. Which of the following is the correct way to apply Styles?