form tag.
in HTML the <form> tag is used to create form for the user input.
the <form> element can contain one or more of the following form element
<input>
<textarea>
<button>
<select>
<option>
<optgroup>
<fieldset>
<label>
<output>
global attribute
the <form> tag also support the global attribute in HTML
event attribute
the <form> tag is also support the event attribute in HTML
write a html program to create form .
<html>
<body>
<h1>the form element</h1>
<form>
<label for="fname">first name:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="lname">last name:</label>
<input type="text" id="lname" name="lname"><br><br>
<input type="submit" value="submit">
</form>
</body>
</html>
output:-
0 Comments