here is my code
t<html lang="en">
<head>
<meta charset="UTF-8">
<title>City Skyline</title>
<link href="styles.css" rel="stylesheet" />
<title>Technical Documentation Page</title>
</head>
<body>
<nav id="navbar">
<header>
<h2>js documentation</h2>
</header>
<ul>
<li><a class="nav-link" href="#introduction" >introduction</a></li>
<li><a class="nav-link" href="#What_you_should_already_know" >What you should already know</a></li>
<li><a class="nav-link" href="#Hello_world" >Hello world</a></li>
<li><a class="nav-link" href="#Variable_scope">Variable scope</a></li>
<li><a class="nav-link" href="#Variables">Variables</a></li>
<li><a class="nav-link" href="#Function_declarations">Function declarations</a></li>
<li><a class="nav-link" href="#Global_variables">Global variables</a></li>
</ul>
</nav>
<main id="main-doc">
<section class="main-section" id="introduction">
<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. Core JavaScript can be extended for a variety of purposes by supplementing it with additional objects; for example:
<ul class="list">
<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><br>
<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 class="main-section" id="What_you_should_already_know">
<header>What you should already know</header>
<p>This guide assumes you have the following basic background:</p>
<ul>
<li>A general understanding of the Internet and the World Wide Web (WWW).</li><br>
<li>Good working knowledge of HyperText Markup Language (HTML).</li><br>
<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="Hello_world">
<header>Hello world</header>
<p>To get started with writing JavaScript, open the Scratchpad and write your first "Hello world" JavaScript code:</p>
<code>function greetMe(yourName) { alert("Hello " + yourName); }
greetMe("World");</code>
<p>Select the code in the pad and hit Ctrl+R to watch it unfold in your browser!</p>
</section>
<section class="main-section" id="Variable_scope">
<header>Variable scope</header>
<p>When you declare a variable outside of any function, it is called a global variable, because it is available to any other code in the current document. When you declare a variable within a function, it is called a local variable, because it is available only within that function.</p>
<p>JavaScript before ECMAScript 2015 does not have block statement scope; rather, a variable declared within a block is local to the function (or global scope) that the block resides within. For example the following code will log 5, because the scope of x is the function (or global context) within which x is declared, not the block, which in this case is an if statement.</p>
<code>if (true) { var x = 5; } console.log(x); // 5</code>
<p>This behavior changes, when using the let declaration introduced in ECMAScript 2015.</p>
<code>if (true) { let y = 5; } console.log(y); // ReferenceError: y is
not defined</code></br>
</section>
<section class="main-section" id="Variables">
<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 class="main-section" id="Function_declarations">
<header>Function declarations</header>
<p>A function definition (also called a function declaration, or function statement) consists of the function keyword, followed by:</p>
<ul>
<li>The name of the function.</li><br>
<li>A list of arguments to the function, enclosed in parentheses and separated by commas.</li><br>
<li>The JavaScript statements that define the function, enclosed in curly brackets, { }.</li>
</ul>
<p>For example, the following code defines a simple function named square:</p>
<code>function square(number) { return number * number; }</code>
<p>The function square takes one argument, called number. The function consists of one statement that says to return the argument of the function (that is, number) multiplied by itself. The return statement specifies the value returned by the function.</p>
<code>return number * number;</code>
<p>Primitive parameters (such as a number) are passed to functions by value; the value is passed to the function, but if the function changes the value of the parameter, this change is not reflected globally or in the calling function.</p>
</section>
<section class="main-section" id="Global_variables">
<header>Global variables</header>
<p>Global variables are in fact properties of the global object. In web pages the global object is window, so you can set and access global variables using the window.variable syntax.</p>
<p>Consequently, you can access global variables declared in one window or frame from another window or frame by specifying the window or frame name. For example, if a variable called phoneNumber is declared in a document, you can refer to this variable from an iframe as parent.phoneNumber.</p>
</section>
</main>
</body>
</html>
<!--This is my css-->
<style>
nav li{
list-style: none;
}
nav#navbar a {
display: block;
border: 1px solid black;
padding: 6px;
margin: 10px 0;
text-decoration: none;
color: black
}
header{
font-size: 1.5em;
font-weight: bold;
}
code{
background-color: #ccc;
display: block;
padding: 20px
}
@media only screen and (max-width: 200px){
.main-section{
position: relative;
margin-left: 0px;
margin-right:290px;
padding: 0;
}
</style>ype or paste code here