表单元素
- color
- datetime
- datetime-local
- time
- date
- week
- month
以上元素相关代码
<span style="font-size:18px;"><span style="font-size:18px;"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>表单</title>
</head>
<body>
<form>
<input type="color"/>
<input type="datetime"/>
<input type="datetime-local"/>
<input type="time"/>
<input type="date"/>
<input type="week"/>
<input type="month"/>
<input type="text" placeholder="请输入姓名:" spellcheck="true" list="test" aotufocus /> <!--placeholder属性--></span></span>
<span style="font-size:18px;"><span style="font-size:18px;"> <!-autofocus自动焦点属性-->
</form>
<datalist id="test"> <!--数据列表,让文本框具有下拉选择的功能--><!--和list关联-->
<option value="a"></option>
<option value="b"></option>
<option value="c"></option>
</datalist>
</body></span>
</html></span>
效果显示