<dialog> అనేది modals మరియు dialogs కోసం native element. ఇది focus trapping, backdrop, top layer, మరియు Escape-to-close — ఆ విధమైన features లను నిర్వహిస్తుంది, ఇవి మీరు అలా కాకపోతే చాలా JavaScript మరియు ARIA తో hand-build చేయవలసి ఉంటుంది.
html
Confirm
Are you sure?
Cancel
OK
