Learn HTML Forms by Building a Registration Form - Step 18

Tell us what’s happening:
Halo semua gue punya masalah ni apa yang salah di bagian fieldset di file html,tolong dibantu dan gue masih belajar terima kasih dan sehat terus semuanya,Salam dari indonesia.

Hello everyone, I have this problem, what’s wrong in the fieldset section of the html file, please help and I’m still learning, thank you and all of you are healthy, greetings from Indonesia.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<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'>

<!-- User Editable Region -->

      <fieldset>
        <label>Enter Your First Name: <input type="text" /></label>
        <label>Enter Your Last Name: <input type="text" /></label>
        <label>Enter Your Email: <input type="email" /></label>
        <label>Create a New Password: <input type="password" /></label>
      </fieldset>

<!-- User Editable Region -->

      <fieldset></fieldset>
      <fieldset></fieldset>
    </form>
  </body>
</html>
/* file: styles.css */
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
  color: #f5f6f7;
}

label {
  display: block;
  margin: 0.5rem 0;
}

Your browser information:

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

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

Link to the challenge:

The instruction asked you to put id attribute in the input element and for attribute in the label element.

You need to delete the type attribute, it is not the instruction asked for.

3 Likes

You are right, but for me it doesn’t work, I know I am doing it right. Maybe its because I am using an Apple? Is there an issue with this exercise?

If you have a question about a specific challenge as it relates to your written code for that challenge, and you’ve tried to solve it at least 3 times so far and still need some help, just click the Ask for Help button located on the challenge (it looks like a question mark).
This button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.