when we use name=“Keys” in input html tag?

后端 未结 2 1095
春和景丽
春和景丽 2021-01-28 19:39

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

i know name attribute but when we use keys ?

相关标签:
2条回答
  • 2021-01-28 19:57

    The name attribute specifies a name for an input element.

    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.

    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.

    0 讨论(0)
  • 2021-01-28 20:15

    The name attribute describes which form control a piece of data (specified by the value) to the server side process to which the form is submitted.

    "Keys" should be meaningful in the context of the form in which the input appears, but is meaningless taken on its own.

    0 讨论(0)
提交回复
热议问题