As you can see, the inputs with the first-name,last-name etc already have ‘name’ attributes. But I still keep getting the error to add a name attribute to the inputs despite them having it. Why is the code wrong? Did I miss something?
The instruction: " Give each submittable element a unique name attribute of your choosing, except for the two radio inputs."
The “submittable” elements are input elements with ‘type’ attributes set to “file” and “number”, the ‘select’ element, and ‘textarea’ element.
<label for="profile-picture">Upload a profile picture: <input id="profile-picture" type="file"/></label>
<textarea id ="bio" rows="3" cols="30" placeholder="I like coding on the beach..."></textarea>
The ‘name’ is an attribute, not an Html element. It can not be used as you tried to use it. Also, if any HTML element stays without any angle bracket < or > this will be reported as an error.