Survey Form - Build a Survey Form

Tell us what’s happening:

Nao estou entendendo o requisito : Todos os seus botões de opção devem ter um atributo value e um valor. Eu coloquei o atributo value nos respectativos elementos option, mas mesmo assim aparenta erro.

Your code so far

<!-- file: index.html -->
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="styles.css">
    <title>freeCodeCamp Survey Form</title>
</head>
<body>
    <div class="container">
            <h1 id="title"> <em>freeCodeCamp Survey Form</em> </h1>
        <h4 id="description"> <em>Thank you for taking the time to help us improve the platform</em> </h4>

        <form div="form" id="survey-form" method="" action=''>
            <!------------------------------------------------------------------------------------------------>
            <fieldset>
                <label id="name-label" for="name">
                    Name
                    <input type="text" name="nome" id="name" placeholder="Enter your name" required>
                </label>
                <label id="email-label" for="email">
                    Email
                    <input type="email" name="gmail" id="email" placeholder="Enter your email" required>
                </label>
                <label id="number-label" for="age">
                    Age
                    <input type="number" name="idade" id="number" min="13" max="120" placeholder="Age" required>
                </label>
            </fieldset>
            <!------------------------------------------------------------------------------------------------>
        <label for="dropdown">
            Which option best describes your current role?
            <select name="option" id="dropdown" value="options" required >
                <option value="1" >(select one)</option>
                <option value="2" >Student</option>
                <option value="3" >Full time job</option>
                <option value="4" >Full time Learner</option>
                <option value="5" >Prefer not to say</option>
                <option value="6" >Other</option>
            </select>
        </label>
        <!------------------------------------------------------------------------------------------------>
        <label for="">
            Would you recommend freeCodeCamp to a friend?
                <label for="denifity-maybe-notsure">
                    <input type="radio" name="optionrecommend" id="denifity-maybe-notsure" checked >Definitely
                </label>
                <label for="maybe-denifity-notsure">
                    <input type="radio" name="optionrecommend" id="maybe-denifity-notsure">Maybe
                </label>
                <label for="notsure-denifity-maybe">
                    <input type="radio" name="optionrecommend" id="notsure-denifity-maybe">Not sure
                </label>
        </label>
            <!------------------------------------------------------------------------------------------------>
        <label for="dropdown">
            What is your favorite feature of free CodeCamp?
            <select name="favoriteFeature" id="dropdown" value="options"required >
                <option value="1">(Select an option)</option>
                <option value="2">Challenges</option>
                <option value="3">Projects</option>
                <option value="4">Community</option>
                <option value="5">Open Source</option>
            </select>
        </label>
        <!------------------------------------------------------------------------------------------------>
        <label for="checkboximproved" required >
            What would you like to see improved? (Check all that apply)
            <input type="checkbox" name="frontend" id="checkboximproved" value="frontend" >Front-end Projects
            <input type="checkbox" name="backend" id="checkboximproved" value="backend">Back-end Projects
            <input type="checkbox" name="datavisual" id="checkboximproved" value="data">Data Visualization
            <input type="checkbox" name="chaleenges" id="checkboximproved" value="challenge" >Challenges
            <input type="checkbox" name="video" id="checkboximproved" value="video" >Videos
            <input type="checkbox" name="wiki" id="checkboximproved" value="wiki">Wiki
        </label>
        <!------------------------------------------------------------------------------------------------>
        <label for="comments">
            <textarea name="commentsSuggestions" id="comments" cols="50" rows="10" placeholder="Enter your comment here..."></textarea>
        </label>
        <!------------------------------------------------------------------------------------------------>
        <input type="submit" value="Submit" id="submit">
        </form>
    </div>
</body>
</html>

/* file: styles.css */

Your browser information:

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

Challenge Information:

Survey Form - Build a Survey Form

Perdoe-me se algo se perdeu na tradução. Acho que as instruções querem que os elementos <input type="radio" ...> tenham valores

1 Like