CSS Quiz | Set-1

Question 1
Which of the below is the abbreviation of CSS ?
Cross
Cascade sheets style
Cross
Color and style sheets
Tick
Cascading style sheets
Cross
Coded Style Sheet


Question 1-Explanation: 
CSS is used for designing the Html content of the webpage The correct full form of CSS is Cascading Style Sheets.
Question 2

Which of the following is the correct syntax to add the external stylesheet in CSS?

Cross

<style src = quiz.css>

Cross

<style src = \"quiz.css\">

Cross

<stylesheet> quiz.css </stylesheet>

Tick

<link rel=\"stylesheet\" type=\"quiz/css\" href=\"quiz.css\">



Question 2-Explanation: 

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 ?

Cross

bg color

Cross

color-background

Tick

background-color

Cross

color



Question 3-Explanation: 

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
Which of the below CSS class is used to change the text color of CSS ?
Cross
background-color
Tick
color
Cross
color-background
Cross
None of the above


Question 4-Explanation: 
The CSS color property is used to set the color of the HTML element. This property is responsible for setting the font color, background color, etc. The color of elements can be defined in many ways like Built-In Color, RGB Format, RGBA Format, etc.
Question 5

Which of the below is the correct syntax to put a line over text in CSS?

Cross

text-decoration: line

Cross

text-decoration: none

Tick

text-decoration: overline

Cross

text-decoration: underline



Question 5-Explanation: 

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 ?

Tick

text-indent property

Cross

text-underlne-property

Cross

text-decoration none

Cross

text-overflow property



Question 6-Explanation: 

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
Which of the below CSS properties represent the order of flex items in the grid container ?
Tick
order
Cross
float
Cross
overflow
Cross
All of the above


Question 7-Explanation: 
The order property in CSS which is used responsibly for the order of each flexible item in relation to other items inside the flexible container. If the element is not flexible then item then this property does not exist anymore.
Question 8

How do we set the default width of the font in CSS ?

Tick

font-stretch

Cross

font-weight

Cross

text-transform

Cross

font-variant



Question 8-Explanation: 

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 ?

Cross

Hover

Tick

Opacity

Cross

Transparent

Cross

Overlay



Question 9-Explanation: 

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 ?

Tick

text-stroke

Cross

text-transform

Cross

text-decoration

Cross

None of the above



Question 10-Explanation: 

The text-stroke is a CSS property that is used to add a stroke in the text. It is also supported by using WebKit.

There are 15 questions to complete.


  • Last Updated : 27 Sep, 2023

Share your thoughts in the comments
Similar Reads