HTML5 全局属性汇总
1、accesskey 属性
<!DOCTYPE html>
<html lang="zh-CN">
<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>HTML全局属性测试</title>
</head>
<body>
<form action="">
<p>
Name: <input type="text" name="name" id="" accesskey="n">
</p>
<p>
Password: <input type="password" name="password" id="" accesskey="p">
</p>
<p>
Name: <input type="submit" name="" id="" value="Log In" accesskey="s">
</p>
</form>
</body>
</html>浏览器/平台
Window
Linux
Mac
2、class 属性
3、contenteditable 属性
4、dir 属性

5、draggable 属性
6、dropzone 属性
7、id 属性
8、hidden 属性
9、lang 属性
10、spellcheck 属性

11、style 属性
12、tabindex 属性
13、title 属性
Last updated