• 1
  • 2
  • 3
  • 4
04
 

Links

Markdown supports two style of links: inline and reference.
Inline links use parentheses to put the link's URL
Reference links use square brackets to put a label to identify the link and then, on another line, you define the URL in this way:
- The same identifier used previously inside square brackets
- Followed by a colon
- Followed by at least one space
- Followed by the URL for the link

In both types of links, the link text is delimited by square brackets. Click on the red points to know more.
Move through the exercises by using the buttons or the dot menu at the bottom. Move through the exercises by using the buttons or by swiping left or right.

[Text](http://http://example.com/ \
  • More

    You can also use relative URLs (like /example.html)

    Close
  • More

    The title of the link is optional.

    Close
  • More

    Optionally use a space to separate the sets of brackets.

    Close
  • More

    This definition can be placed anywhere in the document (generally in the footer).

    Definition identifiers may consist of letters, numbers, spaces, and punctuation. They are not case sensitive.

    Close
  • More

    The title of the link is optional.

    Close

Link the text "University of Rwanda" to http://www.ur.ac.rw

Show generated HTML?

Link the words "hurricane" to http://en.wikipedia.org/w/index.php?title=Hurricane with one reference link.

Show generated HTML?

Play with the concepts you just learned!

For example:
Can you really place the link definition of a reference link anywhere?
Test for yourself if the link identifier of a reference link is not case sensitive
Can you use bold and italics in a link? Or turn a header into a link?

See the generated HTML. Even if you don't know HTML, try to understand what's happening. Go wild!
Go to the next lesson when you're ready.

Show generated HTML?

Go to the next lesson