Technical Documentation Page - Build a Technical Documentation Page

**Tell us what’s happening: I don’t know how to place navbar on the left side as in the given example website. Any help would be appreciated.

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Challenge: Technical Documentation Page - Build a Technical Documentation Page

Link to the challenge:

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

I can’t show up my codes. I wonder why this is happening.

read the warning in the post you made. It answers you and tells you what to do to include your code and your questions.

<!DOCTYPE html>
<html lang="en"></html>
<head>
  <nav id="navbar"> 
    <header>
<a href="#Introduction" class="nav-link">Introduction</a>
<a href="#What_you_should_already_know" class="nav-link">What you should already know</a>
<a href="#JavaScript_and_Java"class="nav-link">JavaScript and Java</a>
<a href="#Hello_World" class="nav-link">Hello World</a>
<a href="#Variables"class="nav-link">Variables</a>
<a href="#declaring_variables"class="nav-link">
Declaring variables</a>
    </header>
  </nav>
 <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Technical Documentation Page</title>
    <link rel="stylesheet" href="styles.css"></link>
</head>
<body>
  <main id="main-doc">
<section id="Introduction" class="main-section">
      <header>Introduction</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.</p>

<p>Core JavaScript can be extended for a variety of purposes by supplementing it with additional objects; for example:
  <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>
</p>

</section>
<section id="What_you_should_already_know" class="main-section">
      <header>What you should already know</header>
      <p>This guide assumes you have the following basic background:</p>

<p>
  <ul>
    <li>A general understanding of the Internet and the World Wide Web (WWW).
Good working knowledge of HyperText Markup Language (HTML).</li></ul></p>
<p> 
  <ul> 
  <li>Some programming experience. If you are new to programming, try one of the tutorials linked on the main page about JavaScript.</li></ul></p>
    </section>
<section id="JavaScript_and_Java"class="main-section">
      <header>JavaScript and Java</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. </p><p>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>
    </section>
<section id="Hello_World"class="main-section">
      <header>Hello World</header>
      <p>To get started with writing JavaScript, open the Scratchpad and write your first "Hello world" JavaScript code:
        <ul>
         <li> 
           <code>
             function greetMe(yourName) { alert("Hello " + yourName); }
             greetMe("World");
             </code>
           </ul>
Select the code in the pad and hit Ctrl+R to watch it unfold in your browser!
</p>
    </section>
<section id="Variables" class="main-section">
      <header>Variables</header>
<p>You use variables as symbolic names for values in your application. The names of variables, called identifiers, conform to certain rules.</p>

<p>A JavaScript identifier must start with a letter, underscore (_), or dollar sign ($); subsequent characters can also be digits (0-9). Because JavaScript is case sensitive, letters include the characters "A" through "Z" (uppercase) and the characters "a" through "z" (lowercase).</p>

<p>You can use ISO 8859-1 or Unicode letters such as å and ü in identifiers. You can also use the Unicode escape sequences as characters in identifiers. Some examples of legal names are Number_hits, temp99, and _name.</p>
</section>
<section id="declaring_variables" class="main-section">
      <header>Declaring variables</header>
      <p>You can declare a variable in three ways:</p>
<p>With the keyword var. For example, </p>
<p>
  <code>
    var x = 42.
  </code>
</p>
<p>This syntax can be used to declare both local and global variables.</p>
<p>By simply assigning it a value. For example,</p>
<p>
  <code>
    x = 42.
  </code>
</p>
<p>
  <code>
    let y = 13.
  </code>
</p>
<p>
  <code>
    if (true) { var x = 5; } console.log(x); // 5
  </code>
</p>

  </main>
    
</body>

I have done with html part. But I can’t move my navbar to the left as in the given example: https://technical-documentation-page.freecodecamp.rocks/

Can you help me with that?

Nothing have I written in css sheet.

you can use some css to do this which is position: fixed, top: 0 and left: 0
But you should move the navbar down into the body as it doesn’t belong in the head element.
Also the header element in the navbar should have some text in it like
<header>Navigation</header> or something similar and should not have the ul element inside it.
The idea is that the header is like the title of the nav-bar.