topskill.dev
CoursesTracks
0
All courses/Introduction to HTMLLinks between project files
Links and Images
2 / 5
← Introduction to HTML
○What Is HTML? See Tags in Action○Build the Meridian Signal○Complete HTML5 Page Structure○Build a Complete HTML5 Page✦Module Quiz
○Heading Hierarchy: H1 and H2○Extend the Signal Brief○Paragraphs and Inline Tags○Write Meridian's Survey Notes○List Types: Steps, Items, and Terms○Build a Crew Member Loadout○Challenge: Transmit a Rescue Signal✦Module Quiz
○Hyperlinks●Links between project files○Images○Applying Styles to HTML✦Module Quiz
○Div and Span○HTML Tables○Classes and IDs○Review: Structured Profile✦Module Quiz
○Project 1 - Visiting Card Structure○Project 1 - Visiting Card Actions✦Module Quiz
○The Head Element and Page Title○Meta Tags○HTML Entities✦Module Quiz
○Form Basics: Join the Meridian Relay○Build a Night-Shift Check-In○Input Types: Build a Mission Profile○Record Beacon Maintenance○Choice Controls: Select Training Modes○Plan a Supply Pickup○Response Controls: Send a Mission Reply○Build a Rescue Dispatch Report○Form validation and submission○Challenge: Send an Emergency Beacon✦Module Quiz
○Project 2 - Contact Us Form Structure○Project 2 - Contact Us Form Actions✦Module Quiz
○Embedding Video○Embedding Audio○Iframes✦Module Quiz
○Semantic HTML Tags○Details, Figure, and Figcaption○A keyboard-friendly page✦Module Quiz
○Project 3 - Resume Semantic Structure○Project 3 - Resume Links and Actions✦Module Quiz

Links between project files

The café navigation used a full website address and a fragment. A site with several pages also needs links between files. A relative path starts from the current page’s folder, so the same text can point somewhere different after you move that page.

Consider a library site with these files:

text
library/
  index.html
  events/
    talks.html       ← current page
    booking.html

From events/talks.html, booking.html stays in events, while ../index.html moves up to the library folder. On a hosted site, /index.html starts at the website root, regardless of the current folder. Use forward slashes, and match filename capitalization.

Read the café’s folders

Your exercise uses a different site:

text
site/
  index.html
  contact.html
  events/
    repair.html      ← the page you are editing
    schedule.html

Treat index.html in the editor as the source for events/repair.html in that tree. The preview does not host this folder tree or the destination pages. This exercise checks the authored paths, not navigation; do not click through to missing pages.

The starter supplies three labeled anchors without destinations. Edit their opening tags in index.html. Keep their labels: a reader should know the destination before activating a link.

Your Task

  1. Give the Schedule link href="schedule.html" to reach its sibling in events.
  2. Give the Home link href="../index.html" to move up one folder.
  3. Give the Contact link href="/contact.html" to start at the site root.

Run to see all three labels become keyboard-reachable links, then Submit to check the paths. The next lesson adds images; their src paths follow the same folder rules.

Files
  • ⋄index.html
Loading editor…