What is the difference between d-none, invisible and visually-hidden?

ClassEffect
.d-nonedisplay none: no space, hidden for everyone (also screen readers)
.invisiblevisibility hidden: the space stays, hidden for everyone
.visually-hiddenNot seen on the screen, but read by screen readers

Use .visually-hidden (the old name was .sr-only) for labels like “Loading…” in a spinner. See Utilities.


Learn more about the similar topics:
Tutorials
Bootstrap Spacing: Margin, Padding and Gap
Bootstrap Flex Utilities
Bootstrap Utilities
Exercises & Assignments
Center a box horizontally and vertically with flex utilities
Interview Questions & Answers
How do you center content in Bootstrap?
What are the spacing classes (margin and padding) in Bootstrap?
How do you show or hide elements on different screen sizes in Bootstrap?
What is the difference between d-none, invisible and visually-hidden?