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.

uilding the href<br />

4<br />

Create an href to represent the path we traced.<br />

We’re almost there. Now that you know the path, you need to get it<br />

into a format the browser understands. Let’s work through this:<br />

<strong>First</strong> you need to go up<br />

one folder. How do you<br />

do that? With a “..”.<br />

That’s right, two periods.<br />

Go <strong>with</strong> it, we’ll explain<br />

in a sec.<br />

Pronounce “..” as “dot dot”.<br />

64 Chapter 2<br />

Separate all parts of<br />

the path <strong>with</strong> a “/”.<br />

.. / lounge.html<br />

Putting it all together...<br />

Finally you have the<br />

file name.<br />

Back to the Lounge<br />

Now when you click on the link, the<br />

browser will look for the “lounge.html”<br />

file in the folder above.<br />

Dot dot<br />

Up, down,<br />

housewares,<br />

lingerie?

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

Saved successfully!

Ooh no, something went wrong!