<dialog>s with forms have a simple HTML-only way to implement "Cancel" buttons. In addition to POST and GET, <form>s inside of <dialog>s can make use of the DIALOG `method`. This allows the submit button to close the dialog without submitting the form to the backend.