Tell us what’s happening:
Describe your issue in detail here.
I struggling to find solutions on the following user story’s:
User Story #9: If I enter numbers outside the range of the number input, which are defined by the min
and max
attributes, I will see an HTML5 validation error.
User Story #12: Inside the form element, I can select an option from a dropdown that has a corresponding id="dropdown"
.
Any help is appreciated!
Your code so far
<style>
</style>
<main>
<h1 id="title"> Ice Cream Form </h1>
<p id="description"> What type of ice cream is the best? </p>
<div>
<form id="survey-form">
<p> <label id="name-label">Name</label></p>
<input id="name" type="text" placeholder="enter your name" required>
<p> <label id="email-label">Email</label></p>
<input id="email" type="email" placeholder="enter your email" required>
<p> <label id="number-label">Age (optional)</label></p>
<input id="number" type="number" placeholder="age">
</div>
<p> How do you prefer your ice cream served?<br>
<label for="bowl">
<input id="bowl" value="bowl" type="radio" name="bowl-cone">Bowl
</label>
<label for="cone">
<input id="cone" value="cone" type="radio" name="bowl-cone">Cone
</label>
</p>
<p>What are your favorite toppings?<br>
<label for="spirnkles">
<input id="spirnkles" value="sprinkles" type="checkbox" name="toppings">Sprinkles
</label>
<label for="chocalte-swirl">
<input id="chocalte-swirl" value="chocalte-swirl" type="checkbox" name="toppings">Chocalate Swirl
</label>
<label for="caramel">
<input id="caramel" value="caramel" type="checkbox" name="toppings">Caramel
</label>
<label for="nuts">
<input id="nuts" value="nuts" type="checkbox" name="toppings">Nuts
</label>
<label for="cookies">
<input id="cookies" value="cookies" type="checkbox" name="toppings">Cookies
</label>
<br>
<br>
<p> Any additional Ice Cream Comments?</p>
<input type="textarea">
<br>
<br>
<button id="submit" type="submit">Submit</button>
</form>
</main>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
Challenge: Build a Survey Form
Link to the challenge: