Learn HTML Forms by Building a Registration Form - Step 31

Tell us what’s happening:

Hint

Challenge=
Moving on to the final fieldset. What if you wanted to allow a user to upload a profile picture?

Well, the input type file allows just that. Add a label with the text Upload a profile picture: , and add an input accepting a file upload.

Result=
You should give the input element a type of file.

Your code so far

<fieldset>
        <label>Upload a profile picture:
          <input file="Upload a profile picture:" />
        </label>
      </fieldset>

Your browser information:

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

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

Link to the challenge:

I got it. Thank you.