Tell us what’s happening:
Describe your issue in detail here.
what does a radio button group mean? its the last thing im trying to solve T-T I tried putting an id of group1 because thats what I saw in on a website and also tried nesting the radio buttons in a div element
Your code so far
/* file: index.html */
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css"/>
</head>
<body>
<h1 id="title">Survey Form</h1>
<p id="description">This is a description about the survey form</p>
<form id="survey-form">
<fieldset>
<label id="name-label">Enter Your Name: <input required id="name" type="text" placeholder="John Smith" /></label>
<label id="email-label">Enter Your Email: <input required id="email" type="email" placeholder="abc123@gmail.com"/></label>
<label id="number-label">Enter Your Age: <input required id="number" type="number" min="13" max="120" placeholder="13" /></label>
<select id="dropdown">
<option>Option 1</option>
<option>Option 2</option>
</select>
</fieldset>
<fieldset id="group1">
<label><input type="radio" class="inline" value="1" name="choice 1"/> Choice 1</label>
<label><input type="radio" class="inline" value="2" name="choice 2"/> Choice 2</label>
</fieldset>
<fieldset>
<label>
<input type="checkbox" name="fill" class="inline" value="fill-out" required /> I agree to fill out this form
</label>
<label>
<input type="checkbox" name="terms" class="inline" value="conditions" required /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
</label>
<label>Tell us about yourself:
<textarea name="bio" rows="3" cols="30" placeholder="I like coding on the beach..."></textarea>
</label>
</fieldset>
<input type="submit" id="submit"/>
</form>
</body>
</html>
/* file: styles.css */
body {
width: 100%;
height: 100vh;
margin: 0;
background-color: #1b1b32;
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;
}
fieldset {
border: none;
padding: 2rem 0;
border-bottom: 3px solid #3b3b4f;
}
fieldset:last-of-type {
border-bottom: none;
}
label {
display: block;
margin: 0.5rem 0;
}
input,
textarea,
select {
margin: 10px 0 0 0;
width: 100%;
min-height: 2em;
}
input, textarea {
background-color: #0a0a23;
border: 1px solid #0a0a23;
color: #ffffff;
}
.inline {
width: unset;
margin: 0 0.5em 0 0;
vertical-align: middle;
}
input[type="submit"] {
display: block;
width: 60%;
margin: 1em auto;
height: 2em;
font-size: 1.1rem;
background-color: #3b3b4f;
border-color: white;
min-width: 300px;
}
input[type="file"] {
padding: 1px 2px;
}
**Your browser information:**
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15
Challenge: Build a Survey Form
Link to the challenge: