Technical Documentation Page - Build a Technical Documentation Page

Tell us what’s happening:

1 step isnt right, so my coding isnt passing… its about putting a href atribute to link my secction into specific part of the code which i entered before…

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<link rel="stlesheet" href="styles.css"></link>
<main id="main-doc">

<section  id="JS_Documentation" class="main-section" name="JS_Documentation" href="JS_Documentation"><header>JS Documentation</header><p></p><p></p><code></code><li>Learn more about OUR world</li></section>

<section class="main-section" name="Introduction" href="Introduction" id="Introduction"><header>Introduction</header><p></p><p></p><code></code><li>This is a document about the absurb and lively world of coding!</li></section>

<section id="What_you_should_already_know" class="main-section"  href="What_you_should_already_know" name="What_you_should_already_know"><header>What you should already know</header><p></p><p></p><code></code><li>What the WorldWideWeb (WWW) is.</li></section>

<section class="main-section" href="JavaScript_and_Java" name="JavaScript_and_java" id="JavaScript_and_Java"><header>JavaScript and Java</header><p></p><p></p><code></code><li>A very popular coding language which is used by many beginners and profestionals in the field on coding. </li></section>

<section class="main-section"  href="Hello_world" name="Hello_world" id="Hello_world"><header>Hello world</header><p></p><p></p><code></code><li>A very popular sentence used in coding</li></section>

<nav id="navbar"><header>JavaScript is a cross-platform, object-oriented scripting language. It is a small and lightweight language. Inside a host environment (for example, a web browser), JavaScript can be connected to the objects of its environment to provide programmatic control over them.

JavaScript contains a standard library of objects, such as Array, Date, and Math, and a core set of language elements such as operators, control structures, and statements. Core JavaScript can be extended for a variety of purposes by supplementing it with additional objects; for example:

Client-side JavaScript extends the core language by supplying objects to control a browser and its Document Object Model (DOM). For example, client-side extensions allow an application to place elements on an HTML form and respond to user events such as mouse clicks, form input, and page navigation.
Server-side JavaScript extends the core language by supplying objects relevant to running JavaScript on a server. For example, server-side extensions allow an application to communicate with a database, provide continuity of information from one invocation to another of the application, or perform file manipulations on a server.</header>
<a class="nav-link" for=" JS_Documentation" href="JS_Documentation" id="JS_Documentation">JS Documentation</a>
<a class="nav-link" for="Introduction" href="Introduction" id="Introduction">Introduction</a>
<a class="nav-link" href="What_you_should_already_know" for="What_you_should_already_know" id="What_you_should_already_know">What you should already know</a>
<a class="nav-link" href="JavaScript_and_Java" name="JavaScript_and_Java" id="JavaScript_and_Java">JavaScript and Java</a>
<a class="nav-link"  for="Hello_world" href="Hello_world" id="Hello_world">Hello world</a>
</nav>
  </main>
  </html>
/* file: styles.css */
.navbar{display:left;}
@media screen and (min-width: 480px) {
  body {
    background-color: lightgreen;
  }
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

Technical Documentation Page - Build a Technical Documentation Page

  1. You have added href attributes to your section elements and for attributes to your a elements. Both are invalid.

  2. You are repeating ids, ids should be unique and each should only be used one time.

  3. Your href values are missing something. Review the syntax on how to link to elements on the same page.

MDN: Linking to an element on the same page

1 Like