Introduction to Basic HTML & HTML5

HTML 的全称是 HyperText Markup Language(超文本标记语言),它是一种用来描述网页结构的标记语言。

它采用一种特殊的语法或符号来组织网页的内容,元素通常都有开始标记和结束标记,例如标题、段落、列表。

举个例子:

<h1>Top level heading: Maybe a page title</h1>

<p>A paragraph of text. Some information we would like to communicate to the viewer. This can be as long or short as we would like.</p>

<ol>
  <li>Number one on the list</li>
  <li>Number two</li>
  <li>A third item</li>
</ol>

Becomes:

Top level heading: Maybe a page title

A paragraph of text. Some information we would like to communicate to the user. This can be as long or short as we would like.

  1. Number one on the list
  2. Number two
  3. A third item

HTML 的 HyperText 超文本部分来自 Web 的早期和最初的用例。页面通常包含静态文档,其中包含对其他文档的引用。这些引用包含浏览器用于导航到引用文档的超文本链接,这样用户就可以阅读引用文档,而无需手动搜索。

随着 Web 页面和 Web 应用程序变得越来越复杂,W3C 更新了 HTML 规范,以确保网页能够在任何浏览器上显示。最新版本的 HTML 是 HTML5。

本章介绍了如何使用 HTML 元素为 Web 内容赋予结构和语义。

回到第一个小节