Chạy thử Ví dụ thực tế Thẻ form trong HTML

Chạy thử Ví dụ thực tế Thẻ form trong HTML

Chạy thử Ví dụ thực tế Thẻ form trong HTML

Tự code rồi chạy thử... Chạy Thử
<!DOCTYPE html>
<html>
<head>
<title>Chạy thử Ví dụ thực tế Thẻ form trong HTML</title>
</head>
<body>
<h1>Chạy thử Ví dụ thực tế Thẻ form trong HTML</h1>
<p>Thẻ form trong HTML dùng để gửi thông tin của người dùng nhập vào tới máy chủ, trong thẻ form sẽ chứa các thẻ input, select,...  và nút submit, giúp website dễ dàng tương tác với người dùng hơn:</p>

<form method="POST" action="https://webmoi.vn/chay-thu-vi-du-thuc-te-the-form-trong-html/" enctype="multipart/form-data">
									
<label for="tenbgn" class="td_muc_ttbg">Họ và tên
</label>
<input id="tenbgn" name="ten" type="text" placeholder="Nhập họ và tên" class="txt_ttbg"> <br>
													
<label for="dienthoaibgn" class="td_muc_ttbg">Số điện thoại*
</label>
							
<input id="dienthoaibgn" type="text" name="dienthoai" class="txt_ttbg" placeholder="Nhập số điện thoại"  required> <br>

<label for="tenbgn" class="td_muc_ttbg">Gmail*
</label>
							
<input id="emailbgn" name="email" placeholder="Nhập Gmail" autocomplete="off" type="text" class="txt_ttbg"  required> <br>

<label for="noidungbgn" class="td_muc_ttbg">Nội dung
</label>
							
<textarea id="noidungbgn" name="noidung" style="margin-bottom:5px">
&lt;/textarea><br>
							
<label for="noidungbgn2" class="td_muc_ttbg">File yêu cầu(.doc|.docx|.pdf|.xlsx|.zip|.rar)
</label>
							
<input id="noidungbgn2" type="file" name="file2"><br>
												
<input type="submit" id="nutgui_ttbg" name="btnbaogianhanh" value="Gửi yêu cầu">
								
</form>
</body>
</html>
Chạy thử Ví dụ thực tế Thẻ form trong HTML nằm trong bài viết Thẻ form trong HTML