I guess if it doesn't update the url, it's a button.
If it changes the url, it should be a link. At least that's how I've always done it.
If it changes the url, it should be a link. At least that's how I've always done it.
Which elements are allowed to wrap which is unclear to me
[1]: https://html.spec.whatwg.org/#the-button-element:concept-ele...
> Phrasing content but there must be no Interactive content. If the <button> is the first child of a customizable select element, then it may also contain zero or one <selectedcontent> element.
“Ok, but what constitutes ‘phrasing content’ or ‘interactive content’?” you might ask. Those terms are links that give a very good overview of their constituent elements.