email/url/range/number/search/color/tel/时间选择/针对PC端的其它类型(除了number和时间选择外,其它的类型都只有在手机端的输入板有效果)数组
<input type="email">
<input type='url'>
<input type="tel" name='tel'>
<input type="number" name='number'>
PC端显示(只有数字、运算符和字母e能够做为天然数的常数能够输入):
<input type="date"> :年月日
<input type="month"> :年月
<input type="week"> :年月星期
<input type="time"> :时分秒
<input type="datetime"> :年月日时分秒(UTC时间)
<input type="datetime-local">:年月日时分秒(本地时间)
PS:以上的input类型基本只有谷歌和Opera浏览器是彻底支持的,datetime类型谷歌浏览器不兼容
复制代码
效果图: 浏览器
<input type="color">
<input type="range" max='20' min='0' value='20'>
<input type="search">
autocomplete/autofocus/multiple/requiredbash
<input type='text' required>
<input type='email' required>
link的sizes属性/base对的target属性异步
<head>
<base href='https://www.baidu.com/' target='_blank'>
</head>
<body>
<a href>aaa</a>
</body>
复制代码
script/olasync
script标签新增属性 async和defer(异步加载外部js文件,可解决外部js放置在头部致使的白屏问题) 不一样点: async:何时加载完js何时执行 defer:全部资源加载完后再执行jsui
ol新增属性 start(起始值)和reversed(倒序排列),注意,reversed的倒叙并不会使内容也倒叙,只是ol自带的序号倒叙 start: url