<form action="/users" method="GET">
<input type="text" id="username" name="username" required><br>
<button type="submit">Search</button>
<a href='/users'><button>Clear</button></a>
</form>
when I click on anchor tag form gets submitted, I dont want form to get submitted on anchor tag click. When I take anchor tag out of form it doesnt submit.
What I want is to have anchor tag in the form and not get submitted on anchor tag click, it should get submitted only when button is clicked.