freecodecamp-HTML5 and CSS3-第一課

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”。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 11,038評(píng)論 0 23
  • Spring Cloud為開(kāi)發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見(jiàn)模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,534評(píng)論 19 139
  • 1、樣式表書(shū)寫(xiě)位置 ◆內(nèi)嵌式寫(xiě)法 ◆外鏈?zhǔn)綄?xiě)法 ◆行內(nèi)樣式表 ◆三種寫(xiě)法特點(diǎn):★內(nèi)嵌式寫(xiě)法,樣式只作用于當(dāng)前文件,...
    嗨黃先生閱讀 249評(píng)論 0 0
  • 時(shí)隔多年沒(méi)寫(xiě)東西,開(kāi)頭不知從何說(shuō)起。大家在接待顧客時(shí)內(nèi)心是不是很糾結(jié),糾結(jié)這個(gè)顧客會(huì)不會(huì)買(mǎi),糾結(jié)這個(gè)顧客會(huì)買(mǎi)幾件...
    煙臺(tái)保利曹英楠閱讀 196評(píng)論 3 0

友情鏈接更多精彩內(nèi)容