Debug a Donation Form - 调试捐赠表单

告诉我们发生了什么:

required要我写在input里面然后我写了他还是提示我没有我也没有拼错字复制也试了。
Full Name

这就是我写的第一个input部分,它还是提示没有required.

到目前为止你的代码

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Donation Form</title>
</head>
<body>
  <h1>Donation Form</h1>
  <form>
    <label for="name">Full Name:</label>
    <input type="text" Id="name" required>

    <label for="email">Email Address:</label>
    <input type="email" id="email" required>

    <label for="amount">Donation Amount ($):</label>
    <input type="number" name="amount" required>

    <label for="newsletter">subscribe</label>
    <input type="checkbox" id="newsletter">

    <input type="submit" value="Send">
    
    <button>Sumbit</button>
  </form>
</body>
</html>

你的浏览器信息:

用户代理是: Mozilla/5.0 (iPhone; CPU iPhone OS 26_4_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/148.0.7778.166 Mobile/15E148 Safari/604.1

挑战信息:

Debug a Donation Form - 调试捐赠表单

GitHub Link: i18n-curriculum/curriculum/challenges/chinese/blocks/lab-debug-donation-form/690ddb5e6ee94eb73ed172b0.md at main · freeCodeCamp/i18n-curriculum · GitHub

Hi there,

It looks like you have removed the name attributes from the starting code. This will cause the tests to fail.

You also have no id attribute for the amount input, yet you are referencing it in that label.

And why was this added?

Happy coding!