html表单
创建: 2019/05/08
更新: 2019/06/07 增加<input type="checkbox">
<form> |
<form> 元素定义 HTML 表单 <form> ... </form> ● 选项
|
||||||||||||||||
表单元素 |
表单元素指的是不同类型的 input 元素、复选框、单选按钮、提交按钮等等。 |
||||||||||||||||
<fieldset> |
<fieldset> 元素组合表单中的相关数据 <legend> 元素为 <fieldset> 元素定义标题 <fieldset> <legend>abc</legend> name: <input type="text" name="name" value="sample-name"> <br> sex: male<input type="radio" name="sex" value="0"> : female<input type="radio" name="sex" value="1"> </fieldset>
|
||||||||||||||||
<input> |
<input> 元素有很多形态,根据不同的 type 属性。 ● type
● 选项
|
||||||||||||||||
<textarea> |
元素定义多行输入字段(文本域) <textarea name="sampleTextArea" cols="60" rows="20" value="sample"/>
|
||||||||||||||||
<button> |
定义可点击的按钮, 文档 ● 选项
|
||||||||||||||||
<select> |
创建单选或多选菜单, 选项用 <option> 来定义 <select name="sampleSelect"> <option value="a">a</option> <option value="b">b</option> <option value="c">c</option> </select>
|
||||||||||||||||