
CSS MCQ 02
13. Which of the following is the correct syntax to link an external style sheet in the HTML file?
a) <link rel=”stylesheet” href=”style.css” />
b) <link rel=”stylesheet” src=”style.css” />
c) <style rel=”stylesheet” src=”style.css” />
d) <style rel=”stylesheet” link=”style.css” />
Answer: a
14. Which of the following is the first CSS specification to become an official W3C Recommendation?
a) CSS level 2
b) (X)HTML CSS
c) CSS level 1
d) CSS level 2.1
Answer: c
15. Which of the following function defines a linear gradient as a CSS image?
a) gradient()
b) linear-gradient()
c) grayscale()
d) image()
Answer: b
16. Which of the following CSS property can be used to set the image as a border instead of the border style?
a) background-image-source
b) background-image
c) border-image-source
d) border-image
Answer: c
17. Which of the following CSS property defines the different properties of all four sides of an element’s border in a single declaration?
a) border-collapse
b) border-width
c) padding
d) border
Answer: b
18. Which of the following is the correct way to apply CSS Styles?
a) in an external CSS file
b) inside an HTML element
c) inside the
d) all of the mentioned
Answer: d
19. Which of the following CSS property sets the font size of text?
a) font-size
b) text-size
c) text
d) size
Answer: a
20. Which of the following is not the property of the CSS box model?
a) margin
b) color
c) width
d) height
Answer: b
21. Which of the following CSS property sets what kind of line decorations are added to an element, such as underlines, overlines, etc?
a) text-decoration
b) text-style
c) text-decoration-line
d) text-line
Answer: c
22. 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
Answer: a