Tell us what’s happening:
It says that the radio elements are missing values and also don’t have 2 items in their group, I’ve spent the entire day trying but I can’t see what’s wrong!
Your code so far
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Survey Form</title>
</head>
<body>
<h1 id="title">Survey Form</h1>
<p id="description">This is a form made during Free Code Camp's Web Design Certification Program</p>
<form id="survey-form">
<fieldset>
<label for="name" id="name-label">Name:</label>
<input id="name" type="text" placeholder="My Name" required>
<label for="email" id="email-label">Email:</label>
<input id="email" type="email" placeholder="My Email" required>
<label for="number" id="number-label">Number:</label>
<input id="number" type="number" min="0" max="10" placeholder="0">
<select id="dropdown">
<option value="">A</option>
<option value="1">B</option>
<input type="radio" name="2">
<input type="radio" name="1">
</select>
</fieldset>
<fieldset>
<p>Are you Happy?</p>
<label>
<input type="radio" name="xp" value="1" id="Yeah">Aye, quite so</input>
</label>
<label><input type="radio" name="xp" value="2" id="Yup">More or less</label>
<label>
<input type="radio" name="xp" value="3" id="yur">Miffed</label>
<label>
<input type="radio" name="xp" value="3" id="nah">Ney, not so </label>
</fieldset>
<fieldset>
<p>How goes ye?</p>
<input type="checkbox" value="1">Quite well!</input>
<input type="checkbox" value="2">Not me finest...</input>
</fieldset>
<fieldset>
<textarea>Any comments?</textarea>
</fieldset>
<input type="submit" id="submit">
</form>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 OPR/125.0.0.0 (Edition std-1)
Challenge Information:
Build a Survey Form - Build a Survey Form