Monday, 23 February 2015

ADDING THE TABLE OF CONTENTS

THE page you’re creating will require a lot of scrolling to get from the top to the bottom. One nice enhancement is to add a small table clicks one of the links in the table of contents, he’ll automatically jump to the section that’s of most interest to him. Because you've created the anchors already, it’s easy to see where the links will take you.

You already have the heading for the table of contents. You just need to add the bulleted list and a horizontal rule, and then create the links to the other sections on the page. The code looks like the following:

INPUT


<a name=”contents”> <h2>contents</h2></a>

<u1>

<1i><a href=”#about”>about the book work bookshop</a></1i>

<1i><a href=”#recent titles</a></1i>

<1i><a href=”#upcoming”>events</a></1i>

</u1>

<hr/>

Figure 6.16 shows an example of the introductory portion of the bookworm bookshop page as it appears in a browser.

No comments:

Post a Comment