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

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

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

i know name attribute but when we use keys ?

2条回答
  •  -上瘾入骨i
    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:

    
    

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

提交回复
热议问题