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>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