<form action="#" method="GET">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<input type="submit">
</form>
<!--Answer from W3 Schools-->
<form action="/action_page.php">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<input type="submit">
</form>