Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

 
<nav id="navbar">
  <ul class="navbar-elm">
    <header class="navbar-header">Animie Document</header>
    <section id="main-section">
      <li><a class="nav-link" href="#Introduction">Introduction</a></li>
      </section>
    <br>
      <section id="main-section">
    <li><a class="nav-link" href="#What_you_should_already_know">What you should already know</a></li>
    </section>
    <br>
      <section id="main-section">
    <li><a class="nav-link" href="#Javascript_and_java">Javascript and Java</a></li>
    </section>
    <br>
    
      <section id="main-section">
    <li><a class="nav-link" href="#Hellow_World">Hellow World</a></li>
    </section>
    <br>
    
      <section id="main-section">
    <li><a class="nav-link" href="#Declaring_Variables">Declaring Variables</a></li>
    </section>
    </ul>
  </nav>
    <main id="main-doc">
      <section id="Introduction" class="main-section">
        <header>Introduction</header>
        <p>Java is a cross platform,a small and lightweight language<p>It can be connected to objects of its environment</p>
        <p>Java contains a standard library of objectssuch as data and maths</p>
        <ul>
          <li>Clientside java extracts the core language</li>
          <li>Server-side java extracts the core language</li>
      </ul>
        </section>
      <hr>
      <section id="What_you_should_already_know" class="main-section">
        <header>What you should already know</header>
        <p>This guides assume you have the basic background</p>
        <ul>
          <li>A general understanding of the internet and the world wide web</li>
          <li>Good working knowledge of HTML</li>
          <li>Some programmindmg experience</li>
          </section>
      <hr>
        <section id="Javascript_and_java" class="main-section">
          <header>Javascript and Java</header>
          <p>Java script and java are similar in someway but fundamentally different</p>
          <p>Javaacript supports function without declarative requirement</p>
          <p>Java is a very free form language to java</p>
         </section>
        <hr>
        <section id="Hellow_World" class="main-section">
          <header>Hellow World</header>
      <p>To get started with writing Java,open the scratch pad</p>
              <code>function greetMe(yourName) { alert("Hello " + yourName); }</code>
<p>Select the code in the pad</p>
              <code>greetMe("World");</code>

          </section>
        <hr>
        <section id="Declaring_Variables" class="main-section">
          <header>Declaring Variables</header>
         <p>You can declare variable in three ways</p>
          <p>With the keyword var,For example</p>
          <code>x=42.</code>
          <code>Always declare a global variable</code>
          <p>With the keyboard list.For example,</p>
          <code>Let y=13.</code>
          <p>See variable below</p>
          </section>
        </main>
          
            
     

              
            
!

CSS

              
                body{
  font-family:Lobster;
  background-color:#001B3A;
  color:orange;
  }
header{
  font-size:30px;
  }
#navbar{
  position:fixed;
  }
.navbar-elm{
  margin:0px;
  padding:0px;
  width:250px;
  background-color:#FFFFFF;
  height:96vh;
  color:#1E90FF;
  transition:border-radius: .5s ease;
  display:block;
  }
.navbar-elm:hover{
  border-radius:30px;
  }
.nav-link{
  display:block;
  text-align:center;
  color:#F0F;
  }
.nav-link:hover{
  color:#63e5DA;
  }
.navbar-header{
  text-align:center;
  }
#main-doc{
  margin-left:250px;
  }
@media only screen and (max-width: 600px) {
  body {
    background-color: #001B3A;
  }
 
  
  
  
  
  
  
  
    
  
              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console