HTML Links – Create Bookmarks: HTML links can be used to create bookmarks, with the goal that readers can leap to explicit pieces of a web page.


How to HTML Bookmark

HTML anchor or Html Bookmark is useful, on the off chance that you have a long page that you need to allow the users to rapidly navigate to various segments in a similar website page or you can navigate to the targeted location of the other site page.

The Anchor tag < a > … </a> is using for creating bookmark links.


Create a Bookmark in HTML

Bookmarks can be helpful if a website page is extremely long.

To create a bookmark – first create the bookmark, at that point add a link to it.

At the point when the link is clicked, the page will look down or up to the location with the bookmark.

Example

To start with, use the id attribute to create a bookmark:

<h2 id="C4">Chapter 4</h2>

At that point, add a link to the bookmark (“Jump to Chapter 4”), from inside a similar page:

Example

<a href="#C4">Jump to Chapter 4</a>

You can likewise add a link to a bookmark on another page:

<a href="html_demo.html#C4">Jump to Chapter 4</a>

Chapter Summary

  • Use the id attribute (id=”value”) to define bookmarks in a page
  • Use the href attribute (href=”#value”) to link to the bookmark

Thanks for reading! We hope you found this tutorial helpful and we would love to hear your feedback in the Comments section below. And show us what you’ve learned by sharing your photos and creative projects with us.