Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

difference between name and value in html

The value attribute is what is going to get sent back to the server. 
For instance you can set the value of an input field in the html code, 
which is helpful for hidden or disabled inputs.

The name attribute is how you reference the input, once the value from 
the input gets sent back to the server.
Source by teamtreehouse.com #
 
PREVIOUS NEXT
Tagged: #difference #html
ADD COMMENT
Topic
Name
2+3 =