Technical Documentation Page - Build a Technical Documentation Page

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

  **Your code so far**
  hello guys, am yet to be pass with 3 steps remaining...

All of your nav-link elements should be in the #navbar .
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).
and lastly
Your Technical Documentation project should use at least one media query
am i to work out the css for the last step…thanks

/* file: index.html */



<link rel="stylesheet" href="styles.css">

<main id="main-doc">
<section class="main-section" id="Technical_Documentation_Page">
  <header>Technical Documentation Page</header>



          <nav id="navbar">
                <header>Technical Documentation Page</header>
                <a class="nav-link" href="#Technical Documentation Page">Technical Documentation Page</a>
               


              




  <p></p>
  <p></p>
  <p></p>
  <p></p>
  <p></p>
  <p></p>
  <p></p>
  <p></p>
  <p></p>
  <p></p>

   <code></code>
    <code></code>
     <code></code>
      <code></code>
       <code></code>

       <li></li>
         <li></li>
           <li></li>
             <li></li>
               <li></li>


            


             
              
           
 
 
</section>
  <section class="main-section" id="Technical_Documentation_Page">
     <header>Technical Documentation Page</header>
     <a class="nav-link" href="#Technical Documentation Page">Technical Documentation Page</a>
     
  </section>
    <section class="main-section" id="Technical_Documentation_Page">
       <header>Technical Documentation Page</header>
       <a class="nav-link" href="#Technical Documentation Page">Technical Documentation Page</a>
    </section>
      <section class="main-section" id="Technical_Documentation_Page">
         <header>Technical Documentation Page</header>
         <a class="nav-link" href="#Technical Documentation Page">Technical Documentation Page</a>
      </section>
        <section class="main-section" id="Technical_Documentation_Page">
           <header>Technical Documentation Page</header>
           <a class="nav-link" href="#Technical Documentation Page">Technical Documentation Page</a>

            </nav>
           
        </section>
         
        

           

</main>


/* file: styles.css */

  **Your browser information:**

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

Challenge: Technical Documentation Page - Build a Technical Documentation Page

Link to the challenge:

What do you need help with ?

(1)All of your .nav-link elements should be in the #navbar. is not passing thru and (2) 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). and (3) Your Technical Documentation project should use at least one media query… should i use css to file the media query

@princebass
Do you still need help with the challenge, or you already passed it??

i still need help with the challenge…any hint to go about it

have pass the challenge…thanks

have pass the challenge…coding is fun :smiling_face:

@princebass Yeah happy coding

Hi, please how did you go about your 3 issue regarding the media query?

how did you pass your no 2 challenge cos i have same issue

What issue are you having…What does the challenge need you to do ?

one of the tests in building technical documentation page refusedto pass, it says:
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).
this is my HTML codes so far:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width", initial-scale=1.0>
    <link rel="stylesheet" href="styles.css">
    </head>
    <body>
      <title>Technical Documentation</title>
      <main id="main-doc">
        <section class="main-section" id="introduction">
          <header>
            <h1>Introduction</h1>
          </header>
          <p>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.</p>
          <p>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:</p>
          <ul>
            <li>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.</li>
            <li>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.</li>
          </ul>
        </section>
        <section class="main-section" id="what_you_already_know">
          <header>
          <h2>What you already know</h2>
          </header>
          <ul>This guide assumes you have the following basic background:
            <li>A general understanding of the Internet and the World Wide Web (WWW).</li>
            <li>Good working knowledge of HyperText Markup Language (HTML).</li>
            <li>Some programming experience. If you are new to programming, try one of the tutorials linked on the main page about JavaScript.</li>
          </ul>
        </section>
        <section class="main-section" id="javascript_and_java">
          <header>
            <h3>JavaScript and Java</h3>
          </header>
            <p>JavaScript and Java are similar in some ways but fundamentally different in some others. The JavaScript language resembles Java but does not have Java's static typing and strong type checking. JavaScript follows most Java expression syntax, naming conventions and basic control-flow constructs which was the reason why it was renamed from LiveScript to JavaScript.</p>
            <p>In contrast to Java's compile-time system of classes built by declarations, JavaScript supports a runtime system based on a small number of data types representing numeric, Boolean, and string values. JavaScript has a prototype-based object model instead of the more common class-based object model. The prototype-based model provides dynamic inheritance; that is, what is inherited can vary for individual objects. JavaScript also supports functions without any special declarative requirements. Functions can be properties of objects, executing as loosely typed methods.</p>
        
          
        </section>
        <section class="main-section" id="hello_world">
          <header>
            <h4>Hello World</h4>
          </header>
            <ul>To get started with writing JavaScript, open the Scratchpad and write your first "Hello world" JavaScript code:</ul>
            <code>function greetMe(yourName) { alert("Hello " + yourName); }</code>
<code>greetMe("World");</code>
        </section>
        <section class="main-section" id="declaring_variables">
          <header>
            <h5>Declaring Variables</h5>
          </header>
          <p>You can declare a variable in three ways:</p>
          <p>With the keyword var. For example,</p>
          <code>var x = 42.</code>
          <p>This syntax can be used to declare both local and global variables.</p>
          <p>By simply assigning it a value. For example,</p>
          <code>x = 42</code>
          <p>This always declares a global variable. It generates a strict JavaScript warning. You shouldn't use this variant.</p>
          <p>With the keyword let. For example,</p>
          <code>let y = 13</code>
          
        </section>
      </main>
      <nav id="navbar">
        <header>JS Documentation</header>
        <a class="nav-link" href="introduction">Introduction</a>
        <a class="nav-link" href="what_you_already_know">What you already know</a>
        <a class="nav-link" href="javascript_and_java">JavaScript and Java</a>
        <a class="nav-link" href="hello_world">Hello World</a>
        <a class="nav-link" href="declaring_variables">Declaring Variables</a>
    </nav>

      

my CSS codes so far:

body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b3;
  font-family: Tahoma;
  font-size: 16px;
}
h1, p, h2, h3, h4, h5 {
  margin: 1em auto;
  text-align: left;
  font-family: Verdana, Tahoma;
}
navbar {
  text-align: left;
}
@media (max-width: 600px) {
  background-color: red;
}

please take a critical look at it.

Do you still need help with it, or you already fixed it ?

i still need help with it please

one of the tests in building technical documentation page refusedto pass, it says:
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).
this is my HTML codes so far:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width", initial-scale=1.0>
    <link rel="stylesheet" href="styles.css">
    </head>
    <body>
      <title>Technical Documentation</title>
      <main id="main-doc">
        <section class="main-section" id="introduction">
          <header>
            <h1>Introduction</h1>
          </header>
          <p>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.</p>
          <p>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:</p>
          <ul>
            <li>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.</li>
            <li>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.</li>
          </ul>
        </section>
        <section class="main-section" id="what_you_already_know">
          <header>
          <h2>What you already know</h2>
          </header>
          <ul>This guide assumes you have the following basic background:
            <li>A general understanding of the Internet and the World Wide Web (WWW).</li>
            <li>Good working knowledge of HyperText Markup Language (HTML).</li>
            <li>Some programming experience. If you are new to programming, try one of the tutorials linked on the main page about JavaScript.</li>
          </ul>
        </section>
        <section class="main-section" id="javascript_and_java">
          <header>
            <h3>JavaScript and Java</h3>
          </header>
            <p>JavaScript and Java are similar in some ways but fundamentally different in some others. The JavaScript language resembles Java but does not have Java's static typing and strong type checking. JavaScript follows most Java expression syntax, naming conventions and basic control-flow constructs which was the reason why it was renamed from LiveScript to JavaScript.</p>
            <p>In contrast to Java's compile-time system of classes built by declarations, JavaScript supports a runtime system based on a small number of data types representing numeric, Boolean, and string values. JavaScript has a prototype-based object model instead of the more common class-based object model. The prototype-based model provides dynamic inheritance; that is, what is inherited can vary for individual objects. JavaScript also supports functions without any special declarative requirements. Functions can be properties of objects, executing as loosely typed methods.</p>
        
          
        </section>
        <section class="main-section" id="hello_world">
          <header>
            <h4>Hello World</h4>
          </header>
            <ul>To get started with writing JavaScript, open the Scratchpad and write your first "Hello world" JavaScript code:</ul>
            <code>function greetMe(yourName) { alert("Hello " + yourName); }</code>
<code>greetMe("World");</code>
        </section>
        <section class="main-section" id="declaring_variables">
          <header>
            <h5>Declaring Variables</h5>
          </header>
          <p>You can declare a variable in three ways:</p>
          <p>With the keyword var. For example,</p>
          <code>var x = 42.</code>
          <p>This syntax can be used to declare both local and global variables.</p>
          <p>By simply assigning it a value. For example,</p>
          <code>x = 42</code>
          <p>This always declares a global variable. It generates a strict JavaScript warning. You shouldn't use this variant.</p>
          <p>With the keyword let. For example,</p>
          <code>let y = 13</code>
          
        </section>
      </main>
      <nav id="navbar">
        <header>JS Documentation</header>
        <a class="nav-link" href="introduction">Introduction</a>
        <a class="nav-link" href="what_you_already_know">What you already know</a>
        <a class="nav-link" href="javascript_and_java">JavaScript and Java</a>
        <a class="nav-link" href="hello_world">Hello World</a>
        <a class="nav-link" href="declaring_variables">Declaring Variables</a>
    </nav>

      

My CSS codes:

body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b3;
  font-family: Tahoma;
  font-size: 16px;
}
h1, p, h2, h3, h4, h5 {
  margin: 1em auto;
  text-align: left;
  font-family: Verdana, Tahoma;
}
navbar {
  text-align: left;
}
@media (max-width: 600px) {
  background-color: red;
}
.nav-link > hello_world:hover {
  cursor: pointer;
}

Do you still need help with it or you already passed the challenge I’m sorry I had a long day !!?