CSS & CSS3 MCQ For Freshers & Experienced

  • Question 1) In css what does h1 can be called as
  • Question 2) Which of the following attributes is used to specify elements to bind style rules to?
  • Question 3) _______selectors, which are used to specify a group of elements
  • Question 4) __________implementation that introduced text, list, box, margin, border, color, background properties.
  • Question 5) Which Is The Correct CSS Syntax?
  • Question 6) Which of the following function define a linear gradient as a css image?
  • Question 7) Which of the following is not a value for font-style property?
  • Question 8) Which of the following selects a normal, or small-caps face from a font family?
  • Question 9) If we want to wrap a block of text around an image, which css property will we use ?
  • Question 10) Which of the following properties will we use to display border around a cell without any content ?
  • Question 11) If we want to show an Arrow as cursor, then which value we will use ?
  • Question 12) How can we write comment along with CSS code ?
  • Question 13) which property is used to control text size of an element in css?
  • Sharad Jaiswal
  • 27th Feb, 2020
  • 635 Followers

CSS & CSS3 MCQ
Updated ON

27th Feb, 2020

No. of Questions

30

Posted In

MCQ

Author

Sharad Jaiswal

CSS & CSS3 Multiple choice interview questions (MCQ)

Q1. In css what does h1 can be called as

  • Selector
  • Attribute
  • Value
  • Tag
View Answer
Selector

Q2. Which of the following attributes is used to specify elements to bind style rules to?

  • id
  • class
  • tag
  • all of the mentioned
View Answer
all of the mentioned

Q3. _______selectors, which are used to specify a group of elements

  • id
  • class
  • tag
  • both (B) and (C)

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

  • css
  • html
  • ajax
  • php

Q5. Which Is The Correct CSS Syntax?

  • Body:color=black
  • {body;color:black}
  • {body:color=black(body}
  • Body {color: Black}
View Answer
Body {color: Black}

Q6. Which of the following function define a linear gradient as a css image?

  • linear- gradient()
  • image()
  • gradient()
  • grayscale()
View Answer
linear- gradient()

Q7. Which of the following is not a value for font-style property?

  • normal
  • italic
  • oblique
  • None of the above
View Answer
None of the above

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

  • font-weight
  • font-synthesis
  • font-kerning
  • font-variant
View Answer
font-variant

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

  • wrap
  • push
  • float
  • align

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

  • empty-cell
  • void-cell
  • blank-cell
  • noncontent-cell
View Answer
empty-cell

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

  • pointer
  • arrow
  • arr
  • default
View Answer
default

Q12. How can we write comment along with CSS code ?

  • /* a comment */
  • // a comment //
  • / a comment /
  • <' a comment'>
View Answer
/* a comment */

Q13. which property is used to control text size of an element in css?

  • font-size
  • font-style
  • text-size
  • text-style
View Answer
font-size

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

  • spacing
  • inner-margin
  • margin
  • padding
View Answer
padding

Q15. The default value of "position" attribute is _________.

  • relative
  • inherit
  • absolute
  • fixed
View Answer
relative

Q16. How will you make all paragraph elements 'RED' in color ?

  • p {color: red;}
  • all.p {color: #998877;}
  • p.all {color: #990000;}
  • p.all {color: red;}
View Answer
p {color: red;}

Q17. Which of the following is the correct way to apply Styles?

  • inside an HTML element
  • all of the mentioned
  • inside the section of an HTML page
  • in an external CSS file
View Answer
all of the mentioned

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

  • position
  • padding
  • align
  • float
View Answer
position

Q19. A ___________ is used to define a special state of an element.

  • pseudo-tag
  • pseudo-element
  • pseudo-id
  • pseudo-class
View Answer
pseudo-class

Q20. Which of the following CSS list properties is/are correct?

  • Set an image as the list item marker
  • Set different list item markers for unordered lists
  • Set different list item markers for ordered lists
  • All of the mentioned
View Answer
All of the mentioned

Q21. 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?

  • z-index
  • x-index
  • s-index
  • d-index
View Answer
z-index

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

  • :nth-oftype(n)
  • :root
  • :only-child
  • None Of The Mentioned
View Answer
:only-child

Q23. What Should Be The Table Width, So That The Width Of A Table Adjust To The Current Width Of The Browser Window?

  • 1024 Px
  • Full-screen
  • 100.00%
  • 640 Pixels
View Answer
100.00%

Q24. Which CSS Property Sets A Background Image For An Element?

  • Background - Color
  • Background - Attachment
  • Background - Image
  • linear-gradient
View Answer
background-image

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

  • Onopen
  • Onerror
  • Onmessage
  • None Of The Above
View Answer
Onopen

Q26. What Is CSS Stand For

  • Cascade Style Sheet
  • Cascading Style Sheets
  • Cascade Sheets Style
  • Color Style Sheets
View Answer
Cascading Style Sheets

Q27. What is the correct HTML for referring to an external style sheet?

  • <stylesheet="cssfile" href="stylesheet">
  • <link rel="stylesheet" type="text.css" href="mystyle.css">
  • <style src="mystyle.css">
  • <stylesheet>mystyle.css</stylesheet>
View Answer
<link rel="stylesheet" type="text.css" href="mystyle.css">

Q28. Where in an HTML document is the correct place to refer to an external style sheet?

  • at the end of document
  • in the <head> section
  • in the <body> section
  • at the end of html section
View Answer
in the <head> section

Q29. Which HTML tag is used to define an internal style sheet?

  • <css>
  • <style>
  • <script>
  • <html>
View Answer
<style>

Q30. Which property is used to change the left margin of an element?

  • float
  • padding-left
  • indent
  • margin-left
View Answer
margin-left

About Author :

  • Author of CSS & CSS3 MCQ

    Sharad Jaiswal

    Sharad Jaiswal is Sr. Web Developer from Noida area. He have rich experience in PHP, Angular Js, React, javascript and Node .If you any query or project on these programming you can drop your enquiry in comment section.

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.