Post #1888842
2026-02-26 11:28 UTC
@MoritzGlantz but submit buttons generally redirect to another page, and tables of contents are same-page links… so unfortunately that isn't so simple, am I wrong? #Accessibility
Replies (1)
-
@MoritzGlantz@mastodon.social 2026-02-26 16:16
@menelion I love a good edge-case. You’re not wrong. Better heuristic: links are for navigation to a URL (including `#fragment` in-page navigation like a TOC), buttons are for actions (including form submit). A submit *may *lead to a new page, but the user intent is “submit,” not “navigate.” It could also trigger a form validation, or add content inline (for example a comment).