- Failed:Your
#navbar
should have exactly oneheader
element within it.
- Each
.nav-link
should have text that corresponds to theheader
text of its relatedsection
(e.g. if you have a “Hello world” section/header, your#navbar
should have a.nav-link
which has the text “Hello world”).
2 * Failed: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).
- Failed:Your Technical Documentation project should use at least one media query.
I have worked on this for three days, still can’t solve the problem, anyone please can help?Highly appreciated, thanks.
Your code so far
<!-- file: index.html -->
<DOCTYPE! HTML>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Technical Documentation</title>
<link rel="stylesheet" href="style.css"></head>
<main id="main-doc">
<nav id="navbar">
<section class="main-section" id="Power_Generation_Energy">
<header>Power Generation Energy</header>
<p>300mAh</p>
<p>600mAh</p>
<ul>
<li><a class="nav-link">Power Generation Energy</a></li>
<li><a class="nav-link">Power Generation </a></li>
</ul></nav></section>
<nav id="navbar">
<section class="main-section" id="Power_Generation_Energy2">
<header>Power Generation Energy2</header>
<p>300mAh</p>
<p>600mAh</p>
<code></code>
<code></code>
<code></code>
<code></code>
<code></code>
<ol>
<li><a class="nav-link" href="Power_Generation_Energy2">Power Generation Energy2</a></li>
<li><a class="nav-link" href="Power_Generation_Energy2">Power Generation </a></li>
<li><a class="nav-link" href="Power_Generation_Energy2">Power</a></li></ol></nav></section>
<nav id="navbar">
<section class="main-section" id="Power_Generation_Energy3">
<header>Power Generation Energy3</header>
<p>300mAh</p>
<p>600mAh</p></nav></section>
<nav id="navbar">
<section class="main-section" id="Power_Generation_Energy4">
<header>Power Generation Energy4</header>
<p>300mAh</p>
<p>600mAh</p></nav></section>
<nav id="navbar">
<section class="main-section" id="Power_Generation_Energy5">
<header>Power Generation Energy5</header>
<p>300mAh</p>
<p>600mAh</p>
</nav>
</main></html>
/* file: styles.css */
@media screen and(max-width: 600px) {
body { background-color: red;
}
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Challenge: Technical Documentation Page - Build a Technical Documentation Page
Link to the challenge: