HTML name attribute HTML tag Example with the name attribute : Name: Email: Try it » Browser support All major browsers except Internet Explorer support the name attribute. Definition and Usage The name attribute specifies the name of the fieldset. The name attribute is used to reference the element in JavaScript, or to reference the form data after the form is submitted. Differences between HTML 4.01 and HTML5 The attribute is a new attribute of the tag in HTML5. Syntax HTML tag