HTML CSS examples for HTML Tag:input
The name attribute sets the name of an <input> element.
Value | Description |
---|---|
text | Specifies the name of the <input> element |
An HTML form with three input fields; two text fields and one submit button:
<!DOCTYPE html> <html> <body> <form action="/action_page.php"> Name: <input type="text" name="fullname"><br> Email: <input type="text" name="email"><br> <input type="submit" value="Submit"> </form><!-- www. j a v a 2 s . c o m--> </body> </html>