O'Reilly Forums: Destination Path Problems (chapter 2 - Page 99) - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Destination Path Problems (chapter 2 - Page 99)

#1 User is offline   Joe Consterdine 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 06-June 14

Posted 06 June 2014 - 02:12 AM

Hey,

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:

<html>
<head>
<title>Head First Lounge</title>
</head>
<body>
<h1>Welcome To The New And Improved Head First Lounge</h1>
<img src="drinks.gif">
<p>
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).
</p>
<h2>Directions</h2>
<p>
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!
</p>
</body>
</html>

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

This post has been edited by Joe Consterdine: 06 June 2014 - 02:13 AM

0

#2 User is offline   Beth Robson 

  • Veteran Member
  • PipPipPipPipPipPipPipPipPip
  • Group: O'Reilly Employee
  • Posts: 375
  • Joined: 17-September 08
  • 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
Co-founder, WickedlySmart.com
Author: Head First JavaScript Programming, Head First HTML5 Programming, Head First HTML and CSS, Head First Design Patterns
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users