The HTML anchor name attribute is used to specify the name for an element. The author can specify a default file name by providing a value. Under HTML 5 there are now five valid attributes, charset having been added. Value of the name attribute works as an identifier of the element. The name for each name-value pair is the name attribute of each input, and the value is the user-entered (or pre-specified) value. How to set div width to fit content using CSS ? This attribute is optional. HTML elements can have attributes on them that are used for anything from accessibility information to stylistic control. Note: If the http-equiv attribute is set, the name attribute should not be set. Making a div vertically scrollable using CSS, Introduction to HTML CSS | Learn to Design your First Website in Just 1 Week. With the help of this attribute, we can reference the element in a JavaScript. How to update Node.js and NPM to next version ? When using named anchors you can create links to a specific section on a page, instead of letting your viewer scroll around to find what he/she is looking for. The name attribute specifies a name for the information/value of the content attribute. The numbers in the table specify the first browser version that fully supports the attribute. Attributes should always be applied with start tag. Where ElementName is any supported element. What is discouraged is making upyour own attributes, or repurposing existing attributes for unrelated functionality. The data is packaged as a series of name-value pairs. This attribute will be useful when we will send the form data over the network using HTTP. The name attribute is used to... Browser Support. To associate the