Skip to main content

Create User Registration form using HTML

· One min read
Kaustubh Kulkarni
register.html
<!DOCTYPE html>
<html>
<head>
<title>User Registration Form</title>
</head>
<body>
<h1 align="center"> User Registration form</h1>
<form id="Registration" title="User Registration form">
<table align="center" title="User Registration form">
<tr>
<td>
First Name
</td>
<td>
<input type="text" name="FirstName" style="width: 200px" pattern="[A-Za-z]{3,10}">
</td>
</tr>
<tr>
<td>
Last Name
</td>
<td>
<input type="text" name="LastName" style="width: 200px" pattern="[A-Za-z]{3,10}">
</td>
</tr>
<tr>
<td>
Location
</td>
<td>
<select style="width: 200px" name="location">
<option name="pune" id="pune">Pune</option><br>
<option name="Mumbai" id="mumbai"> Mumbai</option>
<option name="Chennai" id="Chennai">Chennai</select>
</select>
</td>
</tr>
<tr>
<td>
Email
</td>
<td>
<input type="Email" name="Email" style="width: 200px">
</td>
</tr>
<tr>
<td>
Mobile Number
</td>
<td>
<input type="tel" name="MobileNo" style="width: 200px" required >
</td>
</tr>
<tr></tr>
<tr>
<td colspan="2">
<input type="Submit" name="Submit" style="width: 200px">
</td>
</tr>
</table>
</form>
</body>
</html>


Preview

View Here