Help I can’t finish this 2 final parts
-
Each
.nav-link
should have anhref
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 asection
element with that id). -
Your Technical Documentation project should use at least one media query.
Here is my code so far:
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main id="main-doc">
<section class="main-section" id="Su_s">
<header>Su s</header>
<nav id="navbar">
<header>Su s</header>
<a href="Su_s" class="nav-link">Su s</a>
</nav>
<p></p>
<p></p>
<code></code>
<li></li>
</section>
<section class="main-section" id="Sus_2">
<header>Sus 2</header>
<nav id="navbar">
<a href="Sus_2" class="nav-link">Sus 2</a>
</nav>
<p></p>
<p></p>
<code></code>
<li></li>
</section>
<section class="main-section" id="Sus_3">
<header>Sus 3</header>
<nav id="navbar">
<a href="Sus_3" class="nav-link">Sus 3</a>
</nav>
<p></p>
<p></p>
<code></code>
<li></li>
</section>
<section class="main-section" id="Sus_4">
<header>Sus 4</header>
<nav id="navbar">
<a href="Sus_4" class="nav-link">Sus 4</a>
</nav>
<p></p>
<p></p>
<code></code>
<li></li>
</section>
<section class="main-section" id="Sus_5">
<header>Sus 5</header>
<nav id="navbar">
<a href="Sus_5" class="nav-link">Sus 5</a>
</nav>
<p></p>
<p></p>
<code></code>
<li></li>
</section>
</main>
</body>
</html>
and CSS:
@media {
}
Thanks!