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.


<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>Survey form on the website</title>
    <link rel="stylesheet" href="styles.css" />
    <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=''>
        <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 >
        <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>
          <input id="survey-form" type="checkbox" type="survey-form" name="terms" class="inline" required /> I accept the <a href="">terms and conditions</a>
      </fieldset type="survey-form">
        <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>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>
        <label>Provide a bio:
          <textarea name="bio" rows="3" cols="30" placeholder="I like coding on the beach..." type="survey-form"></textarea>
      <input id="submit" type="submit" value="Submit" />

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.