The HTML name attribute defines the name of an input element. The input element, having the "file" value in its type attribute, represents a control to select a list of one or more files to be uploaded to the server. HTML5 introduces a number of new attributes, input types, and other elements for your markup toolkit. Browser Support for type. ASSIGN VARIABLE TO INPUT VALUE: To assign your input element's value to a variable, just reverse the above assignment like this: var newValue = newValue; document.getElementById('userVal').value = newValue; Check the following Code Snippet for a practical example on how to assign a variable to your input element's value attribute: New attributes for