Using for Menus and Dialogs is an Interesting Idea

One of the most empowering things you can learn as a new front-end developer who is starting to learn JavaScript is to change classes. If you can change classes, you can use your CSS skills to control a lot on a page. Toggle a class to one thing, style it this way, toggle to another class (or remove it) and style it another way.
But there is an HTML element that also does toggles!

! For example, it’s … Read article
The post Using <details> for Menus and Dialogs is an Interesting Idea appeared first on CSS-Tricks.

Link: https://css-tricks.com/using-details-for-menus-and-dialogs-is-an-interesting-idea/