Survey Form, 11/17 passed, is there anything I can improve with?

So I ran my “Survey Form” code in codepen.io and the results was 11/17, I was wondering what can I improve?

Here’s the link to the code:

Oh, I’m new to the forums as well. Hello!

The failing test is trying to tell you what the problem is. When I press the red “11/17 Passed” button, I see this as the first failing test:

  1. I can see a title with id=“title” in H1 sized text.

There should be an element with id=“title” : expected null to not equal null

AssertionError: There should be an element with id=“title” : expected null to not equal null

When I look at your code, I see this:

        <h1 id="title center" class="center-align">
            Survey Form
        </h1>

So, you have an h1. But you’ve given it two ids. Something cannot have two ids. When I fix that, that test passes for me.

Work through the test messages like that. Check back with a specific question if you get stuck on one of them.

1 Like

I didn’t know I could press that! Thank you for the help! :slight_smile:

1 Like

It looks like I got stuck on this last error. It says my button element should be inside the form, but it’s already inside. It might just be an indent error, but could you help me otherwise? ty

Indenting shouldn’t cause errors.

You have a form nested inside of another form. When I remove the inner one, that test passes.

1 Like