Is it possible to create a modal using only HTML and CSS, without any JavaScript?
I'm working on a project where I cannot use JavaScript but I still need a modal.
<!DOCTYPE html>
<html>
<title>Minimal Modal Design</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.example.css">
<body>
<div class="modal-container">
<h2>Custom Modal Design</h2>
<button class="open-modal-button">Open Modal</button>
<div class="modal">
<div class="modal-content">
<div class="modal-close-button">×</div>
<p>Your text goes here.</p>
<p>Your text goes here.</p>
</div>
</div>
</div>
</body>
</html>