15 lines
505 B
Markdown
15 lines
505 B
Markdown
---
|
||
title: HTML Elements
|
||
localeTitle: HTML元素
|
||
---
|
||
大多数HTML元素都有一个开始标记和一个结束标记。
|
||
|
||
打开标签如下所示: `<h1>`和Closing标签如下所示: `</h1>` 。
|
||
|
||
请注意,打开和关闭标记之间的唯一区别是结束标记在其打开尖括号后面有一个斜杠。
|
||
|
||
还有一些HTML元素是自动关闭的。
|
||
|
||
例如,图像标签`<img />`和输入标签`<input />` 。
|
||
|
||
[试试吧!](http://www.freecodecamp.com/challenges/say-hello-to-html-elements) |