From 35f3f4bd5bfd5affee6c483f1f7472ae3d947dc7 Mon Sep 17 00:00:00 2001 From: Vardhu <168074844+vardhu032@users.noreply.github.com> Date: Fri, 21 Nov 2025 14:08:55 +0530 Subject: [PATCH] fix(curriculum): add internal links using href and id to review pages (#63593) Co-authored-by: Vardhu32 Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- .../blocks/review-html/671a883163d5ab5d47145880.md | 1 + .../review-semantic-html/671a83934b61f64cefe87a61.md | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/curriculum/challenges/english/blocks/review-html/671a883163d5ab5d47145880.md b/curriculum/challenges/english/blocks/review-html/671a883163d5ab5d47145880.md index 533943f1293..fcb4521d0e9 100644 --- a/curriculum/challenges/english/blocks/review-html/671a883163d5ab5d47145880.md +++ b/curriculum/challenges/english/blocks/review-html/671a883163d5ab5d47145880.md @@ -58,6 +58,7 @@ Review the concepts below to prepare for the upcoming prep exam. - **Absolute vs. relative paths**: Navigating directories. - **Path syntax**: Understanding `/`, `./`, `../` for file navigation. - **Link states**: Managing different link interactions (hover, active). +- **Internal links**: Linking to another section of the page by using `href="#id"` on an `a` element and giving the destination element the same `id`. ## Importance of Semantic HTML diff --git a/curriculum/challenges/english/blocks/review-semantic-html/671a83934b61f64cefe87a61.md b/curriculum/challenges/english/blocks/review-semantic-html/671a83934b61f64cefe87a61.md index d506a4bc237..e0fe97378a0 100644 --- a/curriculum/challenges/english/blocks/review-semantic-html/671a83934b61f64cefe87a61.md +++ b/curriculum/challenges/english/blocks/review-semantic-html/671a83934b61f64cefe87a61.md @@ -223,6 +223,17 @@ The `lang` attribute inside the open `i` tag is used to specify the language of

``` +- **Internal links**: used to link to another section of the page by using `href="#id"` on an `a` element and giving the destination element the same `id`. This is commonly used for skip links, table of contents, or long pages with multiple sections. + +```html +Go to About Section + +
+

About

+

This is the about section of the page.

+
+``` + # --assignment-- Review the Semantic HTML topics and concepts.