🧪 CSS MCQ Quiz Hub

CSS MCQ Questions

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

1. Which of the following value is supposed to be a slightly bolder weight that standard bold in font attribute?




2. Which of the following property allows contextual adjustment of inter-glyph spacing i.e. the spaces between the characters in text?




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




4. Which of the following value specifies whether the user agent is allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces?




5. Which of the following selects a normal or small-caps face from a font family?




6. Which of the following is not a appropriate value for font-variant property?




7. Which of the following property adjusts the font-size of the fallback fonts defined with font-family so that the x-height is the same no matter what font is used?




8. Which of the following Allows you to expand or condense the widths for a normal condensed or expanded font face?




9. Which of the following font-size-adjust is value used in calculating the size of the fallback fonts?




10. Which CSS property is equivalent for the attribute <center>?




11. Which CSS property is Equivalent for the align attribute?




12. Which is the latest version of CSS available?




13. Which CSS property is equivalent for the attribute <font>?




14. Which of the following CSS property is used to give a line over the text?




15. The first CSS specification to become an official W3C Recommendation is ___________




16. _________ first became a Candidate Recommendation on February 25 2004 but it was reverted to a Working Draft on June 13 2005 for further review.




17. There is no single integrated ____________________ because it is split into separate modules.CSS1 specification




18. Unlike CSS 2 which is a large single specification defining various features?




19. ___________ describes CSS properties to manipulate the position of �ruby� which are small annotations on top of or next to words especially common in Chinese and Japanese.




20. ___________ has a grammar but unlike traditional (X)HTML it is not defined with a document type definition.




21. What will be the output of following code snippet?




22. What will be the output of below mentioned code snippet? h1 {color: green;}




23. Which of the following is the correct way to applying style to a document?




24. With which tag you write the style rules directly within the document foundwithin the head of the document.




25. What does screen media type is used for?




26. Which of the following tag is used to linked information should be placed inside?




27. Which of the following tag can be used to embed a Document-wide styles in a documents head element?




28. The ________________ directive allows style sheets to be grouped and joined together though some might wonder what the value of this function is given what linked styles provide.




29. Which of the following measurement defines a measurement relative to a fonts x-height?




30. Which of the following measurement defines measurement as a percentage?




31. Which of the following property sets the font size of text?




32. Which of the following property sets a variation of the specified or default font family?height




33. Which of the following property defines labels for a list of items?




34. Which of the following property assigns a graphic image to a list item?




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




36. Which of the following CSS3 Color Feature can be used as a macro for whatever the current color is?




37. Which of the following CSS3 Color Feature like RGB color but adds an alpha channel value to specify the opacity of the color?




38. Which of the following Color Format is a CSSs six-digit hexadecimal format is the same as color defined in (X)HTML?




39. Which of the following Color Format is a CSS2 introduced named color keywords which allows Web page colors to be matched to an operating systems color use?




40. Which of the following Color Format are a 17 defined colors under CSS 2.1?




41. Which of the following Color Format is a CSS colors can also be defined using the keyword rgb followed by three numbers between 0 and 255 contained in parentheses and separated by commas with no spaces between them?




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




43. Which of the following Selector selects an element if its the only child of its parent with its type?




44. Which of the following Selector same as :firstline; changed under CSS3 to make pseudoelements obvious?




45. What does HSL stands for?




46. Which of the following is not an Absolute Unit?




47. Which of the following unit represent the viewports width?




48. Which of the following Color Format can also be defined using the keyword rgb followed by three numbers between 0 and 255 contained in parentheses and separated by commas with no spaces between them?RGB Color




49. Which of the following is not a attribute of the audio element?




50. Which of the following element is used to specify multiple media resources for media elements like audio and video?




51. Which of the following Protocol enables a hyperlink to access a file on the local file system?




52. Which of the following element is used for linking a External Files to the html page?




53. Which of the following attribute specifies the URL of the linked resource?




54. 10. Which of the following color has this value #ff0000?




55. Which of the following CSS property defines the different properties of all four sides of an elements border in a single declaration?




56. Identify the CSS property defining bottom-left corner shape of the border?




57. border-width




58. Which of the following CSS property border-color property sets the color of an elements four borders?




59. Choose the CSS property that can be used for collapsing the borders between table cells?




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




61. In how many way border-image-width CSS property can be defined?




62. Which of the following is not an appropriate value for border-collapse?




63. Which of the following specifies the distance between the borders of adjacent cells?




64. Which of the following property defines the border-width border-style and border-color of an elements top border in a single declaration?




65. Which of the following CSS property is used to set the text formatting?




66. Which of the following sets the color of any text decoration such as underlines overlines and strike throughs?




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




68. Which of the following text-decoration value specifies each line of text has a line above it?




69. Which of the following