《HTML入门笔记1》

91 阅读1分钟

HTML 是谁发明的

李爵士

HTML 起手应该写什么

Emmet感叹号

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>

常用的表章节的标签有哪些?

章节标签

  1. 标题h1~h5
  2. 章节section
  3. 文章article
  4. 旁支内容aside
  5. 段落p
  6. 头部header
  7. 脚部footer
  8. 划分div
  9. 主要内容main

全局属性

所有标签都有的属性

  • class
  • contenteditable
  • hidden
  • id
  • style
  • tabindex
  • title

常用的内容标签有哪些?分别是什么意思?

  • ol+li有序列表
  • ul+li无序列表
  • dl+dt+dd描述列表
  • pre保留空格、回车和tab
  • code里面字体等宽
  • hr水平分割线
  • br换行
  • a超链接
  • em强调 语气强调
  • strong重要 本质强调
  • quote引用
  • blockquote换行的引用