<!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=utf-8" />
<title>表单</title>
</head>
<body>
<form action="">
<p>opear下可以验证成功</p>
<p>type:range<input type="range" max=10,min=1/></p>
<p>type:email<input type="email" name="email"/></p>
<p>type:url<input type="url" name="URLLD"/></p>
<p>type:number<input type="number" name="NUm"/></p>
<p>type:month<input type="month" name="month"/></p>
<p>type:week<input type="week" name="week"/></p>
<p>type:time<input type="time" name="time"/></p>
<p>type:datetime<input type="datetime" name="datetime"/></p>
<p>type:datetime-local<input type="datetime-local" name="datetime-local"/></p>
<p>type:search<input type="search" name="search"/></p>
</form>
<for
<!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=utf-8" />
<title>表单</title>
</head>
<body>
<form action="">
<p>opear下可以验证成功</p>
<p>type:range<input type="range" max=10,min=1/></p>
<p>type:email<input type="email" name="email"/></p>
<p>type:url<input type="url" name="URLLD"/></p>
<p>type:number<input type="number" name="NUm"/></p>
<p>type:month<input type="month" name="month"/></p>
<p>type:week<input type="week" name="week"/></p>
<p>type:time<input type="time" name="time"/></p>
<p>type:datetime<input type="datetime" name="datetime"/></p>
<p>type:datetime-local<input type="datetime-local" name="datetime-local"/></p>
<p>type:search<input type="search" name="search"/></p>
</form>
<form name="form2">
WebPage: <input type="url" list="url_list" name="link" />
<datalist id="url_list">
<option label="W3cshcool" value="http://www.W3cshcool.com"></option>
<option label="Google" value="http://www.google.com" />
<option label="Microsoft" value="http://www.microsoft.com" />
</datalist>
<br />
required属性:<input type="text" required="required" name="txt1" />
<input type="submit" value="提交" />
</form>
</body>
</html>