项目文件夹

文件
wehub-resource-sync dde272c4b8
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
CD - Docker - GHCR Images / Build and Push Images (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 11:55:53 +08:00

1.8 KiB

id, title, challengeType, videoUrl, forumTopicId
id title challengeType videoUrl forumTopicId
bd7123c8c441eddfaeb5bdef 向HTML Elements说你好 0 https://scrimba.com/p/pVMPUv/cE8Gpt2 18276

Description

欢迎来到freeCodeCamp的HTML编码挑战。这些将逐步引导您完成Web开发。首先,您将首先使用HTML构建一个简单的网页。您可以在code editor编辑code ,该code editor嵌入到此网页中。您是否在代码编辑器中看到<h1>Hello</h1> ?这是一个HTML element 。大多数HTML元素都有一个opening tag和一个closing tag 。打开标记如下所示: <h1>结束标记如下所示: </h1>开始标记和结束标记之间的唯一区别是结束标记的左括号后面的正斜杠。每个挑战都有可以随时单击“运行测试”按钮运行的测试。当您通过所有测试时,系统会提示您提交解决方案并转到下一个编码挑战。

Instructions

要通过此挑战的测试,请将h1元素的文本更改为“Hello World”。

Tests

tests:
  - text: 你的<code>h1</code>元素应该有“Hello World”文本。
    testString: 'assert.isTrue((/hello(\s)+world/gi).test($("h1").text()), "Your <code>h1</code> element should have the text "Hello World".");'

Challenge Seed

<h1>Hello</h1>
<!-- Add your code below this line -->
<!-- Add your code above this line -->
<style>
  /* change code below this line */
  /* change code above this line */
</style>

Solution

<h1>Hello World</h1>