前端学习 HTML标签

来源:互联网 发布:手机淘宝上架图片尺寸 编辑:程序博客网 时间:2024/06/05 09:36

一些不常用的标签:
ul 定义无序列表

  • Coffee
  • Tea
  • Milk

ol 有序列表

  1. Coffee
  2. Tea
  3. Milk

dl 定义列表

计算机
用来计算的仪器 … …
显示器
以视觉方式显示信息的装置 … …

strong 把文本定义为语气更强的强调的内容
em 文本定义为强调的内容
blockquote 之间的所有文本都会从常规文本中分离出来,经常会在左、右两边进行缩进(增加外边距),而且有时会使用斜体。也就是说,块引用拥有它们自己的空间

Here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation.

cite 通常表示它所包含的文本对某个参考文献的引用,比如书籍或者杂志的标题
abbr 简称缩写
The PRC was founded in 1949.
acronym HTML5 中不支持 <acronym> 标签。请使用 <abbr> 标签代替,定义首字母缩写
WWW
code 计算机代码文本
fieldset 将表单内的相关元素分组

height: weight:

legend legend 元素为 fieldset 元素定义标题

health information height: weight:

label 为 input 元素定义标注(标记)


caption 定义表格标题。caption 标签必须紧随 table 标签之后。您只能对每个表格定义一个标题。通常这个标题会被居中于表格之上。

Monthly savings Month Savings January $100

thead 表头内容进行分组
tbody 表格主体(正文)。该标签用于组合 HTML 表格的主体内容
tfoot 用于对 HTML 表格中的表注(页脚)内容进行分组

Month Savings Sum $180 January $100 February $80

HTML5新元素
header 文档的页眉

Welcome to my homepage

My name is Donald Duck

The rest of my home page…

section 文档中的节(section、区段)


PRC


The People’s Republic of China was born in 1949…


footer 文档或节的页脚


Posted by: W3School


Contact information: someone@example.com.


0 0
原创粉丝点击