input name Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:input

Description

The name attribute sets the name of an <input> element.

Attribute Values

Value Description
text Specifies the name of the <input> element

An HTML form with three input fields; two text fields and one submit button:

Demo Code

ResultView the demo in separate window

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

Related Tutorials