By linking your A element/button to the ID for the modal contaner and using the :target pseudo-class, you can display/open a modal with no javascript whatsoever.
This is a great option for ultra-lightweight, simple modal needs. As with everything, it may not be the best solution for all modal needs. The biggest caveat I see right now is that only the close icon/link will close the modal.
×