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>

<html>
<main id="main">
  <h1> Sir Edmund Hillary</h1>
  <h2 id="title"> From mountain top to <span style="font-weight:900">way</span> down under </h2>
  <div id="img-div">
    <img id="image" src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/76/Edmund_Hillary%2C_c._1953%2C_autograph_removed.jpg/800px-Edmund_Hillary%2C_c._1953%2C_autograph_removed.jpg" alt="Sir Edmund Hillary, 1953" class="center">
    <p id="img-caption">New Zealand Mountaineer and Explorer, <span style="font-weight:900">Sir Edmund Hillary</span> (1953)</p>
  </div>
  <p id="tribute-info"> Below you will find a very brief summary of some of Sir Edmund Hillary's greatest achievements.
    <div id="list">
      <h3 id="mountaineer">The Mountaineer</h3>
      <ul>
        <li>He climbed his first mountain at the age of 20 - Mount Ollivier, New Zealand.</li>
        <li>His first attempt to summit Mt Everest was as a part of a British expedition in 1951. They didn't reach the top.</li>
        <li>His second attempt was also part of a British expedition, this time in 1953. He, and his sherpa, Tenzing Norgay, were the first men to reach the top of Mt Everst due to the first two men having to turn back due to exhaustion.</li>
      </ul>
    </div>
    <div id="list">
      <h3 id="explorer">The Explorer</h3>
      <ul id="list-2">
        <li>In 1958, he led the New Zealand team that was part of the Commonwealth Trans-Antarctic Expedition. The team was responsible for finding a route and dropping supplies at given points to support the second half of the British-led expedition to cross Antarctica through the South Pole. </li>
        <li>His team finished early, so he became the first person to reach the South Pole with a vehicle (a tractor).</li>
        <li>Later, in 1967, he became the first person to scale Mount Herschel in another Antarctic expedition.</li>
      </ul>
    </div>
    <div id="list">
      <h3 id="philanthropist">The Philanthropist</h3>
      <ul id="list-3">
        <li>He established a foundation to support the sherpa people in Nepal. The Himalayan Trust built many schools and hospitals.</li>
        <li>He served as New Zealand's high commissioner to Nepal, as well as India and Bangladesh.</li>
        <li>He was awarded the Order of the Garter in 1995 - an order of chivalry founded by King Edward III of England in 1348 and the most senior order of knighthood in the British honours system</li>
      </ul>
    </div>
  </p>
  </body>
  <p id="trib-link"> <strong>For more information about this incredible man read his biography <a id="tribute-link" target="_blank" href="https://www.biography.com/athlete/edmund-hillary">here</a>. </strong></p>
</main>

</html>
              
            
!

CSS

              
                #main {
  background-color: hsl(100 50% 75%);
  color: hsl(260 70% 30%);
}
h1 {
  text-align: center;
}
#title {
  font-style: italic;
  font-weight: 100;
  text-align: center;
}
#img-div {
  text-align: center;
}
#image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}
#list {
  line-height: 30px;
}
#trib-link {
  text-align: center;
  font-size: 12px;
}

              
            
!

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