Technical Documentation Page - Build a Technical Documentation Page

Tell us what’s happening:

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.

<doctype html>
  <html>
    

    <nav id="navbar">
      
      <header>JS Documentation</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="#JavaScript_and_Java">JavaScript and Java</a></li> 

      <li><a class="nav-link" href="#Hello_world">Hello world</a></li> 

      <li><a class="nav-link" href="#variable">variable</a></li> 

      <li><a class="nav-link" href="#Declaring_variables">Declaring variables</a></li> 


      <li><a class="nav-link" href="#Data_types">Data types</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: </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>
           <p>A general understanding of the Internet and the World Wide Web (WWW). </p>

         </section>


            <section class="main-section" id="JavaScript_and_Java">
              <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. 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>javaScript is a very free-form language compared to Java. You do not have to declare all variables, classes, and methods. You do not have to be concerned with whether methods are public, private, or protected, and you do not have to implement interfaces. Variables, parameters, and function return types are not explicitly typed </p>
            </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" </p>

                 <code> JavaScript 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">
                    <header>variable</HEADER>
                    <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="Declaring_variables">
           <header>Declaring variables</HEADER>

           <p>You can declare a variable in three ways:
 </p>
           <p>With the keyword var. For example,</p>

           <code>var x = 42.</code>
            <code>x = 42.</code>
             <code>let y = 13.</code>
              <code>int main{
                printf("hasan")}</code>
         </section>

<section class="main-section" id="Data_types">
           <header>Data types</HEADER>
<p>The latest ECMAScript standard defines seven data types:</p>

<ul>
  <li>Boolean. true and false.</li>
  <li>null. A special keyword denoting a null value. Because JavaScript is case-sensitive, null is not the same as Null, NULL, or any other variant. </li>
  <li>undefined. A top-level property whose value is undefined. </li>
  <li>Number. 42 or 3.14159. </li>
  <li>String. "Howdy" </li>
</ul>
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide" target="_blank">MDN</a>
</section>

<link rel="stylesheet" media="mediatype and|not|only (expressions)" href="print.css">

      </main>
      
  </html>

 
@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/103.0.0.0 Safari/537.36

Challenge: Technical Documentation Page - Build a Technical Documentation Page

Link to the challenge:

I’ve added the media querry but still unable to move forward