files/en-us/web/api/htmlanchorelement/index.md
{{APIRef("HTML DOM")}}
The HTMLAnchorElement interface represents hyperlink elements and provides special properties and methods (beyond those of the regular {{domxref("HTMLElement")}} object interface that they inherit from) for manipulating the layout and presentation of such elements. This interface corresponds to <a> element; not to be confused with <link>, which is represented by HTMLLinkElement.
{{InheritanceDiagram}}
Inherits properties from its parent, {{domxref("HTMLElement")}}.
attributionsrc attribute on an {{htmlelement("a")}} element programmatically, reflecting the value of that attribute. attributionsrc specifies that you want the browser to send an {{httpheader("Attribution-Reporting-Eligible")}} header. On the server-side this is used to trigger sending an {{httpheader("Attribution-Reporting-Register-Source")}} header in the response, to register a navigation-based attribution source.#), if any, in the referenced URL.href HTML attribute relative to the document, containing a valid URL of a linked resource.hreflang HTML attribute, indicating the language of the linked resource./ followed by the path of the URL, not including the query string or fragment.:), of the referenced URL.referrerpolicy HTML attribute indicating which referrer to use.rel HTML attribute, specifying the relationship of the target object to the linked object.rel HTML attribute, as a list of tokens.?), if any, of the referenced URL.target HTML attribute, indicating where to display the linked resource.type HTML attribute, indicating the MIME type of the linked resource.HTMLAnchorElement.charset {{deprecated_inline}}
HTMLAnchorElement.coords {{deprecated_inline}}
HTMLAnchorElement.name {{deprecated_inline}}
HTMLAnchorElement.rev {{deprecated_inline}}
rev HTML attribute, specifying the relationship of the link object to the target object.HTMLAnchorElement.shape {{deprecated_inline}}
Inherits methods from its parent, {{domxref("HTMLElement")}}.
{{Specifications}}
{{Compat}}