Formulário HTML - Passo 30

Conte-nos o que está acontecendo:
não consigo ir adiante, alguém pode ajudar?
Aninhe o elemento select dentro de um elemento label com o texto How did you hear about us? . O texto deve vir antes do elemento select .

  **Seu código até o momento**
/* file: index.html */
<!DOCTYPE html>
<html>
<head>
  <title>Registration Form</title>
    <link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
  <h1>Registration Form</h1>
  <p>Please fill out this form with the required information</p>
  <form action='https://register-demo.freecodecamp.org'>
    <fieldset>
      <label>Enter Your First Name: <input type="text" required /></label>
      <label>Enter Your Last Name: <input type="text" required /></label>
      <label>Enter Your Email: <input type="email" required /></label>
      <label>Create a New Password: <input type="password" pattern="[a-z0-5]{8,}" required /></label>
    </fieldset>
    <fieldset>
      <label><input type="radio" name="account-type" /> Personal Account</label>
      <label><input type="radio" name="account-type" /> Business Account</label>
      <label>
        <input type="checkbox" required /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
            </label>
    </fieldset>
    <fieldset>
      <label>Upload a profile picture: <input type="file" />
      </label>
         How did you hear about us?
            <select> </select>
      <label>Input your age (years): <input type="number" min="13" max="120" />
            </label>
       <select>
      <option></option>
        <option></option>
        <option></option>
        <option></option>
        <option></option>
         </select>
    </fieldset>
    <input type="submit" value="Submit" />
  </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;
}

  **Informações de seu navegador:**

Agente de usuário: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.124 Safari/537.36 Edg/102.0.1245.41

Desafio: Passo 30

Link para o desafio:

Pessoal procurei no sub fórum [HTML-CSS] em inglês mesmo e com muito custo achei a solução: Registration Form ; Step 30 - HTML-CSS - The freeCodeCamp Forum
vou deixar um link aki caso algúem tenha a mesma dúvida, mas basicamente tem q adicionar um novo elemento ‘label’ e aninhar o ‘select’ com o ‘option’ dentro deste novo ‘label’

2 Likes

Realmente é melhor procurar por alguma informação no forum em inglês, se possível.

1 Like

Olá, @gustavohhcampos! Que bom que você encontrou a informação de que precisava. :smiley: Não deixe de lançar sua dúvida em português, como fez com o passo 30, pois com o aumento no número de usuários falantes do português, alguém pode ver sua dúvida e ajudar a resolver. Bons estudos!

1 Like

Olá, tudo bem? Resolvi a questão colocando o elemento “label” dentro do elemento “select”. Fiz assim:

<label>How did you hear about us?
  <select>
    <option></option>
    <option></option>
    <option></option>
    <option></option>
    <option></option>
  </select>
</label>

Espero ter ajudado e bons estudos!