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

HTML Bookmarks with ID and Links

HTML bookmarks enable readers to navigate directly to specific sections of a webpage.

Bookmarks prove particularly helpful for lengthy pages.

To employ a bookmark, it must first be created, followed by adding a link to it.

Subsequently, clicking the link will prompt the page to scroll to the bookmarked location.

Example

Initially, generate a bookmark utilizing the id attribute.

<h2 id=”C4″>Chapter 4</h2>

Next, include a link to the bookmark (“Jump to Chapter 4”) within the same page.

Example

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

Alternatively, add a link to the bookmark (“Jump to Chapter 4”) from a different page.

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