Thursday, June 6, 2013

HTML Code for text and password

<!DOCTYPE html>
<html>
<body>

<form>
<div style="width: 400px; height: auto;">
<div style="width: 100px; height: 20px;">First name:</div>
<div style="width: 300px; height: 20px;"> <input type="text" name="fname"><br></div>
<div style="width: 100px; height: 20px;">Last name:</div>
<div style="width: 300px; height: 20px;"> <input type="text" name="lname"><br></div>
<div style="width: 100px; height: 20px;">Password:</div>
<div style="width: 300px; height: 20px;"> <input type="password" name="pwd"></div>
</div>
</form>

</body>
</html>

1 comment:

Arjun sharmaa said...

You didn't call for a php file or any other file through the form. Then how it works.