CSS Quiz | Set-1

  • Last Updated : 29 Sep, 2021

Question 1
Which of the below is the abbreviation of CSS ?
A
Cascade sheets style
B
Color and style sheets
C
Cascading style sheets
D
Coded Style Sheet
CSS Quiz | Set-1    
Discuss it


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?

A

<style src = quiz.css>

B

<style src = "quiz.css">

C

<stylesheet> quiz.css </stylesheet>

D

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

CSS Quiz | Set-1    
Discuss it


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 ?

A

bg color

B

color-background

C

background-color

D

color

CSS Quiz | Set-1    
Discuss it


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 ?
A
background-color
B
color
C
color-background
D
None of the above
CSS Quiz | Set-1    
Discuss it


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?

A

text-decoration: line

B

text-decoration: none

C

text-decoration: overline

D

text-decoration: underline

CSS Quiz | Set-1    
Discuss it


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 ?

A

text-indent property

B

text-underlne-property

C

text-decoration none

D

text-overflow property

CSS Quiz | Set-1    
Discuss it


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 ?
A
order
B
float
C
overflow
D
All of the above
CSS Quiz | Set-1    
Discuss it


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 ?

A

font-stretch

B

font-weight

C

text-transform

D

font-variant

CSS Quiz | Set-1    
Discuss it


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 ?

A

Hover

B

Opacity

C

Transparent

D

Overlay

CSS Quiz | Set-1    
Discuss it


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 ?

A

text-stroke

B

text-transform

C

text-decoration

D

None of the above

CSS Quiz | Set-1    
Discuss it


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.
My Personal Notes arrow_drop_up