CSS Modal is built out of pure CSS. JavaScript is only for sugar. This makes them perfectly accessible. A few other advantages: accessible, cross-browser, media-adaptive, small and fast…