Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Attributes

0/1

HTML Paragraphs

0/1

HTML Formatting

0/1

HTML Comments

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML Symbols

0/1
Text lesson

Link Bookmarks

Bookmark in HTML

Bookmarks are particularly handy for lengthy web pages.

To set up a bookmark, you initially establish the bookmark itself, followed by linking to it.

Clicking on this link will automatically scroll the page to the bookmarked section, either upwards or downwards.

Example

First, use the id attribute to create a bookmark.

<h2 id=”C8″>Chapter 8</h2>

Next, within the same page, create a link labeled “Jump to Chapter 8” that directs to the bookmark.

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

<a href=”html_demo.html#C10″>Jump to Chapter 10</a>

Chapter Summary

  • Employ the ‘id‘ attribute (id=”value”) to establish bookmarks on a page.
  • To create a link to a bookmark, utilize the ‘href‘ attribute with the format (href=”#value”).