HTML cat photo app/step 43

Could someone please explain to me what’s wrong with this code (I didn’t include the first “<” and last “>” so that the code shows here correctly):
button type=“button”>submit</button

It says: “Sorry, your code does not pass. Your button element should have a type attribute with the value submit. You have either omitted the value or have a typo. Remember that attribute values should be surrounded with quotation marks.”
Maybe I misunderstood the assignment?

For future reference.

To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key. You may also be able to use Ctrl+e to automatically give you the triple back ticks while you are typing in the this editor and the cursor is on a line by itself. Alternatively, with the cursor on a line by itself, you can use the </> button above the editor to add the triple back ticks.

It looks like you changed the button text from “Submit” to “submit”. You don’t want to change anything about the button that is already there. You just want to add the type attribute to it.

Also:

“Add the type attribute with the value submit…”

What value did you set for the type attribute?

Now I see, I fixed the attribute and also spelling using capital S :slight_smile: Thank you!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.