From b28ed8ebfe5253e27a18bfc21c492788d254a327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=80=E6=A2=A6?= <3501646051@qq.com> Date: Sun, 2 Nov 2025 19:44:44 +0800 Subject: [PATCH] =?UTF-8?q?docs(web):=20=E6=B7=BB=E5=8A=A0HTML=E5=B8=B8?= =?UTF-8?q?=E7=94=A8=E6=A0=87=E7=AD=BE=E4=B8=8E=E5=B1=9E=E6=80=A7=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增HTML常用标签与属性的详细教程文档,包含基础标签使用、语义化布局、媒体元素等内容,并附带示例代码和练习作业 --- docs/.vuepress/notes.ts | 1 + .../web/basic-syntax/html-tags-attributes.md | 1183 +++++++++++++++++ 2 files changed, 1184 insertions(+) create mode 100644 docs/notes/programming/web/basic-syntax/html-tags-attributes.md diff --git a/docs/.vuepress/notes.ts b/docs/.vuepress/notes.ts index 7d46f4b..0747308 100644 --- a/docs/.vuepress/notes.ts +++ b/docs/.vuepress/notes.ts @@ -150,6 +150,7 @@ const web = defineNoteConfig({ { text: "基础知识", prefix: "/basic-syntax", items: [ { text: "Web 前端基础讲解", link: "/programming/web/basic-syntax/html-css-js/" }, + { text: "HTML 常用标签与属性", link: "/programming/web/basic-syntax/html-tags-attributes/" }, ], }, ] diff --git a/docs/notes/programming/web/basic-syntax/html-tags-attributes.md b/docs/notes/programming/web/basic-syntax/html-tags-attributes.md new file mode 100644 index 0000000..59de8f7 --- /dev/null +++ b/docs/notes/programming/web/basic-syntax/html-tags-attributes.md @@ -0,0 +1,1183 @@ +--- +title: HTML 常用标签与属性 +createTime: 2025/11/2 19:30:00 +permalink: /programming/web/basic-syntax/html-tags-attributes/ +--- + +## 开场:掌握这些标签,就能写出 80% 的网页 + +今天我们来认识**最常用的 HTML 标签**和它们的**常见属性**。 +把它们学会,你就能从零搭建出结构清晰、内容丰富的网页。语言风格延续上一课的节奏:轻松、直观、能马上上手。 + +想象一下: +- 网页是一座房子; +- 标签是房子里的“房间与家具”; +- 属性是“家具的颜色、大小、功能开关”。 + +## 一、页面骨架(Head / Body) + +网页的基本结构: +```html title="index.html" + + +
+ + +