Product Landing page User Story #11

Hi, I have still problem with step 11.
Is possible there is something wrong with ?
My not working code is:

      <form id="form" action="https://www.freecodecamp.com/email-submit">
        <input id="email" type="email" placeholder="E-mail" />
        <input id="submit" type="submit" value="Souhlasím" />
      </form>

Well, i can’t find mistake. Please help me.

Hi, is it possible to have a link to your codepen? It would be easier to see the problem with the whole project in context.

With only this code, my guess would be try to remove the backward slash before your closing angle bracket.

https://codepen.io/umaadaak/pen/yLVxpGw

In HTML, ID values must be unique.
You’ve assigned two elements with the ID submit.

When this occurs, tools are unable to select the element they’re intending due to the ambiguity.

If the id value is not the empty string, it must be unique in a document.

The id is often used with getElementById() to retrieve a particular element. Another common case is to use an element’s ID as a selector when styling the document with CSS.
- Element.id - Web APIs | MDN

1 Like

you have two forms, with each having an element with the id of submit, they are conflicting with one another as id is an unique attribute meant to be assigned to an element once only.

1 Like

I see it now, thank you very much, people.

I was building on the previous task and this didn’t occur to check to me.