form action in html
<!-- use onsubmit -->
<form onsubmit="return yourJavaScript(this)">
<div>
<label>Name:</label>
<input id="name" name="name" type="text">
</div>
<div>
<label>Email:</label>
<input id="email" name="email" type="email">
</div>
<div>
<input id="submit" type="submit">
</div>
</form>
4.1
10
<!--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>
Thank you!
10
0
0
0
<form action="#" method="GET">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<input type="submit">
</form>
Thank you!
0
0
Are there any code examples left?
New code examples in category Html