Loading…
A short voice session: one question, one follow-up, then instant feedback — up to 5 minutes.
Use an anchor for navigation to a destination and a button for an action such as submitting, opening, or toggling something.
An anchor with href provides navigation features such as opening a destination in a new tab and copying its address. A button represents an action and supports native keyboard activation. Inside a form, a button without an explicit type normally submits the form, so use type="button" for unrelated actions. Making a div clickable does not automatically provide these semantics or behaviors.