Tell us what’s happening:
please how do make a group of radio buttons to have at least two radio buttons
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Unilorin Survey Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1 id="title">Unilorin Survey Form</h1>
<p id="description">We appreciate your opinion in helping us improve</p>
<form id="survey-form" action=" https://survey-form.unilorin.ng"
<fieldset>
<label id="name-label" for="name">Name<input id="name" name="name" type="text" placeholder="Enter your name" required /></label>
<label id="email-label" for="email">Email<input id="email" name="email" type="email" placeholder="Enter your email" required /></label>
<label id="number-label" for="age">Age<input id="number" name="age" type="number" pattern="[0-9]" min="15" max="100" placeholder="Age" /></label>
<label for="status">Which option best describe your status?
<select id="dropdown" name="status">
<option value="">(select one)</option>
<option value="1">lecturer</option>
<optio value="2">Undergraduate</option>
<option value="3">Post-graduate</option>
</select>
</label>
<fieldset>
<legend>what is your favorite feature of Unilorin</label>
<label for="favorite"><input id="lectures" name="feature" type="radio" value="lectures" class="inline" />Lectures</label>
<label for="favorite"><input id="sports" name="feature" type="radio" value="sports" class="inline" />Sports</label>
</fieldset>
<fieldset>
<legend>Would you recommend Unilorin to a friend?</legend>
<label for="recommendation"><input id="definitely" name="definitely" type="radio" value="definitely" class="inline" />Definitely</label>
<label for="recommendation"><input id="maybe" name="maybe" type="radio" value="maybe" class="inline" />Maybe</label>
<label for="recommendation"><input id="not-sure" name="not-suree" type="radio" value="not-sure" class="inline" />Not sure</label>
</fieldset>
<fieldset>
<legend>what aspect would like to see improvement</legend>
<label for="improvement"><input id="lecture-rooms" type="checkbox" value="lecture-rooms" class="inline" />Lecture Rooms</label>
<label for="improvement"><input id="accomodation" type="checkbox" value="accomodation" class="inline" />Accomodation</label>
<label for="improvement"><input id="transportation" type="checkbox" value="transportation" class="inline" />Transportation</label>
<label for="improvement"><input id="academics" type="checkbox" value="academics" class="inline" />Academics</label>
<label for="improvement"><input id="welfare" type="checkbox" value="welfare" class="inline" />welfare</label>
<label for="improvement"><input id="security" type="checkbox" value="security" class="inline" />Security</label>
</fieldset>
<label for="comments-and-suggestions">Any comments or suggestions?
<textarea id="comments-and-suggestions" name="comments-and-suggestions" rol="3" col="30"></textarea>
</fieldset>
<input id="submit" type="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: 1rem 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;
}
.inline {
display: inline;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Challenge Information:
Survey Form - Build a Survey Form