Say Hello to HTML Elements
Welcome to Free Code Camp's first coding challenge.
歡迎來(lái)到FreeCodeCamp的第一個(gè)挑戰(zhàn)
You can edit code in your text editor , which we've embedded into this web page.
你可以在本頁(yè)面的文本編輯器中編寫(xiě)代碼。
Do you see the code in your text editor that says <h1>Hello</h1>? That's an HTML element.
你可以在你的文本編輯器中看到<h1>Hello</h1>么?這就是個(gè)HTML元素。
Most HTML elements have an opening tag and a closing tag.
大多數(shù)的HTML元素都有開(kāi)始標(biāo)簽和結(jié)束標(biāo)簽。
Opening tags look like this:
開(kāi)始標(biāo)簽:
<h1>
Closing tags look like this:
結(jié)束標(biāo)簽:
</h1>
Note that the only defference between opening tags and closing tags is that closing tags have a slash after their opening angle bracket.
可以觀察到:開(kāi)始標(biāo)簽和結(jié)束標(biāo)簽的唯一區(qū)別就是在<前有個(gè)/。
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.
你可以隨時(shí)點(diǎn)擊“Run tests”按鈕來(lái)運(yùn)行代碼。當(dāng)你通過(guò)所有測(cè)試后,你可以進(jìn)入下一個(gè)挑戰(zhàn)。
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.
通過(guò)測(cè)試的方法:將h1元素的“Hello”更改為“Hello World”。然后點(diǎn)擊“Run tests”。
