grav-plugin-form
grav-plugin-form copied to clipboard
Button with URL doesn't pass HTML validation
When a button on a form has a URL it is wrapped in an anchor tag, this does not pass validation at validator.w3.org with the error "The element button must not appear as a descendant of the a element."
What is the correct version?
@NicoHood it should be a link, if you want it to look like a button then it should be styled as a button. a
tags should not wrap button
tags and vice versa. It doesn't validate and it isn't semantically correct either.