<form> HTML Tag

In this article I will discuss <form> tag of HTML
  • 1696

The HTML form tag is used for declaring a form.The <form> tag is used in conjunction with form-associated elements. To create a form, you can nest form-associated elements inside the opening/closing <form> tags.

Example

<html>

<head>

    <title></title>

</head>

<body>

<h3>Employee Information</h3>

    <form>

    Employee_Id:

    <input type="text" name="FirstName" value=" " /><br />

    Employee_Name:

    <input type="text" name="LastName" value=" " /><br />

    Employee_Salary:

    <input type="text" name="LastName" value=" " /><br />

    Employee_Address:

    <input type="text" name="LastName" value=" " /><br />

    <center><input type="submit" value="Submit" /></center>

    </form>   

</body>

</html>

 

Output

 form.jpg

Ask Your Question

Got a programming related question? You may want to post your question here
 

 

 

© 2018 DotNetHeaven. All rights reserved.