1. Home
  2. Computer Science MCQs
  3. Bootstrap
  4. Which Bootstrap 5 utility class hides an element on all…

Added 2 Nov 2026

Which Bootstrap 5 utility class hides an element on all screen sizes?

  1. invisible-all
  2. d-none Correct answer
  3. hidden
  4. no-display

Correct answer

B. d-none

17 views

MCQSEXAM

Explanation

d-none sets display: none. It can be combined with responsive classes, such as d-none d-md-block to show the element only on medium screens and up.

Reference

Asked in: Frontend Developer Tests, Technical Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Bootstrap MCQs

Practise all Bootstrap MCQs

Similar MCQs