Các thành phần của Form – Password Field... Các thành phần của Form – Radio button Radio Button Group : Nam: Nu:... Các thành phần của Form – File Form Control Ví dụ.
Trang 1Các thành phần của Form – Text Field
<INPUT
NAME = string
READONLY SIZE = variant MAXLENGTH = long
VALUE = string
…………
>
<input type=“ text” name=“txtName” value=“This is one line text with 301” size=“ 20” maxlength=“30” >
t with 301 20
30
Trang 2Các thành phần của Form – Password Field
<INPUT
NAME = string
READONLY SIZE = variant
VALUE = string
…………
>
Trang 3Các thành phần của Form – Check box
<input
NAME = “text”
VALUE = “text”
[checked]
>
<html>
<body>
Check box group : <br>
Anh van: <input type="checkbox" name="Languages1" value="En"><br>
Hoa: <input type="checkbox" name="Languages2" value="Chz" checked><br> Nhut: <input type="checkbox" name="Languages3" value="Jp"><br>
</body>
</html>
Trang 4Các thành phần của Form – Radio button
<input
NAME = “text”
VALUE = “text”
[checked]
>
<html>
<body>
Radio Button Group : <br>
Nam: <input type="radio" name="sex" value="nam" checked><br> Nu: <input type="radio" name="sex" value="nu“checked ><br>
</body>
</html>
<html>
<body>
Trang 5Các thành phần của Form – File Form Control
<form action=“…” method=“ post ” enctype=“ multipart/form-data ”
name=“ ”>
<input TYPE=“FILE” NAME=“…” >
</form>
Ví dụ <html>
<body>
<form name=“frmMain” action=“POST” enctype=“multipart/form-data”>
<input type="file" name="fileUpload">
</form>
</body>
</html>