Part of HTMl code uses a button that is used to navigate to a different route in flask hence I wrap it in an anchor tag like so:
<a href="/deleteAccount" id="deleteAccount"><button>Delete Account</button></a>
When passing my HTML through the W3C validator I get the following error:
"The element button must not appear as a descendant of the a element."
What is the reason for this error? Writing my code this way achieves the desired effect of navigating through the use a button without having to instead style an anchor tag or use javascript unnecessarily.