Destination Path Problems (chapter 2 - Page 99)

  • Please log in to reply
1 reply to this topic

#1 Joe Consterdine

Joe Consterdine

    New Member

  • Members
  • Pip
  • 1 posts

Posted 06 June 2014 - 02:12 AM


This is a great book and so far it's been very easy to follow.

However, I've come unstuck on chapter 2.

I made all the sub folders as explained, shown here:

Posted Image

And in my 'Lounge.html' file I've edited it like this:

<title>Head First Lounge</title>
<h1>Welcome To The New And Improved Head First Lounge</h1>
<img src="drinks.gif">
Join us any evening for refreshing <a href="beverages/elixirs.html">elixirs</a>,
conversation and maybe a game or two of
<em>Dance Dance Revolution</em>.
Wireless access is always provided;
BYOWS (Bring Your Own Web Server).
You'll find us right in the center
of downtown Webville. If you need help finding us check out <a href="about/directions.html">detailed directions</a>. Come join us!

As you can see I've added both the 'beverages' and 'about' folders to the destination path, but it's still not working.

When I test it on the internet I can get to my elixirs and directions page but when I click 'Go back to lounge' it fails.

Also, I don't believe it ever gave instructions for the images. They are also blank.

Thanks Joe

Edited by Joe Consterdine, 06 June 2014 - 02:13 AM.

#2 Beth Robson

Beth Robson

    Veteran Member

  • O'Reilly Employee
  • PipPipPipPipPipPipPipPipPip
  • 377 posts
  • Gender:Female
  • Location:Seattle, WA
  • Interests:I am interested in computer science, the Web, social media and the internet, Mac development, and adult learning.

Posted 08 June 2014 - 08:36 AM

If your images are in the images folder, then your link should be images/drinks.gif.

When you go "back to lounge" make sure you add the "..". So it would be something like:

<a href="../lounge.html">Back to lounge</a>

Hope that helps.
Elisabeth Robson
Author: Head First JavaScript Programming, Head First HTML5 Programming, Head First HTML and CSS, Head First Design Patterns

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users