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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                <main id="main">
  <h1 id="title">Quincy Larson</h1>
  <p>Founder of freeCodeCamp.org, a community of millions of people who learn to code together. - both on online platform and in more than 2,000 cities around the world.</p>
  <figure id="img-div">
    <img id="image"
      src="https://www.freecodecamp.org/news/content/images/size/w2000/2019/07/Quincy_Larson.jpeg"
      alt="Founder of Free Code Camp">
  <figcaption id="img-caption">
      Quincy Larson, Founder of FreeCodeCamp
  </figcaption>
  </figure>
<section id="tribute-info">
  <!-- All info I retrieved about Quincy Larson, is from https://en.wikipedia.org/wiki/FreeCodeCamp#Quincy_Larson-->
  <h3 id="headline">Here's a time line of the founders journey to FreeCodeCamp:</h3>
    <ul>
      <li>
        <strong>2014</strong> - FreeCodeCamp, Inc was launched in and incorporated.
      </li>
      <li>
        <strong>2015</strong> - 2015 podcast interview, Quincy summarized his motivation for creating freeCodeCamp as follows:

FreeCodeCamp is my effort to correct the extremely inefficient and circuitous way I learned to code. I'm committing my career and the rest of my life towards making this process as efficient and painless as possible. [...] All those things that made learning to code a nightmare to me are things that we are trying to fix with freeCodeCamp.
      </li>
      <li>
        <strong>2016</strong> - The curriculum for FreeCodeCamp was updated to rely less on outside material, removal of the unconventional section names, and switch focus from AngularJS to React.js as the front-end library of choice. There were a number of additions to the coursework, including D3.js and Sass, which brought the total time estimate to 2,080 hours and two more certificates, data visualization, and back-end.
      </li>      
  </ul>
<blockquote
      cite="https://www.freecodecamp.org/news/please-do-learn-to-code-233597dd141c/"
    >
  <p>"Learn to Code – Because the Nature of Work has Fundamentally Changed
Today, it is no longer humans who do most of the work — it’s machines".</p>
  <p><cite>-- Quincy Larson</cite></p>
</blockquote>
  <h3>
      If you have time, you should read more about this incredible human being on his
      <a
        id="tribute-link"
        href="https://en.wikipedia.org/wiki/FreeCodeCamp#Quincy_Larson"
        target="_blank"
        >Wikipedia entry</a
      >.
    </h3>
    </section>
</main>

              
            
!

CSS

              
                html {
 font-size: 10px;
}

body {
  /* Native font stack https://getbootstrap.com/docs/4.2/content/reboot/#native-font-stack */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  text-align: center;
  color: #333;
  margin: 0;
}

h1 {
  font-size: 4rem;
  margin-bottom: 0;
}

@media (max-width: 460px) {
  h1 {
    font-size: 3.5rem;
    line-height: 1.2;
  }
}

h2 {
  font-size: 3.25rem;
}

a {
  color: #477ca7;
}

a:visited {
  color: #74638f;
}

#main {
  margin: 30px 8px;
  padding: 15px;
  border-radius: 5px;
  background: #eee;
}

@media (max-width: 460px) {
  #main {
    margin: 0;
  }
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  margin: 0 auto;
}

#img-div {
  background: white;
  padding: 10px;
  margin: 0;
}

#img-caption {
  margin: 15px 0 5px 0;
}

@media (max-width: 460px) {
  #img-caption {
    font-size: 1.4rem;
  }
}

#headline {
  margin: 50px 0;
  text-align: center;
}

ul {
  max-width: 550px;
  margin: 0 auto 50px auto;
  text-align: left;
  line-height: 1.6;
}

li {
  margin: 16px 0;
}

blockquote {
  font-style: italic;
  max-width: 545px;
  margin: 0 auto 50px auto;
  text-align: left;
}

              
            
!

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