返回列表

html5表单元素

默认分类 2013-03-19 17:13:58

demo地址:http://jsfiddle.net/mw4Sw/16/
<form methond="post" action="#">
<br/>text
<input required="required" type=text />
<br/>search
<input required="required" type=search />
<br/>tel
<input required="required" type=tel />
<br/>url
<input required="required" type=url />
<br/>email
<input required="required" type=email />
<br/>datetime
<input required="required" type=datetime />
<br/>date
<input required="required" type=date />
<br/>month
<input required="required" type=month />
<br/>week
<input required="required" type=week />
<br/>time
<input required="required" type=time />
<br/>datetime-local
<input required="required" type=datetime-local />
<br/>number
<input required="required" type=number />
<br/>range
<input required="required" type=range />
<br/>color
<input required="required" type=color />
<br/>checkbox
<input required="required" type=checkbox />
<br/>image
<input required="required" type=image />
<br/>file
<input required="required" type=file />
<br/>textarea
<textarea required="required">hjhjhj</textarea>
<br/>select
<select required="required"></select>
<br/>fieldset
<fieldset>
<legend>Personalia:</legend>Name:
<input type="text" />
<br />Email:
<input type="text" />
<br />Date of birth:
<input type="text" />
</fieldset>
<br/>datalist
<input type="text" required="required" id="myCar" list="cars" />
<datalist id="cars">
<option value="BMW" />
<option value="Ford" />
<option value="Volvo" />
</datalist>
<br/>keygen
<keygen required="required"></keygen>
<br/>output
<output required="required">sdfsadfsdf</output>
<br/>progress
<progress required="required"></progress>
<br/>meter
<meter required="required"></meter>
<br/>
<button>submit</button>
<br/>
</form>
<br/>