my submit button submits without required info.
the link in the button is suppose to take you to a ‘thanks for submitting’ pg.
<form><p>Pleas fill in a the following infomation.</p>
<ul class="u-list1">
<li>First Name <input required type="text"></li>
<li>Surname <input required type="text"></li>
<button type="submit"><a href="aftersub.htm">Submit</a></button>
</form>
You need no <a> tag inside your button, instead you’d have to put the URL inside the action attribute of the <form> element:
<form action="aftersub.htm"><p>Pleas fill in a the following infomation.</p>
<ul class="u-list1">
<li>First Name <input required type="text"></li>
<li>Surname <input required type="text"></li>
<button type="submit">Submit</button>
</form>