Tell us what’s happening:
Not sure, a lot of the questions are vaguely worded and I’m only passing 5 of 17 tests.
Your code so far
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<h1 id="title" title="Free Code Camp Survey Form">Enter to win an all expenses paid trip to Herman Gardens!</h1>
<!--#1 confusing because there is no such thing as a 'title' element in HTML5 specification and 'h1 sized text' makes no sense because h1 is an element, not an attribute-->
<p id="description">Answer all questions correctly and visit the home of automobile giant and cocaine afficionado John De Lorean in beautiful, sunny Detroit!</p>
<!-- #2 confusing wording, 'p sized text' is like saying "span sized text" -->
<form action="submit" id="survey-form">
<!-- #3 -->
<div id="input-group">
<div>
<label for="name" id="name-label">Name</label>
<!-- #10 -->
<input type="text" id="name" placeholder="2 - 30 characters" minlength="2" maxlength="30" required>
<!-- #4 confusing wording as there is no 'field' element in HTML5 specification, #11 -->
</div>
<div>
<label for="email" id="email-label">Email</label>
<!-- #10 -->
<input type="email" id="email" placeholder="user@domain.ext" required>
<!-- #5, confusing wording same as #4) and #6 no clear definition of "HTML5 validation error". there is no mention of such an element or attribute in the HTML5 specification #11 -->
</div>
<div>
<label for="number" id="number-label">Phone Number</label>
<!-- USING A TYPE 'NUMBER' FOR A PHONE NUMBER IS BAD PRACTICE AND SHOULD BE AVOIDED, Only there to satisfy an automated test. #10 -->
<input type="number" id="number" required placeholder="ex: 123-456-7890" minlength="7" maxlength="2">
<!-- #7, #8, #9 HTML validation occurs on submission of form #11 -->
</div>
</div>
<div id="select">
<label for="dropdown">What's your favorite way to travel?</label>
<select id="dropdown"><!-- #12: There is no such element as dropdown. Ambiguous or vague wording can be very confusing to people who are learning -->
<optgroup label="Air">
<option value="Plane">Plane</option>
<option value="Helicopter">Helicopter</option>
<option value="Catapult">Catapult</option>
<option value="Falcor">Falcor</option>
</optgroup>
<optgroup label="Sea">
<option value="Private Yacht">Private Yacht</option>
<option value="Cruise Ship">Cruise Ship</option>
<option value="Pirate Ship">Pirate Ship</option>
<option value="Giant Turtle">Giant Turtle</option>
</optgroup>
<optgroup label="Land">
<option value="Car/Truck">Car/Truck</option>
<option value="Charter bus">Train</option>
<option value="Train">Shai-Hulud</option>
<option value="Howl's Moving Castle">Howl's Moving Castle</option>
</optgroup>
</select>
</div>
<fieldset id="radio-group">
<!-- #13 -->
<legend>What was the dumbest thing George Lucas ever did?</legend>
<div>
<input type="radio" id="duck" name="movie" value="duck">
<label for="duck">Releasing Howard the Duck instead of burning the script and swearing anyone who knew about it to secrecy under penalty of death.</label>
</div>
<div>
<input type="radio" id="jarjar" name="movie" value="jarjar">
<label for="jarjar">Meesa thinkin maybe da Jar Jar - heesa biggest mistaken Georgey ever makin!</label>
</div>
<div>
<input type="radio" id="midichlorians" name="movie" value="midichlorians">
<label for="midichlorians">Introducing midichlorians in The Phantom Menace and reducing the ubiquitious force to bacterium.</label>
</div>
<div>
<input type="radio" id="holiday" name="movie" value="holiday">
<label for="holiday">The 1978 Star Wars Holiday Special. Seriously this one's so bad I can't even joke about it. It's just.... just look it up.</label>
</div>
</fieldset>
<fieldset id="shrodingers-checkboxes">
<legend>Evaluate the following question or statement.</legend>
<div>
<div>
<fieldset class="tf">
<input id="t0" type="checkbox" value="t0">
<!-- #14 -->
<label for="t0">True</label>
<input id="f0" type="checkbox" value="f0">
<!-- #14 -->
<label for="f0">False</label>
</fieldset>
<p class="tip">The following statement is false.<span data="tooltip">This is the Card Paradox, a variant of the Liar Paradox.</span></p>
</div>
<hr>
<div>
<fieldset class="tf">
<input id="t1" type="checkbox" value="t1">
<!-- #14 -->
<label for="t1">True</label>
<input id="f1" type="checkbox" value="f1">
<!-- #14 -->
<label for="f1">False</label>
</fieldset>
<p>The previous statement is true.</p>
</div>
<hr>
<div>
<fieldset class="tf">
<input id="t2" type="checkbox" value="t2">
<!-- #14 -->
<label for="t2">Autological</label>
<input id="f2" type="checkbox" value="f2">
<!-- #14 -->
<label for="f2">Heterological</label>
</fieldset>
<p>Heterological</p>
</div>
<hr>
<div>
<!-- #14 -->
<fieldset class="tf">
<input id="t3" type="checkbox" value="t3">
<!-- #14 -->
<label for="t3">Yes</label>
<input id="f3" type="checkbox" value="f3">
<!-- #14 -->
<label for="f3">No</label>
</fieldset>
<p>Can God microwave a burrito so hot that he can't eat it?</p>
</div>
<hr>
<div>
<fieldset class="tf">
<input id="t4" type="checkbox" value="t4">
<label for="t4">Alive</label>
<input id="f4" type="checkbox" value=f4>
<label for="f4">Dead</label>
</fieldset>
<p>Schrödinger's cat</p>
</div>
</div>
</fieldset>
<fieldset>
<legend>Any final words?</legend>
<textarea name="comments" id="comments" cols="100" rows="10" placeholder="By submitting this form you are entering into a formal agreement that you will not, in any form, submit any forms."></textarea>
<!-- #15 -->
</fieldset>
<button id="submit" type="submit">Submit</button>
<!-- #16 -->
</form>
------------CSS-------------
:root {
background-color: #cdcdcd;
}
h1,
legend {
text-transform: capitalize;
}
input:invalid {
box-shadow: 0 0 5px 1px green;
}
input:focus:invalid {
outline: none;
box-shadow: 0 0 5px 1px red;
}
input:focus {
outline: none;
box-shadow: 0 0 5px 1px blue;
}
textarea {
font-size: 2em;
width: 100%;
}
p {
display: inline-block;
}
.tf {
display: inline-block;
border-radius: 5px;
}
/** tool tips */
.tip:hover {
cursor: help;
position: relative;
}
.tip span {
display: none;
}
.tip:hover span {
border: 1px solid #c0c0c0;
border-radius: 5px;
padding: 8px;
display: block;
z-index: 100;
background-color: #71b2e8;
left: 0px;
margin: 10px;
width: 250px;
position: absolute;
top: 10px;
text-decoration: none;
animation: fade-in 200ms linear;
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/** end tool tips */```
**Your browser information:**
User Agent is: <code>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36</code>.
**Link to the challenge:**
https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-projects/build-a-survey-form/