3 Cara Menyembunyikan Elemen Playground

Grandma Marni’s mango crate is sold out: write the CSS that hides crate B, and the browser answers six questions: whether it keeps its room, shows, takes Mrs…

Why it matters

Picking the wrong way to hide is a real bug: a transparent button that still catches clicks, an invisible link Tab still lands on (keyboard users get lost), a layout that jumps, or a screen reader label that vanishes too. You need to know what stays alive with each one.

The key idea

Hiding is four separate questions: space, paint, pointer, focus

Common mistakes

Try it in this playground