1.6 KiB
1.6 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
bd7123c8c441eddfaeb5bdef | Say Hello to HTML Elements | 0 | 向HTML Elements说你好 |
Description
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>
Solution
// solution required