write a HTML program on form tag (from with various from element).

in this HTML tutorial we are learn about from tag and various from element.

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:-

write a HTML program on form tag (from with various from element).



Post a Comment

0 Comments