HTML

块级元素&行内元素

head配置

1、<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=no">

<!-- 设置视口的宽度缩放等级,用户缩放 -->

2、<link rel="shortcut icon" href="/jmplus1.0/img/favicon.ico">

​<!-- 浏览器的标签头上面显示了一个图标 -->

3、<meta name="format-detection" content="telphone=no, email=no" />

<!-- 忽略页面中的数字识别为电话,忽略email识别 -->

块级元素

1、div(布局、模块)

2、p, h1~h6

3、ul(无序列表)、ol(有序列表)

4、table form

5、header,section,article,footer

6、hr(分隔线)

行内元素

1、表单标签 label, button, input, select, textarea

2、i(图标), em, strong(强调), s b font center(不推荐)

3、a,<br/>

4、span,img

5、sub,sup

 

前端工程师手册

https://leohxj.gitbooks.io/front-end-database/content/html-and-css-basic/common-tag.html

HTML-块级元素&行内元素

By qiaoshuyi

HTML-块级元素&行内元素

  • 357