The value attribute is what is going to get sent back to the server. I don't understand the difference between the two. The following are the important differences between Id and Class. Source. For instance you can set the value of an input field in the html code, which is helpful for hidden or disabled inputs. This is nice when you want to show an option with spaces or weird characters but your backend cannot have those, for example. Example of =… For example, Writing a=10 is fine. www.differencebetween.net/technology/difference-between-javascript-and-html As against, a proton is a charged particle having a positive charge. HTML Attributes. Elements can also contain attributes that defines its additional properties. All attributes are made up of two parts: a name and a value. 4. It may be or not bounded with Model Properties. The value is a valid attribute for the option tag while the name attribute isn’t. Felgall showed that with Javascript you can get either one (the text “HTML” or the value “4”), but the value is what you want your backend to get when the form is submitted. It represents semantics, or meaning. Addendum to sending data to server: When data gets sent to server (usually by means of HTTP POST request) all data gets sent as name-value pairswhere nameis the nameof the input HTML control and valueis its valueas entered/selected by the user. The name attribute is how you reference the input, once the value from the input gets sent back to the server. So in the