Monday, January 21, 2013

How to jump to a section in HTML

If you wanted to make a long webpage and jump to a specific section this is how you would do it.

First figure out where you want to put the link you where you want to jump TO and make a link with this tag

<a name=”name”></a>

So right now you have named this line “name” and you could have text in between the <a></a> tags but you don’t necessarily need it because you are just naming the line.  Next you are going to figure out where you want to jump FROM. So traditionally you would probably be jumping from the top of your page and going down to another section. So the link tag for the beginning would be this for this situation.

<a href=”#name”>Link to jump to section</a>

Here you do need to have some sort of text in between the <a></a> tags because there is going to be a link created and that is what you are going to click on to jump to the desired section. Also don’t forget the pound sign.

Let’s go Buffalo

- Paul Pezzimenti


Source : digicompdiy[dot]wordpress[dot]com

0 comments:

Post a Comment