CSS MCQ

Below CSS quiz are Multiple Choice Questions (MCQs) type Quiz. These CSS MCQ Questions helps you to refresh your CSS, you can see the correct option by clicking on it. .
  • 1. If we want to show an Arrow as cursor, then which value we will use ?

    • pointer
    • default
    • arrow
    • arr
  • 2. Which css property you will use if you want to add some margin between a DIV's border and its inner text ?

    • spacing
    • margin
    • padding
    • inner-margin
  • 3. Can we align a Block element by setting the left and right margins ?

    • Yes Possible
    • Not possible
  • 4. If we want define style for an unique element, then which css selector will we use ?

    • Id
    • element
    • class
    • child
  • 5. By default Hyperlinks are displayed with an underline. How do you remove the underline from all hyperlinks by using CSS code ?

    • a {text: no-underline;}
    • a {text-decoration:none;}
    • a {text-style: no-underline;}
    • a {text-decoration: no-underline;}
  • 6. If we want to wrap a block of text around an image, which css property will we use ?

    • wrap
    • push
    • float
    • align
  • 7. Using Responsive Web Design (RWD) ensures that site will display correctly in all desktop browsers and mobile devices.You used a grid-based layout and resize-able images, which is another RWD technique that you can use in responsive design?

    • Use relative units, such as percentages, for positioning page elements
    • Use standard page structure elements, including <header>, <footer> and <article>,  because older devices will display content in the structure elements correctly
    • Use static pixels for all content positioning 
    • Use smaller fonts for all body text, to ensure it will appear correctly on smaller screens
  • 8. Which CSS code is buggy?

    • link {color: blue;}
    • li {background-color: red;}
    • p {font-size: 10px;}
    • img {width: 100%;}
  • 9. When we write <img src="img.png">, what "img.png" inside double quote implies?

    • element
    • attribute
    • value
    • operator
  • 10. Which is not a property of attribute Behaviour of <Marquee> tag?

    • alternate
    • blur
    • scroll
    • slide
  • 11. Which of the following is the correct CSS syntax?

    • p:color=green, font-size=15px
    • {p:color=green, font-size=15px}
    • p {color:green, font-size:15px;}
    • p {color:green; font-size:15px;}