There isn't just a single CSS property that you reach for when hiding and showing things in CSS. There are a bunch of considerations that we'll go over in this video.
For instance, there is the display property in which display: none; is very effective at hiding things. But it will hide that element from assistive technology as well, and you don't always want that, like a dropdown navigation menu (the dropdowns are visually hidden but shouldn't be hidden from …
view more