what is the use of name attribute?
Answers
Answered by
0
Answer:
The name attribute specifies the name of an <input> element. The name attribute is used to reference elements in a JavaScript, or to reference form data after a form is submitted. Note: Only form elements with a name attribute will have their values passed when submitting a form.
Explanation:
The name attribute specifies a name for the element. This name attribute can be used to reference the element in a JavaScript. For form elements it is also used as a reference when the data is submitted, For iframe element it can be used to target a form submission.
I am giving the two answers please mark me as brain list
Answered by
0
Answer:
Hope it helps you Please mark me as a brainlist
Attachments:
Similar questions