fix(curriculum): add internal links using href and id to review pages (#63593)

Co-authored-by: Vardhu32 <vardhu9550@gmail.com>
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
Vardhu 2025-11-21 14:08:55 +05:30 committed by GitHub
parent 8a9035a774
commit 35f3f4bd5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -223,6 +223,17 @@ The `lang` attribute inside the open `i` tag is used to specify the language of
</p>
```
- **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
<a href="#about-section">Go to About Section</a>
<section id="about-section">
<h2>About</h2>
<p>This is the about section of the page.</p>
</section>
```
# --assignment--
Review the Semantic HTML topics and concepts.