QUIZ
QUIZ
8. Which tag is used to define a term in a definition list? 17. Which type of CSS has the highest specificity by
a) <term> default?
b) <dt> a) Internal CSS
c) <df> b) Inline CSS
d) <tl>
c) External CSS 26. If an external CSS file and an internal <style> block
d) All have equal specificity define the same property for an element, which one will
be applied?
18. What happens when both internal and external CSS a) The external CSS
styles are applied to the same element? b) The internal CSS
a) The internal CSS overrides the external CSS c) The browser randomly chooses
b) The external CSS overrides the internal CSS d) Both will be ignored
c) The browser randomly selects one
d) Both styles will be ignored 27. Which of the following is an example of an inline
CSS rule?
19. What is a major advantage of using external CSS? a) <p style="color: red;">This is red text</p>
a) Styles can be applied to multiple HTML pages b) <style> p { color: red; } </style>
b) It has the highest specificity among all CSS types c) p { color: red; } inside an external .css file
c) It allows CSS to be written inside HTML elements d) <link rel="stylesheet" href="styles.css">
d) It does not require linking to an HTML document
28. Which of the following is NOT true about external
20. Which method is best for applying styles to a large CSS?
website with multiple pages? a) It makes HTML files cleaner
a) Inline CSS b) It requires an additional HTTP request
b) Internal CSS c) It has the highest specificity by default
c) External CSS d) It allows for better separation of concerns
d) JavaScript-based CSS
29. Which of the following CSS types can be used to
21. Which CSS type is best for applying quick styles to override external stylesheets?
a single element without affecting the entire document? a) Inline CSS
a) Inline CSS b) Internal CSS
b) Internal CSS c) Both Inline and Internal CSS
c) External CSS d) None of the above
d) None of the above
30. Which of the following CSS types provides the best
22. If an element has styles applied from an external separation of content and design?
stylesheet, an internal <style> block, and an inline style, a) Inline CSS
which style will take precedence? b) Internal CSS
a) External CSS c) External CSS
b) Internal CSS d) Embedded CSS
c) Inline CSS
d) The first defined style in the document