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:
Click the "Submit" button and the form-data will be sent to a page on the server called "/action_page.php".
Comments
Post a Comment