Problems of code sertification

  • You should have at least two input elements with a type of checkbox (checkboxes) that are descendants of #survey-form.

  • Failed:All your checkboxes inside #survey-form should have a value attribute and value.

Please post your full HTML and CSS code.

Also, it helps if you describe where you are stuck and what you tried to fix these errors.

Thanks

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Survey form on the website</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
    <h1 id="title">Survey form on the website</h1>
    <p id="description">Please fill out this form with the required information</p>
    <form id="survey-form" action='https://register-demo.freecodecamp.org'>
      <fieldset>
        <label id="name-label">Enter Your First Name: <input id="name" type="text" name="first-name" required placeholder="name"/></label>
        <label id="name-label">Enter Your Last Name: <input id="name" type="text" name="last-name" required placeholder="name" /></label>
        <label id="email-label">Enter Your Email: <input id="email" type="email" name="email" required placeholder="email"  /></label>
        <label id="number-label">Create a New Password: <input type="password" name="password" pattern="[a-z0-5]{8,}" required placeholder="number"/></label>
      </fieldset>
      <fieldset >
        <label><input type="radio" name="account-type" class="inline" value="value"/> Personal Account</label>
        <label><input type="radio" name="account-type" class="inline" value="value"/> Business Account</label>
        <label>
          <input id="survey-form" type="checkbox" type="survey-form" name="terms" class="inline" required /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
        </label>
      </fieldset type="survey-form">
      <fieldset>
        <label>Upload a profile picture: <input type="file" name="file" /></label>
        <label>Input your age (years): <input id="number" type="number" name="age" min="13" max="120" placeholder="number" type="survey-form"/>
        </label>
        <label>How did you hear about us?
          <select id="dropdown" name="referrer" type="survey-form">
            <option value="">(select one)</option>
            <option value="1">freeCodeCamp News</option>
            <option value="2">freeCodeCamp YouTube Channel</option>
            <option value="3">freeCodeCamp Forum</option>
            <option value="4">Other</option>
          </select>
        </label>
        <label>Provide a bio:
          <textarea name="bio" rows="3" cols="30" placeholder="I like coding on the beach..." type="survey-form"></textarea>
        </label>
      </fieldset>
      <input id="submit" type="submit" value="Submit" />
    </form>
  </body>
</html>

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Cool, thanks for providing your code. Now can you talk to us a bit about where you’re stuck.

No need to repeat the error messages; what about those messages has you stuck?

An HTML validator may help you catch at least one syntax problem I can see:

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