Technical Documentation Page - Build a Technical Documentation Page

Tell us what’s happening:
Describe your issue in detail here.

Each .nav-link should have an href attribute that links to its corresponding .main-section (e.g. If you click on a .nav-link element that contains the text “Hello world”, the page navigates to a section element with that id).

Your code so far

/* file: index.Ext.html */
<main id="main-doc">
<nav id="navbar"><header>
<a href="header_1" class="nav-link" >header 1</a>
<a href="header_2" class="nav-link" >header 2</a>
<a href="header_3" class="nav-link" >header 3</a>
<a href="header_4" class="nav-link" >header 4</a>
<a href="header_5" class="nav-link" >header 5</a>nav bar header</header></nav>

<section class="main-section" id="header_1"><header>
<ul>
<li/>
<li/>
<li/>
<li/>
<li/>
</ul>
<code></code>header 1</header>
</section>


<section class ="main-section" id="header_2">
<header>
<p></p><p></p><p></p><p></p><p></p>
<code></code>header 2</header>
</section>


<section class="main-section" id="header_3">
<header>
<p></p><p></p><p></p><p></p><p></p>
<code></code>header 3</header>
</section>
<section class="main-section" id="header_4">
<header>
<p></p><p></p><p></p><p></p><p></p>
<code></code>header 4</header>

</section>
<section class="main-section" id="header_5">
<header>
<p></p><p></p><p></p><p></p><p></p>
<code></code>header 5</header>
</section>


</main>
/* file: styles.Ext.css */

Your mobile information:

2409BRN2CA - Android 15 - Android SDK 35

Challenge: Technical Documentation Page - Build a Technical Documentation Page

Link to the challenge:

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Welcome to the forum @Realm124

20. Each .nav-link should have an href attribute that links to its corresponding .main-section (e.g. If you click on a .nav-link element that contains the text “Hello world”, the page navigates to a section element with that id).

How do you access an element on the same page using the anchor element?

Happy coding

1 Like