freeCodeCamp/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-forms-by-buildin.../60f02e7361b68405e27b62a5.md

732 B

id title challengeType dashedName
60f02e7361b68405e27b62a5 步驟 5 0 step-5

--description--

body 中, 添加一個 h1 文本 Registration Form,來給內容添加一個標題。

--hints--

應該在 body 內添加一個 h1

assert.exists(document.querySelector('body > h1'));

應該給 h1 元素添加文本 Registration Form

assert.equal(document.querySelector('body > h1')?.textContent, 'Registration Form');

--seed--

--seed-contents--

<!DOCTYPE html>
<html>
  <head>
    <title>Registration Form</title>
      <link rel="stylesheet" href="styles.css" />
  </head>
--fcc-editable-region--
  <body>

  </body>
--fcc-editable-region--
</html>