H5新标签
大区块 :section
文章:article
头部:header
尾部:footer
主体:main /只能用一次/
时间:time
地址:address
标题组:hgroup0963.
导航:nav
图文混排:figure、figcaption
侧标栏:aside
重新标签:
标记:mark
菜单列表:menu
拼音注释:ruby、rt
移除标签:
font、center、big、tt
XHTML:标签必须全部小写、标签必须闭合,
属性全部小写、不能缩写、引号必须写
表单:
新元素:
进度条:progress
提示列表:datalist/option
详细标签:deatails/summary
输出:output/keygen
新类型:
邮箱:email
网址:url
搜索:search
电话:tel
数字:number
颜色:color
滑块:range
时间:time
日:date
周:week
月:month
本地时间:datetime-local
当前时间:datetime
新属性:
重定向提交路径:formaction
重定向提交方式:formmethod
表单无需验正:formnovalidate
input和datalist关联绑定 列表list
input和form关联绑定 form
步长step
最大:max
最小:min
最大长度:maxlength
最小长度:minlength
提示:placeholder
必填:required
自动获取焦点:autofocus 只能写一次
自动完成:autocomplete=“off” on开启
正则pattern
多选:multiple
音频、视频:
新元素:
audio
video
embed
属性:
类型:type
宽度:width
高度:height
路径src
移除元素:
bgsound
新属性:
自动播放autoplay、autostart
暂停:paused
当前时间:currentTime
总时间:duration
音量:volume
方法:
播放:play
暂停:pause
重置:load
图片:
带尺寸的图片:
居中的图片:
居中并且带尺寸的图片:
当然,我们为了让用户更加便捷,我们增加了图片拖拽功能。
如何插入一段漂亮的代码片
去博客设置页面,选择一款你喜欢的代码片高亮样式,下面展示同样高亮的 代码片
.
// An highlighted block
var foo = 'bar';
生成一个适合你的列表
- 项目
- 项目
- 项目
- 项目
- 项目1
- 项目2
- 项目3
- 计划任务
- 完成任务
创建一个表格
一个简单的表格是这么创建的:
项目 | Value |
---|---|
电脑 | $1600 |
手机 | $12 |
导管 | $1 |
设定内容居中、居左、居右
使用:---------:
居中
使用:----------
居左
使用----------:
居右
第一列 | 第二列 | 第三列 |
---|---|---|
第一列文本居中 | 第二列文本居右 | 第三列文本居左 |
SmartyPants
SmartyPants将ASCII标点字符转换为“智能”印刷标点HTML实体。例如:
TYPE | ASCII | HTML |
---|---|---|
Single backticks | 'Isn't this fun?' |
‘Isn’t this fun?’ |
Quotes | "Isn't this fun?" |
“Isn’t this fun?” |
Dashes | -- is en-dash, --- is em-dash |
– is en-dash, — is em-dash |
创建一个自定义列表
-
Markdown
- Text-to- HTML conversion tool Authors
- John
- Luke
如何创建一个注脚
一个具有注脚的文本。1
注释也是必不可少的
Markdown将文本转换为 HTML。
KaTeX数学公式
您可以使用渲染LaTeX数学表达式 KaTeX:
Gamma公式展示 Γ ( n ) = ( n − 1 ) ! ∀ n ∈ N \Gamma(n) = (n-1)!\quad\forall n\in\mathbb N Γ(n)=(n