
The basic syntax with a recipient is: Some text Adding a subject to that mail: More customization! Let's see a specific use case:Ī mailto link is a kind of hyperlink ( ) with special parameters that lets you specify additional recipients, a subject line, and/or a body text. This is a live link to an external stylesheet What else can you do with ? Example Some more examples of href This gives a base url for all further urls on the page The may also be applied to images and other HTML elements. To do this you should use tag with necessary attribute “href” with symbol # (sharp) and key-word description of the anchor, like this: Go to Top Image Links After that you can place a link leading to this anchor at any palce on same page.

To do this you should first place a tab at location on the page with tag and necessary attribute “name” with any keyword description in it, like this: Īny description between tags is not required. It’s also possible to set an anchor to certain place of the page. More with a href attribute In-page anchors Title : Defines the title of a link, which appears to the user as a tooltip. Target : Specifies the context in which the linked resource will open. Hreflang : Specifies the language of the linked resource. The attribute is supported by all browsers. The freeCodeCamp Contribution Page shows you how and where you can contribute to freeCodeCamp's community and growth. The href attribute can be used to link to local files or files on the internet. In this case, it’s useful to set the href attribute to "#" to create a dead link.

Sometimes in your workflow, you don’t want a live link or you won’t know the link destination yet.

The a (anchor) tag is dead without the attribute. The attribute refers to a destination provided by a link.
