A modal dialog needs a clear purpose, an understandable close action and a usable focus path. The native dialog element provides useful browser behavior, but adding the tag alone does not make every design accessible. Test the complete interaction in the browsers you intend to support.
Use a link to navigate to a resource and a button to perform an action. Both can look similar after styling, but their native behavior is different. HTML interview questions about clickable elements are often really questions about meaning, keyboard use and predictable browser behavior.
Useful HTML image answers cover the image's purpose, its space in the layout and how the browser chooses when and what to load. An image can have correct alternative text and still move the page around if its expected space is missing. Loading every image lazily can also delay the page's most…