R4RIN
MCQS
CSS MCQ Quiz Hub
CSS Multiple-Choice Questions
Choose a topic to test your knowledge and improve your CSS skills
1. What is CSS stands for?
Cascading Style Sheets
Cascade Style Sheet
Color Style Sheets
Color Style Sheet
2. What CSS describes?
CSS describes how calculation perform on button click.
CSS describes how HTML elements are to be displayed on screen, paper, or in other media
Both A. and B.
None of the above
3. What is the correct syntax for referring an external CSS?
<link rel="stylesheet" type="text/css" href="mystyle.css">
<stylesheet rel="stylesheet" type="text/css" href="mystyle.css">
<style rel="stylesheet" type="text/css" href="mystyle.css">
All the above
4. What is a CSS selector?
A CSS selector is the CSS class name
A CSS selector is the set of properties that are going to be applied on HTML elements
A CSS selector is name of CSS file.
A CSS selector is the first part of a CSS Rule. It may an HTML element or pattern of elements.
5. In a CSS file, there is a CSS rule for paragraphs tags – what does p can be called?
Selector
Attribute
Property
Tag
6. Internal styles are written within the _____ element.
<style>…</style>
<css>…</css>
<stylesheet>…</stylesheet>
Both A. and B.
7. Inline styles are written within the _____ attribute.
style
css
stylesheet
Both A. and B.
8. CSS comments are placed within the ______.
//
/* and */
<* and *>
<! And !>
9. Which property is used to define the text color?
text-color
color f
ont-color
Both A. and B.
10. Which property is used to define the background color?
bgcolor
bg-color
background
background-color
11. From the given options which is/are the valid way to represent a color?
A valid color name like "blue"
HEX code like "#0000ff"
RGB Value like "rgb(0,0,255)
All the above
12. Which property is used to define the font of the element's text?
font
font-family
font-style
All of the above
13. What are the valid values of font-style property?
italic, bold, bolder
normal, bold, italic
underline, bold, italic
inherit, italic, normal, oblique
14. Why font-weight property is used?
Sets how thick or thin characters in text should be displayed.
Sets the size of the font
Both A. and B.
None of the above
15. What is/are the correct value(s) of font-weight property?
bold, italic, underline
normal, bold, italic
normal, bold, bolder, lighter, initial, and inherit
None of the above
16. Which is the correct inline CSS for p tag to define paragraph's text and background colors?
<p css="color: red; background-color: yellow;">
<p cssstyle="color: red; background-color: yellow;">
<p inline="color: red; background-color: yellow;">
<p style="color: red; background-color: yellow;">
Submit