Learning path › Lesson 6

Hyperlinks

Goal: turn text and images into a hyperlink, so that one click takes you to another website. You make a page with your favourite websites.

▶ Open this example

Table of favourite websites: a round button, the name as a link and an explanation
Both the name and the round button are links. Click them in the browser and the website opens.

What is a hyperlink?

A hyperlink (link for short) is text or an image you can click. Behind the link is an address (URL), for example https://en.wikipedia.org. In the browser a text link is usually blue and underlined.

Two kinds of links

Note: always type the full address, starting with https://. Preferably copy it from the address bar of your browser, so you make no typing mistakes.

Make it yourself

  1. Make a table of 3 columns and 6 rows, with a title and the headings Website and What do I use it for?
  2. Type the names of the websites in the second column and what you use them for in the third column.
  3. Turn every name into a text hyperlink with TH+.
  4. Put a button in the first column with Add image (e.g. knop-w.png from lessen\afbeeldingen) and make it an image hyperlink with HL+.
  5. Test your links: click Click here for extra functions at the bottom, open the test browser and click every link.

Behind the scenes

In the HTML code a link is an <a> element. The address is in href:

<a href="https://en.wikipedia.org">Wikipedia</a>

With an image hyperlink the <img> is between <a> and </a>.

Exercise

Add a row at the bottom with a website you use often (for example the website of your school or your sports club). Make both the name and the button clickable and test the link.

Solution

On the Table tab click AR. Type the name and the explanation in the new row. Click the cell with the name and click TH+; paste the address from your browser and confirm the text. In the first column choose a button with Add image, click HL+ and paste the same address. Open the test browser and click both links.

Working on Linux? Then open the example yourself with Open table designer: folder lessen/en, file les06-websites.htd.