Question 145Asked in DSSSB TGT Computer Science, 24 Jun 2023, Shift 3 (4:30 PM)

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

  1. Aimg { filter: graycolor(100%);}
  2. Bimg { filter: grayscale(100%);}
  3. Cimg { graycolor(100%);}
  4. Dimg { filter: "grayscale(100%)";}
Show answerHide answer

Correct answer: (B) img { filter: grayscale(100%);}

Explanation

The CSS filter grayscale(100%) makes an image completely black and white, so the rule is img { filter: grayscale(100%); }.

From DSSSB TGT Computer Science PYQ, 24 Jun 2023, Shift 3 (4:30 PM)

This is question 145 of DSSSB TGT Computer Science PYQ, 24 Jun 2023, Shift 3 (4:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.