Im losing my mind please help

i am stuck on this for several hours i don’t know if it’s the way they describe the story or im just brain dead retarded having issues with 14 PLEASE HELP ME BEFORE MY BRAIN SELF IMPLODES
#14 https://codepen.io/solarhacker420/pen/wvdYZWdInside the form element, I can select several fields from a series of checkboxes, each of which must have a value attribute.

3 Likes

#14. “Inside the form element, I can select several fields from a series of checkboxes, each of which must have a value attribute.”

Check your <form> and <fieldset> tags.

@solarcruiserdude,

  • Run your HTML code through the W3C validator.
    • There are HTML syntax/coding errors you should be aware of and address.
  • One thing you should do is search for html form elements. This is a way of finding the valid elements you can put into a form. One thing you should notice right away is that it is not valid to have a form element inside of a form element. You have several.

Please go easy with the language.

1 Like

i don’t know what im doing wrong or my understanding and the value attribute, ive researched and compared can u give me a hint?

Check if your <form> and <fieldset> tags are opened, closed and nested correctly.

You should also give a little apology about your language.

You have closing tags with no opening tags. validate through w3c validator and also do what MyTrueName said. Just have to look closely.

You really need to heed my advice about looking up form elements and running your code through the W3C validator.

i did the W3C but there was so much there, i did fix a number of tags, i hope i got all of them.

Hi! I think you’re missing an extra <form id="survey-form"> that opens right below your body starts and ends at the very end (I think you’re missing the </body> too).

So it would be something like:

<body>
<form id="survey-form">
... all your code
</form>
</body>

And for the checkboxes, just add a value atribbute like this:
<label for="Maybe"><input id="Maybe" type="checkbox" name="personality" value='maybe'>Maybe</label>

Like that but with all the checkboxes.

I just don’t understand like, i did the challenges all the way through and I don’t remember recalling this issue, I think i have a difficult time understanding what this mystory is asking of me, i know how to put together a check box and radio but i dont understand the rest

error code says i need value attributes for my check boxes, but i have them right? i changed their names and back so any times.

You need 5 check boxes

Be sure to read the entire failing message. Click the red button to see which test(s) are failing and text to help you correct the issue.
Be sure and read more than just the first line of the failing message. The ability to read and comprehend error messages is a skill you’ll need to acquire as a developer. Ask questions on what you don’t understand.

The message says

Inside the form element, I can select several fields from a series of checkboxes, each of which must have a value attribute.
All your checkboxes must have a value attribute : expected 5 to equal 2
AssertionError: All your checkboxes must have a value attribute : expected 5 to equal 2 

thats the part i dont understand what does that error mean it expects 5 to equal to 2? they all had value attributes and im currently changing them again

This is the lesson that introduced the value attribute.

its expecting 5 and only getting 2?
out of interest why do you have two radios and two checkboxes, and then checkboxes for asking if you would recommend.
Id change the recommend to radios and then use your improvement section to put all the required check boxes in.

How many checkboxes do you have? I count five (5).
How many have a value attribute? It’s not five.

And if I may offer a piece of advice @solarcruiserdude, don’t try and replicate the sample projects.
They show one way the project can be completed.
The instructions say that yours should be “functionally similar” and “give it your own personal style”.

thankyou and ive tried many different ways and reverted to what ive learned so far ive looked at there codes in comparisons . ill get this eventually

Take a deep breath. Take a breath. Walk away from it for a bit.

You got a lot of advice pretty quickly. Come back and look at it in an hour or so, or maybe even tomorrow.
If there’s still something that’s confusing just ask.

Hopefully you now understand the error message.

EDIT:
I don’t want to confuse you more but Codepen provides the boilerplate for you. It only expects the code you’d put within the body element in the HTML editor. (No need to include the body tags). For anything you want to add to the <head> element click on the ‘Settings’ button, then HTML and add it into the ‘Stuff for <head>’ box.
I mention this because you have boilerplate tags that are out of order. (head element that should be header, body element in the middle of your code)
Review this for an understanding of the HTML boilerplate tags.

1 Like