Modulo di sondaggio - Crea un modulo di sondaggio

Tell us what’s happening:

Qual'è il tuo ruolo attuale?

why it says that i didn’ gave the value?

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Sondaggio per FreeCodeCamp</title>
    <link rel="stylesheet" href="styles.css">
  </head>
  <body>
    <h1 id="title">Sondaggio per FreeCodeCamp</h1>
    <p id="description">Grazie per aver dedicato del tempo per aiutarci a migliorare la piattaforma</p>
    <form id="survey-form">
      <fieldset>
      <label id="name-label" for="name">Nome
      <input required id="name" type="text" placeholder="Inserisci qui il tuo nome" /><label>
        <hr>
      <label id="email-label" for="email">Email
      <input required id="email" type="email" placeholder="inserisci qui la tua email" /></label>
      <hr>
      <label id="number-label" for="number">Età (opzionale)
      <input id="number" type="number" min="12" max="130" placeholder="Età" /></label>
      </fieldset>
      
      <fieldset>
      <legend for="dropdown">Qual'è il tuo ruolo attuale?</legend>
         <select id="dropdown" name="role">
           <option value="">(scegline uno)</option>
            <option value="1">Studente</option>
            <option value="2">Lavoro full-time</option>
            <option value="3">Studio full-tim</option>
            <option value="4">Preferisco no dirlo</option>
            <option value="5">Altro</option>
          </select>             
      </fieldset>
      
      <fieldset>
      <legend> Consiglieresti freeCodeCamp ad un amico?</legend>
       <label for="yes"><input id="yes" type="radio" name="recommend" class="inline" checked />Assolutamente Sì</label>
       <label for="no"><input id="no" type="radio" name="recommend" class="inline" />No</label>
       <label for="maybe"><input id="no" type="radio" name="recommend" class="inline" />Forse</label>
       </fieldset>

       <fieldset>
         <legend>Cosa vorresti vedere migliorato? (possibile risposta multipla)</legend>
         <input type="checkbox" id="fornt-end" class="inline" value="1" /><label for="front-end">Progetti Front-End</label>
         <input type="checkbox" id="back-end" class="inline" value="2" /><label for="back-end">Progetti Back-End</label>
         <input type="checkbox" id="data-visualization" class="inline" value="3" /><label for="data-visualization">Visualizzazione Dati</label>
         <input type="checkbox" id="challenges" class="inline" value="4" /><label for="challenges">Sfide</label>
         <hr>
  <label for="suggestion">Dacci consigli su come migliorare:
          <textarea id="suggestion" name="suggestion" rows="3" cols="30" placeholder="Potreste migliorare in..."></textarea>
        </fieldset>
     <input type="Submit" id="submit"


     </form>
   </body>  
</html>
/* file: styles.css */

Your browser information:

Lo user agent è: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 OPR/109.0.0.0

Challenge Information:

Modulo di sondaggio - Crea un modulo di sondaggio

se ti dico che intende gli elementi input con type="radio", riesci a trovare il problema?

Non ho comunque risolto

posta il tuo codice, vediamo

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Sondaggio per FreeCodeCamp</title>
    <link rel="stylesheet" href="styles.css">
  </head>
  <body>
    <h1 id="title">Sondaggio per FreeCodeCamp</h1>
    <p id="description">Grazie per aver dedicato del tempo per aiutarci a migliorare la piattaforma</p>
    <form id="survey-form">
      <fieldset>
      <label id="name-label" for="name">Nome
      <input required id="name" type="text" placeholder="Inserisci qui il tuo nome" value="name"/><label>
        <hr>
      <label id="email-label" for="email">Email
      <input required id="email" type="email" placeholder="inserisci qui la tua email" value="email"  /></label>
      <hr>
      <label id="number-label" for="number">Età (opzionale)
      <input id="number" type="number" min="12" max="130" placeholder="Età" value="number" /></label>
      </fieldset>
      
      <fieldset>
      <legend for="dropdown">Qual'è il tuo ruolo attuale?</legend>
         <select id="dropdown" name="role">
           <option value="">(scegline uno)</option>
            <option value="1">Studente</option>
            <option value="2">Lavoro full-time</option>
            <option value="3">Studio full-tim</option>
            <option value="4">Preferisco no dirlo</option>
            <option value="5">Altro</option>
          </select>             
      </fieldset>
      
      <fieldset>
      <legend> Consiglieresti freeCodeCamp ad un amico?</legend>
       <label for="yes"><input id="yes" type="radio" name="recommend" class="inline" checked value="1" />Assolutamente Sì</label>
       <label for="no"><input id="no" type="radio" name="recommend" class="inline" velue="2" />No</label>
       <label for="maybe"><input id="no" type="radio" name="recommend" class="inline" value="3"/>Forse</label>
       </fieldset>

       <fieldset>
         <legend>Cosa vorresti vedere migliorato? (possibile risposta multipla)</legend>
         <input type="checkbox" id="fornt-end" class="inline" value="1" /><label for="front-end">Progetti Front-End</label>
         <input type="checkbox" id="back-end" class="inline" value="2" /><label for="back-end">Progetti Back-End</label>
         <input type="checkbox" id="data-visualization" class="inline" value="3" /><label for="data-visualization">Visualizzazione Dati</label>
         <input type="checkbox" id="challenges" class="inline" value="4" /><label for="challenges">Sfide</label>
         <hr>
  <label for="suggestion">Dacci consigli su come migliorare:
          <textarea id="suggestion" name="suggestion" rows="3" cols="30" placeholder="Potreste migliorare in..."></textarea>
        </fieldset>
     <input type="Submit" id="submit"


     </form>
   </body>  
</html>

I’ve edited your code 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 (').

dove avevo sbagliato?

qui hai scritto male il nome dell’attributo

nel postare il codice, non hai usato i backtick (accento grave)

1 Like

grazie, che errore stupido