Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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>

<!-- This is a revamp of my original Tribute page built under my CoderK3v codepen account. I also added a comment there to prove the link.
-->

<body>
  
  <div id="main">
  <h1 id="title">Sir Tim Berners-Lee</h1>
  
  <h2>Inventor of the World Wide Web, the 1st web browser, & the worlds 1st web server.</h2>
  </div>
  <br>
  <div id="img-div">
   <img id="image" src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/7a/Timbernerslee.jpg/220px-Timbernerslee.jpg" alt="Sir Tim Berners-Lee">
    <figcaption id="img-caption">
      Sir Tim Berners-Lee standing next to "Code a Better Country" poster
    </figcaption>
  </div>
  
  <div id="tribute-info">
    <ul>
  
  <li>Technically he was the first Front-End Web Developer when he combined hypertext with the internet and created the first web browser called WorldWideWeb that had a built in editor and ran on the NeXTSTEP operating system that he used to create the first web server back in 1989.</li><br>
      
      <li>He is credited with the innovation that continues to change billions of lives and how we interact and share information worldwide!</li><br>
  
  <li>The most respectable thing in my opinion is that he did it all with out trying to patent or trademark any of it with the intent of it being freely available to the world making it easily adoptable by anyone. He has also received several awards for his achievements and founded the W3C that helps create the standards and recommendations to improve the quality of the web.</li><br>
      
      <li>He was even knighted by the Queen in 2004 for his innovative work. </li></ul></div>
  
  <p>For a more in-depth look checkout <a id="tribute-link" href="https://en.wikipedia.org/wiki/Tim_Berners-Lee" target="_blank">Tim Berners-Lee@Wikipedia.com</a></p>
    
</body>

              
            
!

CSS

              
                body {
  text-align: center;
  background-color: hsl(0, 0%, 100%);
  color: black;
  margin: 50px;
}

#main {
  background-color: hsl(0, 0%, 90%);
  max-width: 60%;
  margin: auto;
  padding: 10px;
}

h1 {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  margin: auto;
  border-color: black;
  border-width: 5px;
  border-style: solid;
}

#tribute-info {
  font-size: 1.3em;
  text-align: left;
  max-width: 50%;
  height: auto;
  margin: 30px auto auto auto;
}


              
            
!

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