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.

Linking to Caffeine Buzz<br />

Open your Starbuzz “index.html” file in the “chapter4/starbuzz” folder, and scan down to<br />

the bottom. Let’s add two new links: a relative link to the mission statement in<br />

“mission.html”, and a link to Caffeine Buzz. Make the changes below, then save and load<br />

your “index.html” file in your browser. Click on the link and enjoy the Caffeine Buzz.<br />

<br />

<br />

Starbuzz Coffee<br />

<br />

body {<br />

background-color: #d2b48c;<br />

margin-left: 20%;<br />

margin-right: 20%;<br />

border: 1px dotted gray;<br />

padding: 10px 10px 10px 10px;<br />

font-family: sans-serif;<br />

}<br />

<br />

<br />

<br />

Starbuzz Coffee Beverages<br />

House Blend, $1.49<br />

A smooth, mild blend of coffees from Mexico,<br />

Bolivia and Guatemala.<br />

<br />

<br />

Mocha Cafe Latte, $2.35<br />

Espresso, steamed milk and chocolate syrup.<br />

Cappuccino, $1.89<br />

A mixture of espresso, steamed milk and foam.<br />

Chai Tea, $1.85<br />

A spicy drink made <strong>with</strong> black tea, spices,<br />

milk and honey.<br />

<br />

<br />

Read about our Mission<br />

<br />

Read the Caffeine Buzz<br />

<br />

And we’ve added some structure<br />

here by grouping the links and<br />

text into a paragraph.<br />

Here’s where we’ve<br />

added the link to the<br />

buzz.headfirstlabs.com page.<br />

getting connected<br />

Here’s the link to the “mission.<br />

html” file. This uses a<br />

relative path to link to<br />

“mission.html”. We added a to<br />

put the links on two<br />

different lines.<br />

you are here 145

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

Saved successfully!

Ooh no, something went wrong!