HTML Anchor Tag

How To Use a (For Creating Hyperlinks) In HTML

Element ofHTML Anchors: Here’s How To Create Links For Fast NavigationWhat does How To Use a (For Creating Hyperlinks) In HTML do?The <a> element, or anchor element, it used to create a hyperlink to another webpage or another location within the same webpage. The hyperlink created by an anchor element is applied to the text, image, or other HTML content nested between the opening and closing <a> tags.DisplayinlineUsagetextual

Code Example

<a href="https://html.com">Click here!</a>

Browser Support for anchor

iefirefoxchromeedgesafariopera
AllAllAllAllAllAll

Attributes of anchor

Attribute nameValuesNotes
hreflangSpecifies the language of the linked resource.
downloadDirects the browser to download the linked resource rather than opening it.
hrefSpecifies the linked document, resource, or location.
nameDepreciated – do not use.
targetSpecifies the context in which the linked resource will open.
titleDefines the title of a link, which appears to the user as a tooltip.
Design a site like this with WordPress.com
Get started