Note: This attribute defines the id that can be used to reference the element. It is preferable to use the id attribute than to the name attribute. Name attribute is not available to all the HTML elements, whereas the id attribute is. Syntax: <element ID="value"> . . . </element>