javaweb学习_前端_第三章_HTML_表单

input控件

<input type="text" />

radio 同组需命名同name :<input type="radio" name="***"  checked="checked"/>

按键 <input type="button" value="***" />

javaweb学习_前端_第三章_HTML_表单


<label for="pwd"></label>

用户名:<input type="text">

密码:<input type="password" id="pwd">

注:label可以包住下方,也可以不包。



textarea控件(文本域)

<textarea cols="30" rows="10"></textarea>

注:一般用css改宽高。


select控件

<select>

    <option selected="selected">选项1</option>

    <option>选项2</option>

    ...

</select>


表单域form

method=get/post

javaweb学习_前端_第三章_HTML_表单

javaweb学习_前端_第三章_HTML_表单