Markdown

Linking

Inline Link

The form for a link in markdown is as follows.

[Shown Text](Link)

For example, This will take you to Example.com is created with

[This will take you to Example.com](https://www.example.com)

Reference Link

URLs for links can be specified later in the document.

Markdown

[Text1][1] will link to the first link, and [Text2][2] to the second.
You [can reuse][1] names, and give longer names [like this one][a link].
You can also link text [like this] without giving the reference an explicit name.

[1]: https://www.google.com
[2]: https://stackoverflow.com/
[a link]: https://example.org/
[like this]: https://stackexchange.com/

Output

Text1 will link to the first link, and Text2 to the second.

You can reuse names, and give longer names like this one. You can also link text like this without giving the reference an explicit name.

Named anchors (link to a fragment of page)

create destination with

<a id="destinationLinkName"></a>

link to destination

[link text](#destinationLinkName)


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow