Login | Register | FAQ
Anonymous

How to make Input field in HTML

+ Post a reply

5 posts Page 1 of 1


How to make Input field in HTML

by misbah » Sat Jul 02, 2011 9:54 am

Hello,

Please let me know how to make input field form through HTML coding
Thanks
User avatar

misbah

  • Posts: 2
  • Joined: Sat Jul 02, 2011 9:29 am
  • Location: Pakistan

Re: How to make Input field in HTML

by HTML.net » Sat Jul 02, 2011 10:03 am

<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
User avatar

HTML.net
Site Admin

  • Posts: 1185
  • Joined: Sat Sep 11, 2010 11:24 am
--
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

by logodesignerss » Tue Jul 05, 2011 6:36 am

<form>
First name: <input type="text" name="firstname" /><br />
Last name: <input type="text" name="lastname" />
</form>
User avatar

logodesignerss

  • Posts: 4
  • Joined: Sat Jun 25, 2011 6:45 am

Re: How to make Input field in HTML

by worrall » Mon Aug 27, 2012 12:44 pm

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>
User avatar

worrall

  • Posts: 10
  • Joined: Fri Aug 24, 2012 1:03 pm

Re: How to make Input field in HTML

by madisonbrooks » Fri Sep 07, 2012 10:49 am

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).
User avatar

madisonbrooks

  • Posts: 1
  • Joined: Thu Sep 06, 2012 9:34 am


+ Post a reply

Page 1 of 1

?>