The hidden attribute removes the need to define display: none
We don't need to define display: none by hand when creating the elements that can be shown or hidden. Just add the hidden attribute to the element and define all CSS with :not([hidden])💡
P.S.
❤ Thank you so much, my sponsors: Ben Rinehart, Tatiana Ten