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


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/ 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>
  <nav id="navbar"> 
<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>
 <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>
  <main id="main-doc">
<section id="Introduction" class="main-section">
      <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:
    <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>

<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>

    <li>A general understanding of the Internet and the World Wide Web (WWW).
Good working knowledge of HyperText Markup Language (HTML).</li></ul></p>
  <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 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 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:
             function greetMe(yourName) { alert("Hello " + yourName); }
Select the code in the pad and hit Ctrl+R to watch it unfold in your browser!
<section id="Variables" class="main-section">
<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 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>
    var x = 42.
<p>This syntax can be used to declare both local and global variables.</p>
<p>By simply assigning it a value. For example,</p>
    x = 42.
    let y = 13.
    if (true) { var x = 5; } console.log(x); // 5


I have done with html part. But I can’t move my navbar to the left as in the given example:

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.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.