---
url: "https://web.dev/learn/html/dialog"
titulek: "Dialog | web.dev"
h1: "Dialog Stay organized with collections Save and categorize content based on your preferences."
popis: ">-"
jazyk: "en"
kanonicka: "https://web.dev/learn/html/dialog"
drobecky: ["web.dev", "Resources", "HTML"]
zdroj: "live"
wayback_snapshot: ""
stazeno: "2026-09-14 02:39:51"
znaku: 9592
slov: 1367
kodovani: "iso-8859-2"
sha256: "49507109b7d9de7bfc7cf790cf33265b3eb7eadf80be5eaf78e9c353855ce4dd"
---
Dialog
Stay organized with collections
Save and categorize content based on your preferences.
The dialog element is a useful element for representing any kind of dialog in
HTML, find out how it works. A modal dialog is a special type of pop-up box on a web page, that interrupts the user to focus onto itself. There are
some valid [use cases for popping up a dialog](https://www.nngroup.com/articles/modal-nonmodal-dialog/), but take great consideration
should be made before doing so. Modal dialogs force users to focus on specific content, and, temporarily at least, ignore
the rest of the page. Dialogs can be either modal (only the content in the dialog can be interacted with) or non-modal (it's still possible to interact
with content outside of the dialog). Modal dialogs are displayed on top of the rest of the page content. The rest
of the page is [inert](/learn/html/focus) and, by default, obscured by a semi-transparent backdrop. The semantic HTML [`