Say Hello to HTML Elements
Welcome to Free Code Camp's first coding challenge.
欢迎来到FreeCodeCamp的第一个挑战
You can edit code
in your text editor
, which we've embedded into this web page.
你可以在本页面的文本编辑器
中编写代码
。
Do you see the code in your text editor that says <h1>Hello</h1>
? That's an HTML element
.
你可以在你的文本编辑器中看到<h1>Hello</h1>
么?这就是个HTML元素。
Most HTML elements have an opening tag
and a closing tag
.
大多数的HTML元素都有开始标签
和结束标签
。
Opening tags look like this:
开始标签:
<h1>
Closing tags look like this:
结束标签:
</h1>
Note that the only defference between opening tags and closing tags is that closing tags have a slash after their opening angle bracket.
可以观察到:开始标签和结束标签的唯一区别就是在<
前有个/
。
Each challenge has tests that you can run at any time by clicking the "Run tests" button. Once you gets all tests passing, you can advance to the next challenge.
你可以随时点击“Run tests”按钮来运行代码。当你通过所有测试后,你可以进入下一个挑战。
To pass the tests on this challenge, change you h1
element's text to say "Hello World" instead of "Hello". Then click the "Run tests" button.
通过测试的方法:将h1
元素的“Hello”更改为“Hello World”。然后点击“Run tests”。