SSC IMD SA Mock 04 – Question 143

Question:

How to change all images to black and white (100% grey)?

सभी छवियों (images) को श्वेत और श्याम (100% ग्रे) में कैसे बदलें?

Options:

  • img { filter: graycolor(100%); }
  • img { filter: grayscale(100%); }
  • img { graycolor(100%); }
  • img { filter: “grayscale(100%)”; }
  • img { filter: graycolor(100%); }
  • img { filter: grayscale(100%); }
  • img { graycolor(100%); }
  • img { filter: “grayscale(100%)”; }

Correct Answer: b)

Explanation:

In CSS3, the `filter` property is used to apply graphical effects like blurring or color shifting to elements. The `grayscale(100%)` function completely converts an element/image to grayscale (black and white).

CSS3 में, `filter` गुण का उपयोग तत्वों पर विज़ुअल प्रभाव डालने के लिए किया जाता है। `grayscale(100%)` फ़ंक्शन छवि को पूरी तरह से ब्लैक एंड व्हाइट (100% ग्रेस्केल) में बदल देता है।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top