Cuéntanos qué está pasando:
Buenas a todos!
He probado mi código en VSCode y no tengo errores y yo lo revise unas 20 veces punto por punto y no veo la falla. help me!
Falló:42. Debes tener un elemento input o button con un id de submit.
Falló:43. Tu #submit debe tener un type de submit.
Falló:44. Tu #submit debe ser descendiente de #survey-form.
Tu código hasta el momento
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Encuesta</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<h1 id="title">Satisfaction Survey</h1>
<p id="description">Your opinion is important to us and we hope you enjoyed our service.</p>
<form id="survey-form">
<label id="name-label" for="name">Name <input id="name" type="text" required placeholder="enter your name"></label>
<label id="email-label" for="email">Email <input id="email" name="email" type="email" required placeholder="example@email.com"></label>
<label id="number-label" for="number">Age <input id="number" name="number" type="number" min="1" max="120" required placeholder="enter your age"></label>
<label for="referrer">How did you hear about us?</label>
<select id="dropdown">
<option value="0">(select one)</option>
<option value="1">Social Media</option>
<option value="2">Email Ads</option>
</select>
<legend>Where did you place the order? (required)</legend>
<label for="home"><input id="home" type="radio" name="home-order" value="0" class="inline" checked /> Home</label>
<label for="work"><input id="work" type="radio" name="work-order" value="1" class="inline" /> Work</label>
<legend>What are your favorite pizzas (you can choose several)</legend>
<label><input type="checkbox" value="1" class="inline">Mozzarella</label>
<label><input type="checkbox" value="2" class="inline">Fugazzetta</label>
<label><input type="checkbox" value="3" class="inline">Pepperoni</label>
<label><input type="checkbox" value="4" class="inline">Six Cheeses</label>
<label><input type="checkbox" value="5" class="inline">Carbonara</label>
<label><input type="checkbox" value="6" class="inline">Texas BBQ</label>
<label><input type="checkbox" value="7" class="inline">Barbecue</label>
<label><input type="checkbox" value="8" class="inline">Countryside</label>
<label><input type="checkbox" value="9" class="inline">Veggiña</label>
<label>Give us your opinion:<textarea rows="6" cols="30" placeholder="the pizza`s was..."></textarea></label>
<input id="Submit" type="submit"/>
</form>
</body>
</html>
/* file: styles.css */
body {
width: 100%;
height: 100vh;
margin: 0;
background-color: #DE7552;
color: #f5f6f7;
font-family: Tahoma;
font-size: 16px;
}
h1, p {
margin: 1em auto;
text-align: center;
}
form {
width: 60vw;
max-width: 500px;
min-width: 300px;
margin: 0 auto;
padding-bottom: 2em;
}
label {
display: block;
margin: 0.5rem 0;
}
input,
textarea,
select {
margin: 10px 0 0 0;
width: 100%;
min-height: 2em;
}
input, textarea {
background-color: #C16648;
border: 1px solid #C16648;
color: #f5f6f7;
}
input[type="submit"] {
display: block;
width: 60%;
margin: 1em auto;
height: 2em;
font-size: 1.1rem;
background-color: #C16648;
border-color: white;
min-width: 300px;
}
.inline {
width: unset;
margin: 0 0.5em 0 0;
vertical-align: middle;
}
.inline {
display: inline;
}
select {
margin-bottom: 15px;
}
::placeholder {
color: #f5f6f7;
}
Información de tu navegador:
El agente de usuario es: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Información del Desafío:
Encuesta - Crea un Formulario de Encuesta