dialog = the easiest way to make a popup modal

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerUI10 min

About this video

A walkthrough of the HTML dialog element as a native way to build modal popups, covering show, showModal, closing with close() or a form submission, and styling the backdrop. It suits people learning front-end web development.

What you’ll learn

  • Create a modal popup with the native HTML dialog element
  • Open and close a dialog with show, showModal and close
  • Style the dialog backdrop with CSS