CSS & CSS3 MCQ

CSS & CSS3 MCQ | Freshers & Experienced

  • Sharad Jaiswal
  • 12th Feb, 2021

 We have listed here Best CSS & CSS3 MCQ Questions for your basic knowledge of CSS & CSS3. This CSS & CSS3 MCQ Test contains 30 multiple Choice Questions. You have to select the right answer to every question.

CSS & CSS3 Multiple choice interview questions (MCQ)

1) In css what does h1 can be called as

  • A. Selector
  • B.Attribute
  • C.Value
  • D.Tag

2) Which of the following attributes is used to specify elements to bind style rules to?

  • A. id
  • B.class
  • C.tag
  • D.all of the mentioned

3) _______selectors, which are used to specify a group of elements

  • A. id
  • B.class
  • C.tag
  • D.both (B) and (C)

4) __________implementation that introduced text, list, box, margin, border, color, background properties.

  • A. css
  • B.html
  • C.ajax
  • D.php

5) Which Is The Correct CSS Syntax?

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

6) Which of the following function define a linear gradient as a css image?

  • A. linear- gradient()
  • B.image()
  • C.gradient()
  • D.grayscale()

7) Which of the following is not a value for font-style property?

  • A. normal
  • B.italic
  • C.oblique
  • D.None of the above

8) Which of the following selects a normal, or small-caps face from a font family?

  • A. font-weight
  • B.font-synthesis
  • C.font-kerning
  • D.font-variant

9) If we want to wrap a block of text around an image, which css property will we use ?

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

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

  • A. blank-cell
  • B.void-cell
  • C.empty-cell
  • D.noncontent-cell

11) If we want to show an Arrow as cursor, then which value we will use ?

  • A. pointer
  • B.arrow
  • C.arr
  • D.default

12) How can we write comment along with CSS code ?

  • A. // a comment //
  • B./* a comment */
  • C./ a comment /
  • D.<' a comment'>

13) which property is used to control text size of an element in css?

  • A. font-size
  • B.font-style
  • C.text-size
  • D.text-style

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.inner-margin
  • C.margin
  • D.padding

15) The default value of "position" attribute is _________.

  • A. relative
  • B.inherit
  • C.absolute
  • D.fixed

16) How will you make all paragraph elements 'RED' in color ?

  • A. p {color: red;}
  • B.all.p {color: #998877;}
  • C.p.all {color: #990000;}
  • D.p.all {color: red;}

17) Which of the following is the correct way to apply Styles?

  • A. inside an HTML element
  • B.in an external CSS file
  • C.inside the section of an HTML page
  • D.all of the mentioned

18) The __________ property specifies the type of positioning method used for an element.

  • A. position
  • B.padding
  • C.align
  • D.float

19) ___________ is used to define a special state of an element.

  • A. pseudo-tag
  • B.pseudo-element
  • C.pseudo-id
  • D.pseudo-class

20) Which of the following CSS list properties is/are correct?

  • A. Set an image as the list item marker
  • B.Set different list item markers for unordered lists
  • C.Set different list item markers for ordered lists
  • D.All of the mentioned

21) Suppose we want to arragnge five nos. of DIVs so that DIV4 is placed above DIV1. Now, which css property will we use to control the order of stack?

  • A. z-index
  • B.x-index
  • C.s-index
  • D.d-index

22) Which Of The Following Selector Selects An Element If It's The Only Child Of Its Parent?

  • A. :nth-oftype(n)
  • B.:root
  • C.:only-child
  • D.None Of The Mentioned

23) 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.Full-screen
  • C.100.00%
  • D.640 Pixels

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

  • A. Background - Color
  • B.Background - Attachment
  • C.Background - Image
  • D.linear-gradient

25) Which Event Will Be Used When A Connection To The Server Is Opened.

  • A. Onopen
  • B.Onerror
  • C.Onmessage
  • D.None Of The Above

26) What Is CSS Stand For

  • A. Cascade Style Sheet
  • B.Cascading Style Sheets
  • C.Cascade Sheets Style
  • D.Color Style Sheets

27) What is the correct HTML for referring to an external style sheet?

  • A. <stylesheet="cssfile" href="stylesheet">
  • B.<link rel="stylesheet" type="text.css" href="mystyle.css">
  • C.<style src="mystyle.css">
  • D.<stylesheet>mystyle.css

28) Where in an HTML document is the correct place to refer to an external style sheet?

  • A. at the end of document
  • B.in the <head> section
  • C.in the <body> section
  • D.at the end of html section

29) Which HTML tag is used to define an internal style sheet?

  • A. <css>
  • B.<style>
  • C.<script>
  • D.<html>

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

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

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Feb
React JS MCQ
01st
Feb
Angular Js MCQ
01st
Feb
Angular 2 MCQ
01st
Feb
JSON MCQ
01st
Feb
PHP MCQ