What is the difference between d-none, invisible and visually-hidden?
| Class | Effect |
|---|---|
.d-none | display none: no space, hidden for everyone (also screen readers) |
.invisible | visibility hidden: the space stays, hidden for everyone |
.visually-hidden | Not 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 |
|---|
| No Content Found. |
| Exercises & Assignments |
|---|
| No Content Found. |
| Interview Questions & Answers |
|---|
| No Content Found. |