Wednesday, 11 February 2015

LINKING TO ANCHORS IN THE SAME DOCUMENT.

 FIGURE 5.14 the Byrd section.













 What if you have only one large page, and you want to link to sections with in that page? You can use anchors for it, too. For large to link to sector pages, using anchors can be an easy way to jump around within sections. To link to sections. To link to sections , you just need to set up your anchors at each section the way you usually do.  Then, when you link to those anchors, leave off the name of the page itself., but include the hash sign and the name of the anchor. So, if you’re link in to an anchor name called section5 in the same page as the link, the link looks like the following:

Go to <a href=”#sections5”> the fifth sections</a>
When  you leave off the page name, the browser assumes that you’re linking with the current page and scrolls to the appropriate section. You’ll get a chance to see this feature in action in Lesson 6. There , you’ll get a chance to see this feature in action in leson6. There, you’ll create a complete web page that includes a table of contents at the beginning. From this table of contents, the includes link to each section heading. In turn, other links at the end of each section enable the user to jump back to the table of contents or to the top of the page.
ANATOMY OF A URL

So far in this book, you’ve encountered URLs a twice; in lesson 1, “navigating the world wide web,” as part of the introduction to the web, and today, when you crated links to remote pages. If you’ve ever done much exploring on the web, you’ve encountered URLs as a matter of course. You couldn’t start exploring without a URL.


As a mentioned in lesson 1, URLs are uniform resource locators. In effect, URLs are street addresses for bits of information of the internet. Most of the time, you can avoid trying to figure out which URL to put in your links by simply navigating to the bit of information you want with your browser, and then copying and pasting the long string of gobbledygook into your link. But understanding what a URL is all about and why it has to be so long and complex is often useful. Also, when you put your how information up on the web, knowing something about URLs will be useful so that you can tell people where your web page is.

In this section, you’ll learn what the a parts of a URL are, how you can use them to get to information on the web, and the kinds of URLSs you can use (HTTP, FTP, MAILTO, and so on). 


No comments:

Post a Comment