html表单提交 重置内容_HTML表单:提交并重置

html表单提交 重置内容

When all is said and done, the user needs to indicate that they are finished entering information with the form and want to submit it. This is done with a submit button, which is usually the last (or second-to-last) tag before the closing </form> tag:

说完所有内容后,用户需要指示他们已经完成了使用表单输入信息并希望提交信息。 这是通过submit按钮完成的,通常是</form>结束标记之前的最后一个(或倒数第二个)标记:

<input type="submit" value="Go!">

While it is not necessary to place an id or name on the submit button, doing so can be useful for the purposes of validating the form information, which I cover in the section.

虽然没有必要在submit按钮上放置idname ,但是这样做对于验证表单信息很有用,这将在部分中介绍。

重启 (Reset)

A reset button sets the form back to its default settings. Be very careful where you place a reset button: too close to the submit button and some users will inevitably accidentally click on it rather than the submit button by mistake, and there is no way to get back their information once they have done so. Physically separate the submit and reset buttons with a space at the very least, or skip the reset button entirely.

reset按钮将表单重新设置为其默认设置。 请特别注意放置reset按钮的位置:过于靠近“ submit按钮,某些用户不可避免地会无意间点击它,而不是错误地单击“ submit按钮,一旦这样做,就无法取回其信息。 物理上将submit按钮和reset按钮至少隔开一个空格,或者完全跳过重置按钮。

<input type="reset" value="Reset form">

翻译自: https://thenewcode.com/171/HTML-Forms-submit-and-reset

html表单提交 重置内容

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值