1) CSS stands for –
- Cascade style sheets
- Color and style sheets
- Cascading style sheets
- None of the above
2) Which of the following is the correct syntax for referring the external style sheet?
- <style src = example.css>
- <style src = “example.css” >
- <stylesheet> example.css </stylesheet>
- <link rel=”stylesheet” type=”text/css” href=”example.css”>
3) The property in CSS used to change the background color of an element is –
- bgcolor
- color
- background-color
- All of the above
4) The property in CSS used to change the text color of an element is –
- bgcolor
- color
- background-color
- All of the above
5) The CSS property used to control the element’s font-size is –
- text-style
- text-size
- font-size
- None of the above
6) The HTML attribute used to define the inline styles is –
- style
- styles
- class
- None of the above
7) The HTML attribute used to define the internal stylesheet is –
- <style>
- style
- <link>
- <script>
8) Which of the following CSS property is used to set the background image of an element?
- background-attachment
- background-image
- background-color
- None of the above
9) Which of the following is the correct syntax to make the background-color of all paragraph elements to yellow?
- p {background-color : yellow;}
- p {background-color : #yellow;}
- all {background-color : yellow;}
- all p {background-color : #yellow;}
10) Which of the following is the correct syntax to display the hyperlinks without any underline?
- a {text-decoration : underline;}
- a {decoration : no-underline;}
- a {text-decoration : none;}
- None of the above
11) Which of the following property is used as the shorthand property for the padding properties?
- padding-left
- padding-right
- padding
- All of the above
12) The CSS property used to make the text bold is –
- font-weight : bold
- weight: bold
- font: bold
- style: bold
13) Are the negative values allowed in padding property?
- Yes
- No
- Can’t say
- May be
14) Which of the following property is used as the shorthand property of margin properties?
- margin-left
- margin-right
- margin
- None of the above
15) The CSS property used to specify the transparency of an element is –
- opacity
- filter
- visibility
- overlay
16) Which of the following is used to specify the subscript of text using CSS?
- vertical-align: sub
- vertical-align: super
- vertical-align: subscript
- None of the above
17) Which of the following CSS property is used to specify the space between every letter inside an element?
- alpha-spacing
- character-spacing
- letter-spacing
- alphabet-spacing
18) The CSS property used to specify whether the text is written in the horizontal or vertical direction?
- writing-mode
- text-indent
- word-break
- None of the above
19) Which of the following syntax is correct in CSS to make each word of a sentence start with a capital letter?
- text-style : capital;
- transform : capitalize;
- text-transform : capital;
- text-transform : capitalize;
20) How to select the elements with the class name “example”?
- example
- #example
- .example
- Class example
21) Which of the following is the correct syntax to select all paragraph elements in a div element?
- div p
- p
- div#p
- div ~ p
22) Which of the following is the correct syntax to select the p siblings of a div element?
- p
- div + p
- div p
- div ~ p
23) The CSS property used to draw a line around the elements outside the border?
- border
- outline
- padding
- line
24) Which of the following CSS property is used to add shadows to the text?
- text-shadow
- text-stroke
- text-overflow
- text-decoration
25) Which of the following is not a value of the font-variant property in CSS?
- normal
- small-caps
- large-caps
- inherit
26) Which of the following CSS property is used to specify whether the table cells share the common or separate border?
- border-collapse
- border-radius
- border-spacing
- None of the above
27) The CSS property used to make the rounded borders, or rounded corners around an element is –
- border-collapse
- border-radius
- border-spacing
- None of the above
28) The CSS property used to set the distance between the borders of the adjacent cells in the table is –
- border-collapse
- border-radius
- border-spacing
- None of the above
29) Which of the following selector in CSS is used to select the elements that do not match the selectors?
- :! selector
- :not selector
- :empty selector
- None of the above
30) Which of the following is not a type of combinator?
- >
- ~
- +
- *
31) Which of the following CSS property defines how an image or video fits into container with established height and width?
- object-fit
- object-position
- position
- None of the above
32) Which type of CSS is used in the below code?
- <p style = “border:2px solid red;”>
- Inline CSS
- Internal CSS
- External CSS
- None of the above
33) Which of the following CSS property specifies the origin of the background-image?
- background-origin
- background-attachment
- background-size
- None of the above
34) The CSS property used to set the maximum width of the element’s content box is –
- max-width property
- height property
- max-height property
- position property
35) Which if the following CSS function allows us to perform calculations?
- calc() function
- calculator() function
- calculate() function
- cal() function
36) The CSS property used to set the maximum height of the element’s content box is –
- max-width property
- height property
- max-height property
- position property
37) The CSS property used to set the minimum width of the element’s content box is –
- max-width property
- min-width property
- width property
- All of the above
38) Which of the following CSS property is used to represent the overflowed text which is not visible to the user?
- text-shadow
- text-stroke
- text-overflow
- text-decoration
39) The CSS property which is used to define the set the difference between two lines of your content is –
- min-height property
- max-height property
- line-height property
- None of the above
40) The CSS property which is used to define the set the difference between two lines of your content is –
- min-height property
- max-height property
- line-height property
- None of the above
41) Which of the following CSS property is used to add stroke to the text?
- text-stroke property
- text-transform property
- text-decoration property
- None of the above
42) Which of the following CSS property is used to set the blend mode for each background layer of an element?
- background-blend-mode property
- background-collapse property
- background-transform property
- background-origin property
43) The CSS property used to specify the transparency of an element is –
- Hover
- opacity
- clearfix
- overlay
44) Which of the following CSS property is used to set the horizontal alignment of a table-cell box or the block element?
- text-align property
- text-transform property
- text-shadow property
- text-decoration
45) The CSS property which is used to set the text wider or narrower compare to the default width of the font is –
- font-stretch property
- font-weight property
- text-transform property
- font-variant property
46) Which of the following CSS property is used to specify the type of quotation mark?
- quotes property
- z-index property
- hyphens property
- None of the above
47) The CSS property used to specify the order of flex item in the grid container is –
- order property
- float property
- overflow property
- None of the above
48) The CSS property used to set the indentation of the first line in a block of text is –
- text-indent property
- text-stroke property
- text-decoration property
- text-overflow property
49) Which of the following CSS property creates a clipping region and specifies the visible area of the element?
- visibility property
- background-clip property
- clip-path property
- None of the above
50) The correct syntax to give a line over text is –
- text-decoration: line-through
- text-decoration: none
- text-decoration: overline
- text-decoration: underline