Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quiz your friend #5

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

paulsobers23
Copy link

No description provided.

Comment on lines 46 to 52
<input type="checkbox" name="game-day" value="Sunday" id="game-day" checked>Sunday
<input type="checkbox" name="game-day" value="Monday" id="game-day">Monday
<input type="checkbox" name="game-day" value="Tuesday" id="game-day">Tuesday
<input type="checkbox" name="game-day" value="Wednesday" id="game-day">Wednesday
<input type="checkbox" name="game-day" value="Thursday" id="game-day">Thursday
<input type="checkbox" name="game-day" value="Friday" id="game-day">Friday
<input type="checkbox" name="game-day" value="Saturday" id="game-day">Saturday
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You know, Paul, that each id should be unique. Your instincts are right here. ids would be nice here because we could associate our <input>s with our <label>s but here's how you implement it:

<input type="checkbox" name="game-day" value="Sunday" id="sunday">
<label for="sunday">Sunday</label>

In sum, your for attribute on your <label> tag should match the id on your <input>. And most importantly, each one of these checkboxes needs its own label.

Comment on lines 60 to 62
<input type="radio" name="game-system" value="PS4">PS4
<input type="radio" name="game-system" value="Xbox">Xbox
<input type="radio" name="game-system" value="Switch">Nintendo Switch
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same. Label all of these radios. Get rid of the <label> on the section title and instead use a <legend>.

<fieldset class="game-name">
<ul>
<li>
<label for ="game">1: What is your fav COD?</label>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The for attribute on your <label> should match the id for your <input>, not the name attribute.

@ROgbonna1
Copy link
Collaborator

You've got some changes to make here. Go ahead and make them and push them back up. Once this is perfect. I'll merge the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants