Skip to content

HTML

一句话解释

HTML (HyperText Markup Language) 是标准 language used 到结构内容的 web pages.

用大白话说

HTML 是 skeleton 的每个 web page. 它 uses 标签 — keywords wrapped in angle brackets 如 <p> and <h1> — to label pieces of content as paragraphs, headings, images, links, and more. The browser reads these tags and renders the content accordingly.

HTML is a markup language, not a programming language. It describes structure and meaning (semantics), not behavior or logic. You use HTML to say "这个是 heading" or "这个是列表"; you use CSS to style it and JavaScript to make it interactive.

An HTML document has a tree-like structure: the <HTML> element contains <head> (metadata) and <请求体> (visible content). Every element you see on a page is a node in this tree, which is called the DOM.

示例

html
<!DOCTYPE html>
<html>
  <head>
    <title>My Page</title>
  </head>
  <body>
    <h1>Hello, World!</h1>
    <p>This is a paragraph.</p>
  </body>
</html>

minimal HTML document. <h1> 是 heading, <p> 是 paragraph, and 两者都 live 内部 <请求体>.

相关术语

相关资源

相关课程

  • HTML

    学习 HTML 标签 and 结构

相关练习

相关项目

相关工具

解读错误信息

用大白话解释常见错误——什么意思、为什么发生、如何修复。

查看错误

← 返回术语表