Learn HTML Forms by Building a Registration Form - Step 11

How do i give the label the text Input your age (years):

   **Your code so far**
   <fieldset>
    <label>Upload a profile picture: <input type="file" /></label>
   <label>Input your age(years): <input type="number" minvalue="13" maxvalue="120"/>
      </label> 
  </fieldset>
/* file: index.html */
<!DOCTYPE html>
<html>
 <head>
   <title>Registration Form</title>
	  <link rel="stylesheet" href="styles.css" />
 </head>
 <body>
   <h1>Registration Form</h1>
   <p>Please fill out this form with the required information</p>
   <form action='https://register-demo.freecodecamp.org'>
   <input>
   <input>
   <input>
   </form>
 </body>
</html>
/* file: styles.css */
body {
 width: 100%;
 height: 100vh;
 margin: 0;
 background-color: #1b1b32;
	color: #f5f6f7;
}
   **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36 Edg/103.0.1264.49

Challenge: Learn HTML Forms by Building a Registration Form - Step 11

Link to the challenge:

Hi sir. I tried that, but that doesn’t seem to be the solution. Thanks anyway.

So you were right, but I could see that immediately because the code still couldn’t submit till I fixed two other issues with it, specifically the min and max values for users age.
Thank you!
See code below:

Upload a profile picture: Input your age (years):

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.