First, the form and its label
Written first structure
<Form action = "form submission address" menthod = "post get presented in a way"> form just outside the border
<Inpu type = "type form element" name = "button" value = "value">
Form elements:
Text Type:
Text Box: text that is not prescribed value value specified numerical lock
password box: password value is not specified value
hidden field: hidden
multi-line text: textarea
selection field: You can add lable
radio: radio set up, name value is required the same as
multiple choice: checkbox checkbox is selected by default
pull-down: <select name = "key">
<option = value "value 1"> first </ option>
<option value = "value2"> is selected from the second </ option >
<Option value = "value 3"> Article </ Option>
</ SELECT>
button:
supplementary button:button push button, you can add an event subsequent js
submit button: submit
reset: reset
file: Upload Content
Text Box: text that is not prescribed value value specified numerical lock
password box: password value is not specified value
hidden field: hidden
multi-line text: textarea
selection field: You can add lable
radio: radio set up, name value is required the same as
multiple choice: checkbox checkbox is selected by default
pull-down: <select name = "key">
<option = value "value 1"> first </ option>
<option value = "value2"> is selected from the second </ option >
<Option value = "value 3"> Article </ Option>
</ SELECT>
button:
supplementary button:button push button, you can add an event subsequent js
submit button: submit
reset: reset
file: Upload Content
Iframe tags, can nest sites such as Baidu, Sogou
format:
<Iframe src = "nested to address, such as https: www.baidu.com" framborder = "0 or1 1 there is a frame" name = "name your frame">
Tab can be made
</iframe><
Video
<video>
Controls strip
loop AutoPlay
autoplay AutoPlay
<video
<video>
Controls strip
loop AutoPlay
autoplay AutoPlay
<video
example:
<video>
src="https://fus.cdn.krcom.cn/001T9UXslx07smQ9hJ0s0104120iERmH0E070.mp4?label=mp4_1080p&template=1920x1080.20.0&Expires=1560582267&ssig=RgYwkYNdF7&KID=unistore,video"
controls loop autoplay>
</video>
src="https://fus.cdn.krcom.cn/001T9UXslx07smQ9hJ0s0104120iERmH0E070.mp4?label=mp4_1080p&template=1920x1080.20.0&Expires=1560582267&ssig=RgYwkYNdF7&KID=unistore,video"
controls loop autoplay>
</video>
Case:
<form Action = " # " Method, = " POST " > <- - only to have their own form region!> Username: <the INPUT of the type = " text " name = " the User " placeholder = " Please enter your user name " > <br> <- inline label, value defaults usually do not write ->! password: <the iNPUT of the type = " password " name = " pwd " placeholder = " Please enter your password " > <br> <= the iNPUT of the type "hidden" name="hide" value="123"> 性别: <label>男:<input type="radio" name="sex" value="man" checked="checked"></label> <label>女:<input type="radio" name="sex" value="woman"></label> <br> 爱好: <label>足球:<input type="checkbox" name="hobby" value="zq" checked></label> <label>篮球:<input type="checkbox" name="hobby" value="laq"></label> <label>排球:<input type="checkbox" name="hobby" value="pq"></label> <label></label> <br> 文件上传: <input type="file"><br>"City"name =the SELECT< City: size="3"> <option value="zb">淄博</option> <option value="bj" selected>北京</option> <option value="sh">上海</option> <option value="bj">北京</option> <option value="sh">上海</option> </select> <br> <textarea name="person" cols="50" role="10"> </textarea> <input type="submit" value="提交"> <input type="reset" value="重置"> <input type="button" value="普通按钮"> </form>