HTML入门笔记1

97 阅读1分钟

1.HTML 是谁发明的 Tim Berners-Lee

2.HTML 起手应该写什么

<!DOCTYPE html> 
<html lang="en">
<head>
    <meta charset = "utf-8">
    <meta name = "viewpoint" content = "width=device-width, initial-scale = 1.0">
    <meta http-equiv = "X-UA-Compatible" content = "id-edge">
    <title>Document</title>
</head>
<body>
</body>
</html>

3.常用的表章节的标签有哪些,分别是什么意思(h1~h6、section、article、main、aside 等等)

  • h1~h6 : 标题
  • section : 章节
  • article : 文章
  • main : 主要内容
  • aside : 旁支内容
  • div : 划分
  • header : 头部
  • footer : 脚步
  • p : 段落

4.全局属性有哪些

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

5.常用的内容标签有哪些,分别是什么意思(a、strong、em、code、pre 等等)

  • a : 锚
  • strong : 加粗 内容上
  • em : 强调 语气上
  • code : 代码
  • pre : preview
  • q : 引用
  • br : 换行
  • ul : ordered list (+li)
  • ol : unordered list (+li)
  • dl+dt+dd : description list (+term + data)