In this post you will learn how to create a Registration form in simple way. This is one of the frequently asked interview question for web developers or web designer to test your skills. So, Let us see the following code will give result as Registration form.
<html>
<head>
<title>Register Form</title>
</head>
<body>
<form>
<table>
<tr>
<td>
Name:
<input type="text" placeholder="name" name="">
</td>
</tr>
<tr>
<td>
password:
<input type="password"placeholder="password"name="">
</td>
</tr>
<tr>
<td>
Gender:
<input type="radio" name="Gender">Male
<input type="radio" name="Gender">Female
</td>
</tr>
<tr>
<td>
Email:
<input type="email" placeholder="email">
</td>
</tr>
<tr>
<td>
PhoneNo:
<select>
<option>91</option>
<option>92</option>
<option>93</option>
<option>94</option>
<option>95</option>
</select>
<input type="phenono" placeholder="9849***"name="">
</td>
</tr>
<tr>
<td>
<input type="submit" value="submit"name="">
</td>
</tr>
</table>
</form>
</body>
</html>
Output:
<html>
<head>
<title>Register Form</title>
</head>
<body>
<form>
<table>
<tr>
<td>
Name:
<input type="text" placeholder="name" name="">
</td>
</tr>
<tr>
<td>
password:
<input type="password"placeholder="password"name="">
</td>
</tr>
<tr>
<td>
Gender:
<input type="radio" name="Gender">Male
<input type="radio" name="Gender">Female
</td>
</tr>
<tr>
<td>
Email:
<input type="email" placeholder="email">
</td>
</tr>
<tr>
<td>
PhoneNo:
<select>
<option>91</option>
<option>92</option>
<option>93</option>
<option>94</option>
<option>95</option>
</select>
<input type="phenono" placeholder="9849***"name="">
</td>
</tr>
<tr>
<td>
<input type="submit" value="submit"name="">
</td>
</tr>
</table>
</form>
</body>
</html>
Output:
No comments:
Post a Comment