(1)网页自动刷新
<meta http-equiv="refresh" content="2"> //每隔2秒钟,自动刷新网页一次
<meta http-equiv="refresh" content="2;url=http://www.baidu.com"> //2秒钟后,跳转到百度
(2)设置网页的字符集
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
(3)设置网页搜索关键字
<meta name="keywords" content="博客,博客学习" />
(4)设置网页描述信息
<meta name="description" content="这是我的CSDN博客">
(5)标签提示信息
<div title="鼠标停留显示内容1">文字内容1</td>
(6)设置div为可编辑状态,则可点击获取焦点,同时div的内容也是可以编辑的;如:
<div contenteditable="true">11111111111111</div>
设置div的tabindex,此时div的内容是不可编辑的;如:
<div tabindex="0">11111111111111</div>
(7)使用标签可以拖拽(h5) 还有一些拖拽事件可自己百度
<div draggable="true" />
(8)input type
<input,type="text">,文本框
<input,type="password">,密码框
<input,type="submit">,提交按扭
<input,type="checkbox">,复选框
<input,type="radio">,单选框
<input,type="reset">,重置按扭
<input,type="image">,图片按扭
<input,type="hidden">,隐藏域
<input,type="button">,按扭
<input,type="file">,浏览文件