无法将表单提交到freecodecamp模拟网址

时间:2019-04-25 06:04:02

标签: html css

我无法提交表格

我已经检查了好几个小时的代码,并在freecodecamp论坛上查看了帖子,但在我看来,我仍然无法提交表单,也无法查明问题所在。

levels

当我单击#submit元素时,电子邮件将提交到一个静态页面(使用此模拟URL:https://www.freecodecamp.com/email-submit),该页面确认输入了电子邮件地址(并已成功发布)

1 个答案:

答案 0 :(得分:0)

错误状态:

AssertionError: The #email input should have a name attribute : expected false to equal true

因此,添加名称属性:

<input type="email" placeholder="Enter email address"id="email" name="email" required><br>

有关任何帮助,请检查here