Creating bookmarks with anchor tags

There are times when you need to create bookmarks within your webpage. A bookmark allows you to jump from one section of your webpage to another and is especially useful if you have a webpage which is long enough to make you scroll a lot. In these situations, you are better off creating bookmarks throughout the webpage so that don’t need to scroll all the way down to find a particular subject of interest. The bookmark takes the form of an anchor tag as follows:

<a name=”myBookmark”>I am bookmarking this line</a>

And somewhere else on my webpage i call call it through this:

<a href=”#myBookmark”>Go to bookmark</a>

Just for reference!

comments powered by Disqus