Hello I'm building a form inside a table but the output is not what I expected; the table should have looked like this:
Here is my code:
<html>
<head>
<title></title>
</head>
<body>
<form name="frm_details" method="post" action="mailto:someone@hotmail.com">
<table border="1">
<tr>
<td>Name</td>
<td><input type="text" name="name" size="30"></td>
<td>ID</td>
<td><input type="text" name="Id" size="25></td>
</tr>
<tr>
<td>Password</td>
<td><input type="text" name="password" size="30"></td>
<td>Address</td>
<td><textarea cols="30" rows="2" name="address"></td>
</tr>
<td>Sex</td>
<td><input type="radio" name="sex" value="male"/>Male
<input type="radio" name="sex" value="female"/>Female
</td>
</tr>
</table>
</form>
</body>
</html>
I wrote just a part of the code and it is messed up;I have no idea why it is messing up the rows and columns!Like for example why it is not displaying the td(with password text in another row).Can someone help me please?