CSS Quiz | Set-1
Question 1 |
Cascade sheets style | |
Color and style sheets | |
Cascading style sheets | |
Coded Style Sheet |
Discuss it
Question 2 |
Which of the following is the correct syntax to add the external stylesheet in CSS?
<style src = quiz.css> | |
<style src = "quiz.css"> | |
<stylesheet> quiz.css </stylesheet> | |
<link rel="stylesheet" type="quiz/css" href="quiz.css"> |
Discuss it
There is a three-way for linking the HTML page to CSS. Out of three-way external CSS <link rel=" stylesheet" type=" quiz/css" href="quiz.css">, Here rel is a relationship for stylesheet and type is CSS under quiz folder and href link to the quiz.css file.
Question 3 |
Which of the below CSS properties is used to change the background color of CSS ?
bg color | |
color-background | |
background-color | |
color |
Discuss it
The background color is a property in CSS that is used to change the background color of an element. The background covers all the sizes of the element. This property helps the text be more readable for the user.
Question 4 |
background-color | |
color | |
color-background | |
None of the above |
Discuss it
Question 5 |
Which of the below is the correct syntax to put a line over text in CSS?
text-decoration: line | |
text-decoration: none | |
text-decoration: overline | |
text-decoration: underline |
Discuss it
The text-decoration: the overline property is used to sets many kinds of text-decoration. The text-decoration may include many values such as underline, overline, line-through, etc.
Question 6 |
Which below property of CSS is used to set the indentation of the first line in a block of text ?
text-indent property | |
text-underlne-property | |
text-decoration none | |
text-overflow property |
Discuss it
The text-indent property in CSS is used to define the indentation of the first line in each block of text. It also takes negative values. It means if the value is negative then the first line will be indented to the left.
Question 7 |
order | |
float | |
overflow | |
All of the above |
Discuss it
Question 8 |
How do we set the default width of the font in CSS ?
font-stretch | |
font-weight | |
text-transform | |
font-variant |
Discuss it
Font-stretch property in CSS is used to set the text narrower (condensed) or wider (expanded) than the default character width.
Question 9 |
Which element is used to represent the transparency of an element in CSS ?
Hover | |
Opacity | |
Transparent | |
Overlay |
Discuss it
Opacity is the property of an element in CSS that describes the transparency of the element. It can take a value from 0.0 - 1.0
Question 10 |
Which of the below CSS property is used to add a stroke in the text ?
text-stroke | |
text-transform | |
text-decoration | |
None of the above |
Discuss it
The text-stroke is a CSS property that is used to add a stroke in the text. It is also supported by using WebKit.