I’ve tried everything but it keeps telling me to add a label with the text Upload profile picture:
Hey.
For us to help efficiently, we need to see your code.
1 Like
<html lang="en">
<head>
<meta charset="UTF-8">
<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 method="post" action='https://register-demo.freecodecamp.org'>
<fieldset>
<label for="first-name">Enter Your First Name: <input id="first-name" type="text" required /></label>
<label for="last-name">Enter Your Last Name: <input id="last-name" type="text" required /></label>
<label for="email">Enter Your Email: <input id="email" type="email" required /></label>
<label for="new-password">Create a New Password: <input id="new-password" type="password" pattern="[a-z0-5]{8,}" required /></label>
</fieldset>
<fieldset>
<legend>Account type (required)</legend>
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" checked /> Personal</label>
<label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business</label>
<fieldset>
<label class="profile-label">Upload a profile picture:</label>
<input type="file" class="profile-input" />
``</fieldset>
I have edited your reply to include your code. To include your code the next time you post, nest it in triple backticks. (```)
Now back to your problem. You should next the input in the label element. Currently, your label element is only nesting the text, it needs to nest the input tag as well.
1 Like
The code still isn’t running
Let me see the updated version of your code.
I’ve figured it out thanks
1 Like