input tag in html and forms

The <input> tag specifies an input field where the user can enter data.
<input> elements are used within a <form> element to declare input controls that allow users to input data.
An input field can vary in many ways, depending on the type attribute.


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