Tell us what’s happening:
Having trouble understanding what’s wrong with the checkbox value attributes.
Your code so far
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="title">
<header class="header">
<h1
id="title"
class="heading" bold>Broccoli Is Life
<div class="broccoli-heading" id="broccoli-heading">
<img src="https://artfiles.alphacoders.com/610/thumb-61055.jpg" alt="Broccolini">
</div>
</h1>
<p id="description" class="sub-heading" bold>!The Lord Broccolini Beckons!
</p> </header> </div>
<form id="survey-form">
<div class="form-layout">
<label id="name-label" for="name">Name</label>
<input
id="name"
name="name"
type="text"
class="content"
placeholder="Enter your name"
Required
/> </div>
<form id="survey-form">
<div class="form-layout">
<label id="email-label" for="email">Email</label>
<input
id="email"
name="email"
type="email"
class="content"
placeholder="Enter your Email"
Required/> </div>
<form id="survey-form">
<div class="form-layout">
<label id="number-label" for="age">Age(optional)</label>
<input
id="number"
name="age"
type="number"
class="content"
placeholder="Age"
min="1"
max="99"
</fieldset> </div>
<form id="survey-form">
<div class="form-layout">
<p>Which option best describes your lifestyle?</p>
<select
id="dropdown"
name="role"
class="dropdown"
required/>
<option disabled selected value>Select current role</option>
<option id="rawr" value="Rawr">Carnivore </option>
<option value="Baller">Omnivore </option>
<option value="Dirty">Vegetarian </option>
<option value="Fishy">Pescetarian </option>
<option value="Other">Other</option>
</select> </div>
<div class="form-layout">
<p>Would you consider Broccoli an important part of your life?</p>
</div>
<form id="survey-form">
<div class="dropdown-layout">
<label for="i'm adddicted">
<input
name="radio-content"
value="I'm addicted"
type="radio"
id="i'm addicted"
/>I'm Addicted </label> </div>
<div class="dropdown-layout">
<label for="definetly">
<input
name="radio-content"
value="Definetly"
type="radio"
id="definetly"
/>Definetly </label> </div>
<div class="dropdown-layout">
<label for="most certainly">
<input
name="radio-content"
value="Most Certainly"
type="radio"
id="most certainly"
/>Most Certainly </label> </div>
<form id="survey-form">
<div class="dropdown-layout">
<label class="heck no">
<input
name="radio-content"
value="Heck No"
type="radio"
id="heck no"
/>Heck No </label> </div>
<form id="survey-form">
<div class="dropdown-layout">
<label for="green devil">
<input
name="radio-content"
value="Green Devil"
type="radio"
id="green devil"
/>Green Devil </label> </div> </form>
<form id="survey-form">
<div class="form-layout">
<label id="comment-box" for="comments">How has Broccoli enriched your life? </label> </div>
<textarea
id="comment"
name="comment"
class="textarea2"
rols="5"
cols="40"
placeholder="Explain in explict detail!"
/> </textarea> </label>
<form id="survey-form">
<div>
<p>Would you reccomend the <a class="holy">LORD ALMIGHTY BROCCOLINI</a> to your loved ones? </div>
<label
for="broccolini-y"/>YAY
<input
id="broccolini-y"
name="broccolini-y"
type="checkbox"
class="yay"
value="Positive"/>
<label
for ="broccolini-n"/>NAY
<input
id="broccolini-n"
name="broccolini-n"
type="checkbox"
class="nay"
value="Negative"/>
<fieldset>
<label
for="terms-and-conditions"
name="terms-and-conditions"
class="form-layout">
<input
id="terms-and-conditions"
type="checkbox"
required name="terms-and-conditions"
class="t-c" />I accept the
<a href="https://youtu.be/q-_G_Crh6ic?t=15">broccoli almighty
</a> </form>
<form id="survey-form">
<button id="submit" class="submit">
<input type="submit" value="Submit"/>
</fieldset>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Challenge: Survey Form - Build a Survey Form
Link to the challenge: