Form Elements in HTML5

In this tutorial here is discussed about form elements.Basically the forms are added to web-pages by the form elements. The form element consists on the control of the form and it works like a container.

Example of form elements with source code

Get in touch Signup

Join our email list

Get news about webtags.com.pk

Source code of above form elements


<!DOCTYPE html>
<html>
<head>
<title>Get in touch Signup</title>
<meta charset="utf-8">
</head>
<body>
<h1>Get in tuch Signup</h1>
<form action="#" method="post">
<legend>Join our email list</legend>
<p>Get news about webtags.com.pk</p>
<ol>
<li>
<label for="firstlast"> Name:</label>
<input type="text" name="username" >
</li>
<li>
<label for="email"> Email:</label>
<input type="text" name="email"></li>
</ol>
<input type="submit" value="Submit">
</form>
</body>
</html>








The Best

Comment here

If you have any query, if you want to know something about any of technical course related to computer science field, if you have any suggestion about relevant to uploaded content or if you anything wrong here (any mistake in content) than please contact us. Keep in mind, comment should be according to community guidelines.


ads