👉 Dialog

<dialog id="dialog-1">
    <header>
        <h3>Dialog by default</h3>
        <a href="#close"><img alt="md/close" loading="lazy" src="/img/icons/md/close.svg" width="18" height="18"></a>
    </header>
    <hr>
    <section>
        Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag Text in
        section tag Text in section tag…
    </section>
    <hr>
    <footer>
        <a href="#close">Cancel</a>
        <a href="#close">Accept</a>
    </footer>
</dialog>
<a href="#overlay"></a>
<a role="button" href="#dialog-1">Open by default</a>

Dialog by default

md/close

Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag…

Open by default

<footer>
    <dialog id="dialog-2">
        <header>
            <h3>Dialog from bottom</h3>
            <a href="#close"><img alt="md/close" loading="lazy" src="/img/icons/md/close.svg" width="18" height="18"></a>
        </header>
        <hr>
        <section>
            Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag Text in
            section tag Text in section tag…
        </section>
        <hr>
        <footer>
            <a href="#close">Cancel</a>
            <a href="#close">Accept</a>
        </footer>
    </dialog>
    <a href="#overlay"></a>
</footer>
<a role="button" href="#dialog-2">From bottom</a>

Dialog from bottom

md/close

Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag…

From bottom

<aside>
    <dialog id="dialog-3">
        <header>
            <h3>Dialog from left</h3>
            <a href="#close"><img alt="md/close" loading="lazy" src="/img/icons/md/close.svg" width="18" height="18"></a>
        </header>
        <hr>
        <section>
            Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag Text in
            section tag Text in section tag…
        </section>
        <hr>
        <footer>
            <a href="#close">Cancel</a>
            <a href="#close">Accept</a>
        </footer>
    </dialog>
    <a href="#overlay"></a>
</aside>
<a role="button" href="#dialog-3">Left</a>
Left

<section>
    <dialog id="dialog-4">
        <header>
            <h3>Dialog from right</h3>
            <a href="#close"><img alt="md/close" loading="lazy" src="/img/icons/md/close.svg" width="18" height="18"></a>
        </header>
        <hr>
        <section>
            Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag Text in
            section tag Text in section tag…
        </section>
        <hr>
        <footer>
            <a href="#close">Cancel</a>
            <a href="#close">Accept</a>
        </footer>
    </dialog>
    <a href="#overlay"></a>
</section>
<a role="button" href="#dialog-4">Right</a>

Dialog from right

md/close

Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag…

Right

<header>
    <dialog id="dialog-5">
        <header>
            <h3>Dialog from top</h3>
            <a href="#close"><img alt="md/close" loading="lazy" src="/img/icons/md/close.svg" width="18" height="18"></a>
        </header>
        <hr>
        <section>
            Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag Text in
            section tag Text in section tag…
        </section>
        <hr>
        <footer>
            <a href="#close">Cancel</a>
            <a href="#close">Accept</a>
        </footer>
    </dialog>
    <a href="#overlay"></a>
</header>
<a role="button" href="#dialog-5">Top</a>

Dialog from top

md/close

Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag…

Top

<nav>
    <dialog id="dialog-6">
        <header>
            <h3>Dialog fullscreen</h3>
            <a href="#close"><img alt="md/close" loading="lazy" src="/img/icons/md/close.svg" width="18" height="18"></a>
        </header>
        <hr>
        <section>
            Text in section tag Text in section tag Text in section tag Text in section tag Text in section tag Text in
            section tag Text in section tag…
        </section>
        <hr>
        <footer>
            <a href="#close">Cancel</a>
            <a href="#close">Accept</a>
        </footer>
    </dialog>
</nav>
<a role="button" href="#dialog-6">Fullscreen</a>
Fullscreen