22.06.2015 Views

Step by Step HTML5

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

170 Chapter 10<br />

7. Set the margin for the paragraph to zero.<br />

Home &nbsp; Tips and Tricks &nbsp; Problem-Solving<br />

&nbsp; Products &nbsp; About Our Store &nbsp; Contact Us<br />

8. Save the file, and then refresh Internet Explorer.<br />

Now the lines are closer to the text.<br />

9. Add hyperlinks to each of the six items in the navigation bar to the corresponding<br />

pages.<br />

Note Line breaks are added in the following code for ease of reading, but they are not<br />

required.<br />

<br />

<br />

<br />

Home &nbsp;<br />

Tips and Tricks &nbsp;<br />

Problem-Solving &nbsp;<br />

Products &nbsp;<br />

About Our Store &nbsp;<br />

Contact Us<br />

<br />

<br />

10. Save the file, and then refresh Internet Explorer.<br />

The navigation bar is complete.<br />

11. Select the code for the entire navigation bar, including the and tags,<br />

and press Ctrl+C to copy it to the Clipboard.<br />

12. Select the tag at the bottom of the document, and press Ctrl+V to replace it<br />

with a copy of the navigation bar.<br />

13. Save the file, and then refresh Internet Explorer.<br />

Two navigation bars appear, one above and one below the main content of the<br />

page.

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

Saved successfully!

Ooh no, something went wrong!