HTML入门笔记1

193 阅读1分钟

1.   HTML是World Wide Web的发明者李爵士发明的

2.   HTML起手写:

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

3.   常用的表章节标签:

h1~h6 标题标签

section 章节

article 文章

p 段落

header 头部

footer 脚部

main 主要内容

aside 旁支内容

div 划分

4.   全局属性:

  • class
  • contenteditabke
  • hidden
  • id
  • style
  • tabindex
  • title

5.   常用的内容标签:
ol+li 有顺序的列表

ul+li 没有顺序的列表

dl+dt+dd 描述列表

pre 保留空格和换行

hr 水平线

br 换行

a 超链接

em 强调

strong 重点

code 展示代码

quote 内联引用

blockquote 块级引用