HTML form code

Posted: June 8, 2012 by makaranddalal in HTML

Text field form code


<!DOCTYPE html>
<html>
<body>

<form action=””>
Name:&nbsp;&nbsp;&nbsp; <input type=”text” name=”Name :” /><br />
Number: <input type=”text” name=”Number:” /><br />
City:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type=”text” name=”Number:” />
</form>
<p>Default width of text field is 20</p>
<p>”nbsp” is used for adding space </p>

</body>
</html>


Password field in form:


<!DOCTYPE html>
<html>
<body>

<form action=””>
Username: <input type=”text” name=”username” /><br />
Password: <input type=”password” name=”pswrd” />
</form>

<p>Password type data is hidden in asterisks</p>

</body>
</html>


Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s