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>

<main id="main">
  <h1 id="title">Stephen Hillenburg</h1>
  <p>The man who created SpongeBob</p>
  <figure id="img-div">
    <img id="image" src="https://cdn1.thr.com/sites/default/files/imagecache/landscape_928x523/2017/03/gettyimages-462578070-h_2017.jpg" alt=" A picture of Stephen Hillenburg smiling" />
    <figcaption id="img-caption">Stephen Hillenburg at "The Spongebob Movie, Sponge out of Water" movie premiere
    </figcaption>
  </figure>
  <section id="tribute-info">
    <h3 id="headline">Time Line of Important Events in Stephen Hillenburg's Life</h3>
    <ul>
      <li><strong>1961</strong> - Born in Lawton, Oaklahoma</li>
      <li><strong>1984</strong> - He earned his bachelor's degree in natural-resource planning and interpretation at Humboldt State University.</li>
      <li><strong>1992</strong> - Hillenburg graduated earning a Master of Fine Arts in experimental animation.</li>
      <li><strong>1992</strong> - Hillenburg made his first animated works, short films The Green Beret and Wormholes.</li>
      <li><strong>1993-1996</strong> - Hillenburg's first professional job in the animation business was as a director on Rocko's Modern Life.</li>
      <li><strong>1999</strong> - SpongeBob SquarePants first aired as a preview on May 1 and officially premiered on July 17 of the same year.</li>
      <li><strong>2001</strong> - By the end of the yesar, the show had the highest ratings of any children's series on television.</li>
      <li><strong>2002</strong> - By May the show's total viewership reached more than 61 million, 20 million of which were aged 18 to 49.</li>
      <li><strong>2004</strong> - The SpongeBob SquarePants Movie which was released.</li>
      <li><strong>2011</strong> - SpongeBob Comics were released</li>
      <li><strong>2017</strong> - In March that he had been diagnosed with amyotrophic lateral sclerosis.</li>
      <li><strong>2018</strong> - Hillenburg died at his home on November 26 at the age of 57. The immediate cause of his death was heart failure due to the ALS disease.</li>
      <h3>
        If you would like to read more depth about Stephen Hillenburg, you should read his
        <a id="tribute-link" href="https://en.wikipedia.org/wiki/Stephen_Hillenburg#" target="_blank">Wikipedia page</a>.
      </h3>
  </section>
</main>
              
            
!

CSS

              
                #main {
}
body {
  text-align: center;
}
h1 {
  font-size: 40px;
}
p {
  font-size: 22.5px;
}

img {
  display: block;
  margin-left: auto;
  margin-right: left;
  width: 100%;
  border-radius: 20px;
  max-width: 100%;
}

#img-div {
  padding: 20px;
  background: lightgrey;
  border-radius: 25px;
}

#img-caption {
  margin: 15px 0 2px 0;
  font-size: 17px;
}
#headline {
  font-size: 25px;
  text-align: center;
  margin: 20px auto 25px;
}
ul {
  text-align: left;
  margin: 0 auto 50px auto;
  font-size: 18px;
}
li {
  margin: 16px 0;
}
a {
  color: #2196f3;
}
a:visited {
  color: #7b1fa2;
}

              
            
!

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