Learn HTML step-by-step from A to Z or improve your professional skills.  Home HTML and CSS Tutorials Using #name tag
Your Ad Here

Using #name tag


Using #name tagOk I know that this is very basic, but some people starting out don't know about this.

Lets say you have a webpage that is very long, and requires users to scroll down alot. You can make it easier on your visitors by adding links that can take them to the top, bottom, middle, and anywhere else on the page.

First you need to know where you're going to send your visitors to when they click the link. In this example, I will show you how to send users to the bottom and top of your page.

1. You need the <a name=> tag. We will put this one at the top of the page, and name it "top"

<a name="top">

You can put that right after the <body> tag if you want.

2. Lets make a link that will send users to the bottom. We will call it "bottom"

<a href="/img_articles/11137/#bottom">Bottom of page</a>.

You can put that where ever you want.

3. Now you need to setup the bottom of the page.

<a name="bottom">

Put that right before the </body> tag.

4. Lets make a link that will send your users to the top of the page.

<a href="/img_articles/11137/#top">Top of page</a>

This may seem simple, but it can help you when you really need it.



Author's URL: Thirtysixway
Thank you for voting.
Rate this Materials:
Bad 
1 2 3 4 5 Excellent
print this page subscribe to newsletter subscribe to rss

HTML is Hyper Text Markup Language that is used to make hypermedia and hypertext documents for the Web. More HTML and CSS: Most Popular Materials | Fresh Materials | More HTML Tutorials at Markuptutorials.com

Add comments to "Using #name tag"

Only registered users can write comment

No comments yet...