you are viewing an archived version of loonside.

< go back to the current version


reference: https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/Creating_hyperlinks

creating hyperlinks

exercise 1: creating your own example link

as with a previous chapter of the tutorial, i am going to include this chapter's tasks as part of the website content because i am too lazy to come up with content that is ultimately not designed to have any deeper meaning.

exercise 2: creating a navigation menu

for this exercise, we'd like you to link some pages together with a navigation menu to create a multipage website. this is one common way in which a website is created — the same page structure is used on every page, including the same navigation menu, so when links are clicked it gives the impression that you are staying in the same place, and different content is being brought up

you'll need to make local copies of the following four pages, all in the same directory. for a complete file list, see the navigation-menu-start directory:

you should:

  1. add an unordered list in the indicated place on one page that includes the names of the pages to link to. a navigation menu is usually just a list of links, so this is semantically OK. {✓} done
  2. change each page name into a link to that page. {✓} done
  3. copy the navigation menu across to each page. {✓} done
  4. on each page, remove just the link to that same page – it's confusing and unnecessary for a page to include a link to itself. and, the lack of a link acts as a good visual reminder of which page you are currently on. {✓} done

alright then, let's take a look at the result. quick disclaimer: i will not change anything on these following pages apart from what the exercise asks of me. the actual content is not my own! those are not my words you'll be reading there :)

<-- previous page || table of contents || next page -->

-->

start page

page created on: Setting Orange, the 55th day of Chaos in the YOLD 3189

last edited on: Sweetmorn, the 56th day of Chaos in the YOLD 3189