<form> 標(biāo)簽: 用于創(chuàng)建供用戶輸入的 HTML 表單
一般用法
帶有兩個(gè)輸入字段和一個(gè)提交按鈕的 HTML 表單:
<form action="demo_form.php" method="get">
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="提交">
</form>
<form> 元素包含一個(gè)或多個(gè)如下的表單元素:
<input>
<textarea>
<button>
<select>
<option>
<optgroup>
<fieldset>
<label>
例如:<input>標(biāo)簽
Paste_Image.png
表單<form>的屬性
form
附上表單使用的2個(gè)實(shí)例
此表單包含兩個(gè)復(fù)選框和一個(gè)提交按鈕
此表單包含兩個(gè)單選框和一個(gè)提交按鈕。