25th
Jul
CSS MCQ

CSS MCQ

  • Admin
  • 25th Jul, 2020
  • 541 Followers

CSS MCQ Quiz & Test

1) Which of the following is a valid unit for the font-size property in CSS?

  • A. lb
  • B. px
  • C. cx
  • D. None of the above

2) Which property is used to change the left margin of an element?

  • A. float
  • B. indent
  • C. margin-left
  • D. padding-left

3) if we want to wrap a block of text around an image, which css property will we use mcq?

  • A. align
  • B. float
  • C. push
  • D. wrap

4) The CSS __ properties are used to create space around elements, outside of any defined borders.

  • A. margin
  • B. padding
  • C. float
  • D. All of the above

5) Which CSS Property Sets The Stack Order Of An Element?

  • A. Clip
  • B. Overflow
  • C. Position
  • D. Z-index
Download Free : CSS MCQ PDF

6) What is the Default Value Of "position" Attribute?

  • A. Fixed
  • B. Static
  • C. Inherit
  • D. Absolute

7) The Default Value Of "position" Attribute Is

  • A. Fixed
  • B. Inherit
  • C. Static
  • D. Absolute

8) Which CSS Property Sets A Background Image For An Element?

  • A. Background - Image
  • B. Background - Color
  • C. Background - Attachment
  • D. All of the Above

9) __ is the origin of CSS.

  • A. SGML (Standard Generalized Markup Language)
  • B. HTML
  • C. DHTML
  • D. None of the above

10) What are the advantages of CSS?

  • A. Site-wide consistency
  • B. Page reformatting
  • C. Accessibility
  • D. All of the above

11) If We Want Define Style For An Unique Element, Then Which Css Selector Will We Use ?

  • A. Text
  • B. Class
  • C. Id
  • D. Name

12) How Can We Write Comment Along With CSS Code?

  • A. / A Comment /
  • B. <' A Comment'>
  • C. // A Comment //
  • D. /* A Comment */

13) The __ property is used to add rounded borders to an element:

  • A. border-radius
  • B. border-color
  • C. border-style
  • D. None of the above

14) Which css property you will use if you want to add some margin between a DIV's border and its inner text ?

  • A. spacing
  • B. margin
  • C. padding
  • D. inner-margin

15) Which is the correct css syntax?

  • A. {body;color:black}
  • B. Body:color=black
  • C. Body {color: Black}
  • D. {body:color=black(body}

16) Which CSS Property Is Used To Control The Text Size Of An Element ?

  • A. Text-size
  • B. Text-style
  • C. Font-size
  • D. Font-style

17) A CSS rule-set consists of a selector and a declaration block as follows:

  • A. h1{color:blue; font-size:30px;}
  • B. h1{color:blue font-size:30px;}
  • C. h1{color;blue; font-size;30px;}
  • D. All of the above

18) In css, choose the correct option to select this image by its id? ``` .

  • A. .mainpic { }
  • B. img { }
  • C. #mainpic { }
  • D. mainpic { }

19) What should be the table width, so that the width of a table adjust to the current width of the browser window?

  • A. 1024 Px
  • B. 100.00%
  • C. 640 Pixels
  • D. Full-screen

20) Pseudo-classes In CSS

  • A. Select The Active Links
  • B. Match A Specified Element
  • C. Are Used To Select All The Visited Links
  • D. Are Used To Define A Special State Of An Element

21) What are the types of CSS?

  • A. Internal CSS
  • B. Inline CSS
  • C. External CSS
  • D. All of the Above

22) Name some CSS style components.

  • A. Selector
  • B. Property
  • C. Value
  • D. All of the above

23) When We Write , What "img.png" Inside Double Quote Implies?

  • A. Value
  • B. Attribute
  • C. Element
  • D. Operator

24) What does CSS stands for?

  • A. Cascade Sheets Style
  • B. Cascade Style Sheet
  • C. Cascading Style Sheets
  • D. None of the above

25) Which of the following extension is used for CSS files?

  • A. .jsv
  • B. .html
  • C. .css
  • D. None of the above

26) __ are specified using predefined color names, or RGB, HEX, HSL, RGBA, HSLA values.

  • A. Colours
  • B. margins
  • C. paddings
  • D. All of the above

27) The CSS __ properties are used to generate space around an element's content, inside of any defined borders.

  • A. padding
  • B. margin
  • C. background
  • D. None of the above

28) What is CSS used for?

  • A. to create a web page
  • B. to create interactive components of a web page
  • C. to define the style and format of one or more web pages
  • D. None of the above

29) Which is the correct css syntax?

  • A. Body {color: Black}
  • B. {body;color:black}
  • C. Body:color=black
  • D. {body:color=black(body}

30) What are the advantages of External Style Sheets?

  • A. You can create classes for reusing it in many documents.
  • B. In complex situations, you can use selectors and grouping methods to apply styles.
  • C. By using it, you can control the styles of multiple documents from one file.
  • D. All of the above

31) The border-style property specifies what kind of border to display. The following values are allowed:

  • A. solid
  • B. dotted
  • C. dashed
  • D. double
  • E. All of the above

32) Which css property is used for controlling the layout?

  • A. Footer
  • B. Header
  • C. Display
  • D. All of the Above

33) Which of the following properties will we use to display border around a cell without any content?

  • A. Void-cell
  • B. Empty-cell
  • C. Blank-cell
  • D. Noncontent-cell

34) The CSS __ property is used to specify the transparency of an element.

  • A. opacity
  • B. margin
  • C. position
  • D. padding

35) Which symbol used to Identify an Universal selector?

  • A. *
  • B. !
  • C. $
  • D. None of the above

36) Which of the following CSS background properties?

  • A. background-image
  • B. background-position
  • C. background-repeat
  • D. background-attachment
  • E. All of the above

37) What property would you use to make text bold?

  • A. font-family
  • B. font-style
  • C. font-weight
  • D. text-decoration

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Dec
Laravel MCQ
01st
Dec
React JS MCQ
01st
Jan
AngularJs MCQ
01st
Jul
Node js MCQ
01st
Jul
Angular 2 MCQ
01st
Jul
JSON MCQ