input tag in html

The <form> tag is used to create an HTML form for user input.
The <form> element can contain one or more of the following form elements:
  • <input>
  • <textarea>
  • <button>
  • <select>
  • <option>
  • <optgroup>
  • <fieldset>
  • <label>


<!DOCTYPE html>
<html>
<body>

<form action="/action_page.php">
First name: <input type="text" name="FirstName" value="Mickey"><br>
Last name: <input type="text" name="LastName" value="Mouse"><br>
<input type="submit" value="Submit">
</form>

<p>Click the "Submit" button and the form-data will be sent to a page on the server called "/action_page.php".</p>

</body>
</html>

Output:
First name: 
Last name: 
Click the "Submit" button and the form-data will be sent to a page on the server called "/action_page.php".

Comments

Popular posts from this blog

Headings In HTML

Introduction and Format of HTML

Font Tag