Skip to content
Scott Gruber edited this page Nov 28, 2019 · 5 revisions

Links are very important — they are what makes the web a web!

Anchor tag

To add a link, we need to use a simple element — <a> — "a" being the short form for "anchor". To make text within your paragraph into a link, follow these steps:

  1. Choose some text. We chose the text "Mozilla Manifesto".
  2. Wrap the text in an <a> element, like this: <a>Mozilla Manifesto</a>
  3. Give the element an href attribute, like this: <a href="">Mozilla Manifesto</a>
  4. Fill in the value of this attribute with the web address that you want the link to link to: <a href="https://www.mozilla.org/en-US/about/manifesto/">Mozilla Manifesto</a>
  5. After making a link, click it to make sure it is working.

You might get unexpected results if you omit the https:// or http:// part, called the protocol, at the beginning of the web address.

Source: HTML Basics on Mozilla Developer Network


How to Copy and Paste a Link

  1. Right-click the link.
  2. Click Copy link.
  3. Right-click the desired location.
  4. Click Paste.

How to copy a link from your browser address bar.

If you want to share or save a website you're visiting, you can copy the address from the address bar of your browser:

  1. Click the address in your browser.
  2. Select the entire address if it isn't already. Usually the address will automatically be selected when you click it. If it isn't, press Ctrl/⌘ Cmd+A to select the entire thing.
  3. Copy the selected address by right-clicking the selection and clicking "Copy," or by pressing Ctrl/⌘ Cmd+C.
  4. Place your cursor where you want to paste the link and press Ctrl/⌘ Cmd+V.

Source: Wiki How to Copy and Paste a Link includes screenshots for each step.

Clone this wiki locally