Which Bootstrap 5 utility class hides an element on all screen sizes?
Correct answer
B. d-none
17 views
B. d-none
17 views
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.
Asked in: Frontend Developer Tests, Technical Interviews
Not sure why the answer is B? Ask here and get an explanation.