loading

Links Bookmarks


Bookmarks made with HTML links allow users to navigate to particular sections of a website.


Create a Bookmark in HTML

If a web page is lengthy, bookmarks may come in handy.

Making a bookmark involves first creating it and then adding a link to it.

The page will scroll up or down to the bookmark’s location when the link is clicked.

Example

First, use the id attribute to create a bookmark:

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

Then, add a link to the bookmark (“Jump to Chapter 4”), from within the same page:

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

You can also 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

HTML Link Tags

Tag Description
<a>Defines a hyperlink
Share this Doc

Links Bookmarks

Or copy link

Explore Topic