HTML元素指的是從開始標簽( start tag)到結束標簽( end tag)的所有代碼
| 開始標簽 | 元素內容 | 結束標簽 |
|---|---|---|
| <p> | this is a paragraph | </p> |
| <a href="https://www.cnblogs.com/webaction/p/default.htm"> | this is a link | </a> |
| <br/> |
注釋:開始標簽被稱為開放標簽(opening tag),結束標簽被稱為閉合標簽(closing tag)
- HTML元素以開始標簽起始
- HTML元素以結束標簽終止
- 元素的內容是開始標簽與結束標簽之間的內容
- 某些HML元素(空標簽)具有空內容( empty content)
- 空元素在開始標簽中進行關閉(以開始標簽的結束而結束)
- 大多數HTM元素可擁有標簽屬性
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/2372.html
標籤:Html/Css
上一篇:常用的HTML標簽完整梳理
