The <dialog> element is particularly effective as it traps user focus, ensuring interaction before proceeding. This refactor enhances usability and accessibility.
The alt text is surfaced on the page when an image fails to load. It's yet another reason to write good alt text and really hone your skills in creating a user-focused experience by being descriptive.