What is the purpose of the name
attribute on input
, span
, or div
tags? Should an id
tag be used instead?
Example from Mozilla's documentation:
<label for="User">Click me</label><input type="text" id="User" name="Name" />
What is the purpose of the name
attribute on input
, span
, or div
tags? Should an id
tag be used instead?
Example from Mozilla's documentation:
<label for="User">Click me</label><input type="text" id="User" name="Name" />