How to make Input field in HTML
Page 1 of 1
How to make Input field in HTML
Hello,Please let me know how to make input field form through HTML coding
Thanks
Re: How to make Input field in HTML
<form method="post" action="handler.php"><input type="text" name="username">
<input type="submit">
</form>
But you need more than HTML to handle the submitted input. I.e. PHP: http://html.net/tutorials/php/lesson11.php
- Andreas, HTML.net
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.
Re: How to make Input field in HTML
<form>First name: <input type="text" name="firstname" /><br />
Last name: <input type="text" name="lastname" />
</form>
Re: How to make Input field in HTML
The most common method of making input field is<form>
Name: <input type="text" name="name" /><
Email: <input type="text" name="email" />
Password: <input type="password" name="pwd" />
</form>
Re: How to make Input field in HTML
The most important form element is the input element.The input element is used to select user information.
An input element can vary in many ways, depending on the type attribute. An input element can be of type text field, checkbox, password, radio button, submit button, and more.
The most used input types are described below.
Text Fields
<input type="text" /> defines a one-line input field that a user can enter text into:
<form>
First name: <input type="text" name="firstname" /><br />
Last name: <input type="text" name="lastname" />
</form>
How the HTML code above looks in a browser:
First name: ___________________
Last name: ___________________
Note: The form itself is not visible. Also note that the default width of a text field is 20 characters.
Password Field
<input type="password" /> defines a password field:
<form>
Password: <input type="password" name="pwd" />
</form>
How the HTML code above looks in a browser:
Password: _______________________
Note: The characters in a password field are masked (shown as asterisks or circles).
Page 1 of 1