Tell us what’s happening:
Your #submit should have a type of submit.
is still telling me to input the type=“submit”
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html>
<head>
<title> Survey Form
</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<h1 id="title"> Survey Form
</h1>
<p id="description">Please fill out the survey form to help improve our service</p>
<form id="survey-form" action="">
<fieldset>
<label id="name-label" for="name">Name<input value="name" id="name" type="text" placeholder="Enter your name" required></label>
<label id="email-label" for="email">Email<input value="email" placeholder="Enter your email" id="email" type="email" required></label>
<label id="number-label" for="number">Number<input value="number" placeholder="Enter your number" id="number" type="number" min="12" max="12" required></label>
</feldset>
<fieldset>
<select id="dropdown">
<option value-disable>which of the coffe flavor do you prefer</option>
<option>Vanilla</option>
<option>chocolate</option>
<option>Strawberry</option>
</select>
</fieldset>
<fieldset>
<p>Would you recommend Coffee delicios shop to a friend?</p><label>Yes<input value="yes" id="survey-form" id="submit" type="radio" name="samegroup"></label>
<label>no<input value="no" id="submit" id="survey-form" name="samegroup" type="radio"></label>
<label>prefer not to answer<input value="prefer not to answer" id="survey-form" id="submit" type="radio" id="survey-form" name="samegroup"></label>
</fieldset>
<fieldset>
<p id="survey-form">which of the following do you prefer with coffee</p>
<label>Cake<input id="survey-form" name="biscuitorcake" value="cake" type="checkbox"></label>
<label>Biscuit<input name="biscuitorcake" id="survey-form" value="biscuit" type="checkbox"></label>
</fieldset>
<label>Additional comments
<textarea id="survey-form" id="comments" class="input-textarea" name="comment" placeholder="Enter your comment here..."></textarea></label>
<input type="submit" value="submit">
</form>
</body>
</html>
/* file: styles.css */
body{
background-image: url(https://cdn.freecodecamp.org/curriculum/css-cafe/beans.jpg);
font-family: sans-serif;
padding: 20px;
margin:auto;
}
h1{
text-align:center;
padding:15;
background-color:brown;
}
.description {
font-style: italic;
font-weight: 200;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}
form{
width: 60vw;
max-width: 500px;
min-width: 300px;
margin: 0 auto;
background: var(--color-darkblue-alpha);
padding: 2.5rem 0.625rem;
border-radius: 0.25rem;
}
label {
margin: 0.5rem 0;
display: flex;
align-items: center;
font-size: 1.125rem;
margin-bottom: 0.5rem;
}
fieldset{
width: 80%;
background-color: burlywood;
margin-left: auto;
margin-right: auto;
padding: 2.5rem 0.625rem;
max-width: 500px;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Challenge Information:
Survey Form - Build a Survey Form