<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<form action="" method="">
<table width="600px" border="1px" cellspacing="0" cellpadding="">
<tbody>
<tr height="40px">
<td rowspan="4" align="center">總體資訊</td >
<td colspan="2"></td>
</tr>
<tr height="40px">
<td align="center">用戶名</td>
<td><input type="text" name="" id="" value="" /></td> </tr>
<tr height="40px">
<td align="center">密碼</td>
<td><input type="password" name="" id="" value="" />
</td>
</tr>
<tr height="40px">
<td colspan="2"><input type="submit" name="" id="" value="https://www.cnblogs.com/SSPOFA/p/提交" />
<input type="button" name="" id="" value="https://www.cnblogs.com/SSPOFA/p/重置" />
</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>
- form必須有action屬性,表示提交的地址
- 所有需要提交的資料,input必須有name屬性
- input按鈕的文字,使用value屬性表示
- input必須放在form標簽內才能提交
- type的型別
- text:文本輸入框
- password:密碼輸入框
- radio:單選框
- checkbox:復選框
- button:普通按鈕
- reset:重置按鈕
- file:檔案選擇框
- get請求和post請求的區別
- get通常表示獲取資料
- post通常表示提交資料
- get發送的資料都寫在地址欄上,用戶可見
- post發送的資料用戶不可見
- get請求不能提交大量資料,但post可以,因此不要混用
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/116175.html
標籤:Html/Css
下一篇:html canvas
