当我们使用name ="Keys"在输入HTML标签? [英] when we use name="Keys" in input html tag?

查看:98
本文介绍了当我们使用name ="Keys"在输入HTML标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们在输入html标记中使用name ="Keys"时?

when we use name="Keys" in input html tag ?

我知道名称属性,但是当我们使用时?

i know name attribute but when we use keys ?

推荐答案

name属性指定输入元素的名称.

name属性用于将表单数据提交到服务器后进行标识,或在客户端使用JavaScript引用表单数据.

The name attribute is used to identify form data after it has been submitted to the server, or to reference form data using JavaScript on the client side.

在提交表单时,只有具有name属性的表单元素才会传递其值.通过为元素分配名称,该名称成为脚本语言(例如Javascript,ASP和PHP)的脚本变量.经常在表单和其他用户输入元素中看到name属性.

Only form elements with a name attribute will have their values passed when submitting a form. By allotting a name to an element, that name becomes a scripting variable for scripting languages such as Javascript, ASP, and PHP. The name attribute is seen most often with forms and other user-input elements.

只是为元素提供的名称,如下所示:

Keys is just a name given to the element as in:

<input name="keys" ..... />

它的重要性只能通过将表单提交到的脚本来识别.

Its significance can only be identified by the script that the form will be submitted to.

这篇关于当我们使用name ="Keys"在输入HTML标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆