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 up the myPod <strong>HTML</strong><br />

Once you’ve saved the image, you can quit out of Photoshop Elements. Now all you need to do is<br />

change the myPod “index.html” page to include the new version of the photo, “seattle_med.jpg”.<br />

Here’s a snippet of the “index.html” file, showing only the parts you need to change.<br />

<br />

<br />

myPod<br />

<br />

body { background-color: #eaf3da;}<br />

<br />

<br />

<br />

.<br />

.<br />

.<br />

Seattle, Washington<br />

<br />

<br />

<br />

Me and my iPod in Seattle! You can see rain clouds and the<br />

Space Needle. You can’t see the 628 coffee shops.<br />

<br />

adding images to your web pages<br />

<br />

<br />

<br />

And now for the test drive...<br />

Go ahead and make the changes, save them, and<br />

reload “index.html” in your browser. Things<br />

should look much better. Now the image is sized<br />

just right to give your visitors a good view – <strong>with</strong>out<br />

overwhelming them <strong>with</strong> a large photo.<br />

The rest of the <strong>HTML</strong> goes here. You’ve<br />

already got it in your “index.html” file.<br />

All you need to do is change the<br />

filename in the element to<br />

the name of the image you just<br />

made: “seattle_med.jpg”.<br />

Now the image fits nicely in the browser window.<br />

you are here 191

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

Saved successfully!

Ooh no, something went wrong!