Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

HTML Simple Registration Form- STEP 7

I wrote the code like below but the program said I have to add a new division for mobile number after the courses section. What is the problem?

<!DOCTYPE html>
<html>
<head>
<title>Registration Form</title>
</head>
<body>
<h1>My Registration Form</h1>
<form>
<div>
<label>First Name</label>
<input type="text" name="fname"/>
</div>
<br/>
<div>
<label>Last Name</label>
<input type="text" name="lname"/>
</div>
<br/>
<div>
<label>Gender</label>
<br/>
<input type="radio" name="gender"/>
<label>Male</label>
<br/>
<input type="radio" name="gender"/>
<label>Female</label>
<br/>
<input type="radio" name="gender"/>
<label>Other</label>
<br/>
</div>
<br/>
<div>
<label>Courses</label>
<select>
<option>HTML</option>
<option>CSS</option>
<option>JavaScript</option>
</select>
</div>
<br/>
<div>
<label>Mobile Number</label>
<input type="number" name="mobile"/>
</div>
<br/>
</form>
</body>
</html>
by

2 Answers

sam5epi0l
Please try again with the same code.
burcinalim
<input type="number" name="mobile"/>
I deleted the '/ ' end of the code and then it worked.

Login / Signup to Answer the Question.