表单

<form name="search" action="sub.php" method="">
<input type="text" id="" name="" />
<br>
<input type="submit" name="" value="搜索" />
</form>

action:规定当提交表单时向何处发送表单数据。
target

_blank 在新窗口中打开被链接文档。
_self 默认。在相同的框架中打开被链接文档。
_parent 在父框架集中打开被链接文档。
_top 在整个窗口中打开被链接文档。


规定在何处打开 action URL。

文本域:<input type="text">
密码:<input type="password">
单选框:<input type="radio">
复选框:<input type="checkbox">
checked:当设置 checked="checked" 时,该选项被默认选中
提交按钮:<input type="submit">
重置按钮<input type="reset">

原文地址:https://www.cnblogs.com/longmingyeyu/p/12878276.html