Sunday, May 23, 2010

How do I make links to different sections within the same web page?

I%26#039;m taking about a link that takes you farther down on the same page, rather than a hyperlink that takes you somewhere else. Does anyone know the HTML code for that?



How do I make links to different sections within the same web page?





THIS IS A SAMPLE OF HOW TO DO IT



PRACTICE WITH IT A LITTLE



html%26gt;



%26lt;body%26gt;



%26lt;p%26gt;



%26lt;a href=%26quot;#C4%26quot;%26gt;See also Chapter 4.%26lt;/a%26gt;



%26lt;/p%26gt;



%26lt;h2%26gt;Chapter 1%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;h2%26gt;Chapter 2%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;h2%26gt;Chapter 3%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;h2%26gt;%26lt;a name=%26quot;C4%26quot;%26gt;Chapter 4%26lt;/a%26gt;%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;h2%26gt;Chapter 5%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;h2%26gt;Chapter 6%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;h2%26gt;Chapter 7%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;h2%26gt;Chapter 8%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;h2%26gt;Chapter 9%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;h2%26gt;Chapter 10%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;h2%26gt;Chapter 11%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;h2%26gt;Chapter 12%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;h2%26gt;Chapter 13%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;h2%26gt;Chapter 14%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;h2%26gt;Chapter 15%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;h2%26gt;Chapter 16%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;h2%26gt;Chapter 17%26lt;/h2%26gt;



%26lt;p%26gt;This chapter explains ba bla bla%26lt;/p%26gt;



%26lt;/body%26gt;



%26lt;/html%26gt;



How do I make links to different sections within the same web page?



Place this tag where you want the link to take them:



%26lt;a name=%26quot;sports%26quot;%26gt;%26lt;/a%26gt;



Then format the link like this:



%26lt;a href=%26quot;#sports%26quot;%26gt;Click Here to Jump to My Sports Section%26lt;/a%26gt;



.



Other Replys:To lazy to type it,



here you go:



http://learning-html.com/linking-to-a-sp...



Other Replys:Its called an anchor link. You add a tag in your HTML where you want the page to scroll to like: %26lt;a name=%26quot;whatever_you_want%26quot;%26gt;%26lt;/a%26gt;



and then when you create a link on the page you just add #whatever_you_want to the end of the URL in the href field. For example:



%26lt;a href=%26quot;mypage.html#whatever_you_want%26quot;%26gt;Cli... Here%26lt;/a%26gt;. And when you click that link, it will move you down the page to where you placed the anchor link.



Other Replys:First Step: Add the tag below to the text that you want to create a link to



Example



%26lt;a name=%26quot;paragraph2%26quot;%26gt;Second Paragraph%26lt;/a%26gt;



Note: Second Paragraph is optional i.e. you can decide to put nothing in between the tag.



Second Step:



Add the hyperlink tag including the # and the name inside the tag that you created above



%26lt;a href=%26quot;page.htm#paragraph2%26quot;%26gt; Second paragarph%26lt;/a%26gt;

No comments:

Post a Comment

Blog Archive