Basic example

<button commandfor="only-html" command="show-modal">Open a modal (only HTML)</button>
<dialog id="only-html">
    <p>Hello 👋. Nice to meet you!</p>
    <p><i><b>(Opened with only HTML)</b></i></p>
    <form method="dialog">
        <button>Close</button>
    </form>
</dialog>
Playground

Hello 👋. Nice to meet you!

(Opened with only HTML)

Hello 👋. Nice to meet you!

(Opened with only JS)

Hello 👋. Nice to meet you!

(Customized backdrop)

Hello 👋. Nice to meet you!

(As a drawer)