show/hide/toggle *display) or class-based toggling.
The show, hide, and toggle *display commands all manipulate
the display style directly. They work together consistently.
This uses show, hide, and toggle *display.
Class-based visibility allows CSS transitions and custom styling. All three buttons
manipulate the same .hidden class, so they stay in sync.
This uses class manipulation: add, remove, and toggle.
show/hide/toggle *display): Quick visibility control, all work togethertoggle .hidden): When you want CSS transitions or need to style the hidden state
show/hide/toggle *display use inline styles, while toggle .hidden uses a CSS class.
Mixing them causes inconsistent state. Pick one approach and stick with it.