Tell us what’s happening:
Describe your issue in detail here.
Stuck at “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.html -->
<!DOCTYPE html>
<html lang="en"></html>
<head>
<main charset="utf-8"></main>
<main name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Technical Documentation Page</title>
</head>
<body>
<nav id="navbar">
<header id="header">Reference</header>
<ul>
<li> <a class="nav-link" href="#SONOGONG" > SONOGONG </a> </li>
<li> <a class="nav-link" href="#My_Bag"> My Bag </a> </li>
<li> <a class="nav-link" href="#Picasso"> Picasso</a> </li>
<li> <a class="nav-link" href="#HWAA">HWAA</a> </li>
<li> <a class="nav-link" href="#Illa_Illa">Illa Illa</a> </li>
<li><a class="nav-link" href="#_World"> _World </a></li>
</ul>
</nav>
<main id="main-doc">
<section class="main-section">
<header><a href="#SONOGONG">SONOGONG</a></header>
<ul>
<li>Seventeen</li>
</ul>
<p></p>
<p></p>
<code></code>
</section>
<section class="main-section">
<header> <a href="#My_Bag">My Bag</a></header>
<ul>
<li>(G)-IDLE</li>
</ul>
<p></p>
<p></p>
<code></code>
</section>
<section class="main-section">
<header><a href="#Picasso">Picasso</a></header>
<ul>
<li>Kingdom</li>
</ul>
<p></p>
<p></p>
</section>
<section class="main-section">
<header><a href="#HWAA">Hwaa</a></header>
<ul>
<li>(G)-IDLE</li>
</ul>
<p></p>
<p></p>
<code></code>
</section>
<section class="main-section">
<header><a href="#Illa_Illa">Illa Illa</a></header>
<ul>
<li>B.I</li>
</ul>
<p></p>
<p></p>
<code></code>
</section>
<section class="main-section">
<header><a href="#_World">_World</a></header>
<ul>
<li>Seventeen</li>
</ul>
<p></p>
<p></p>
<code></code>
</section>
</main>
</body>
/* file: styles.css */
*{
background-color: rgb(255, 183, 100)
}
@media (min-width: 300px)(max-width: 500px){
#section{
width: 300px
}
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Challenge: Technical Documentation Page - Build a Technical Documentation Page
Link to the challenge: