04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

fixing images <strong>with</strong> relative links<br />

Exercise<br />

68 Chapter 2<br />

That covers all the links we broke when we reorganized the lounge, although<br />

you still need to fix the images in your “lounge.html” and “elixir.html” files. Here’s<br />

exactly what you need to do:<br />

1 In “lounge.html”, update the image src attribute<br />

to have the value “images/drinks.gif”.<br />

2 In “elixir.html”, update the image src attribute so<br />

that “../images/” comes before each image name.<br />

3 Save both files and load “lounge.html” in your<br />

browser. You’ll now be able to navigate between<br />

all the pages and view the images.<br />

P.S. If you’re having any trouble, the folder<br />

“chapter2/completelounge” contains a working version<br />

of the lounge. Double-check your work against it.<br />

You did it! Now we’ve<br />

got organization and all our links<br />

are working. Time to celebrate.<br />

Join us and have a green tea<br />

cooler.<br />

And then we<br />

can take the site to<br />

the next level!

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!