In this video, you will learn how to add form tags in HTML5 and you can also learn from attributes and form input fields. This topic is divided into different parts so this video is about the input text fields.
HOW TO ADD HTML5 FORM IN YOUR WEB DOCUMENT
<html>
<body>
<h2>HTML Forms</h2>
<form action=”form.php” method=”POST”>
<label for=”fname”>First Name:</label><br>
<input type=”text” id=”fname” name=”fname” value=”Digital”><br>
<label for=”lname”>Last Name:</label><br>
<input type=”text” id=”lname” name=”lname” value=”Techsol”><br><br>
<input type=”submit” value=”Submit”>
</form>
<p>If you click the “Submit” button, the form-data will be sent to a page called “/action_page.php”.</p>
</body>
</html>