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>

<!DOCTYPE html>

<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="style.css">
    <title>My Tribute Page</title>
</head>

<body id="main">

    <header>
    <!-- Title Section -->

        <section id="title">
            <h1>Essential Oils</h1>
            <h3 id="tribute-info">Healing Oils</h3>
            <div id="img-div">
              <img src="https://images.unsplash.com/photo-1616154996598-82f1c2496b76?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1534&q=80" id="image"/ alt="Astronomer and Mathmatician Muhammad ibn Musa Al-khwarizmi">
              <div id="img-caption">
              <p for="image" id="image-label">
                  <em>Nicolaus Copernicus (19 February 1473 – 24 May 1543) was a Renaissance-era mathematician, astronomer, and Catholic canon who formulated a model<br> of the universe that placed the Sun rather than Earth at the center of the universe. </em>
                </p>
              </div>
            </div>
        </section>

    <!-- End Title Section -->
    </header>

    <main>
    <!-- Tribute Info Section -->

        <div id="tribute-info-section">
          <article id="tribute-info">
            <h2>Here's a paragraph about Nicolaus Copernicus life:</h2>
       <p>In all likelihood, Copernicus developed his model independently of Aristarchus of Samos, an ancient Greek astronomer who had formulated such a model some eighteen centuries earlier.

The publication of Copernicus' model in his book De revolutionibus orbium coelestium (On the Revolutions of the Celestial Spheres), just before his death in 1543, was a major event in the history of science, triggering the Copernican Revolution and making a pioneering contribution to the Scientific Revolution.

Copernicus was born and died in Royal Prussia, a region that had been part of the Kingdom of Poland since 1466. A polyglot and polymath, he obtained a doctorate in canon law and was a mathematician, astronomer, physician, classics scholar, translator, governor, diplomat, and economist. In 1517 he derived a quantity theory of money—a key concept in economics—and in 1519 he formulated an economic principle that later came to be called Gresham's law.</p>
          </article>
        </div>

    <!-- End Tribute Info Section -->
    </main>
    
    <footer>
    <!-- Footer Section -->    

        <div id="tribute-link-section">
          <secion>If you have time, you should read more about this incredible human being on his <a id="tribute-link" target="_blank" href="https://en.wikipedia.org/wiki/Nicolaus_Copernicus" >Wikipedia entry</a>.
          </section>
        </div>

    <!-- End Footer Section -->    
    </footer>


</body>
</html>

              
            
!

CSS

              
                #main {
  /* variables */
  --content-background: hsl(21, 40%, 96%);
  --contrast-background: hsl(21, 30%, 87%);
  
  margin: 15px;
  background-color: rgb(40,150,200);
  display: flex;
  flex-direction: column;
}

header {
  background-color: grey;
  border-radius: 10px;
}

h1 {
  color:aliceblue;
  background-color:black;
  margin-top: 10px;
}
h1:hover{
  background-color:aliceblue;
  color:slategray;
}
h2 {
  color: aliceblue;
  margin-top: 10px;
}
h3:hover{
  color:blue;
}
#title {
  text-align: center;
  padding: 10px;
}

main {
  background-color: var(--content-background, gray);
}

#tribute-info-section {
  background-color: rgb(20,30,100);
  color: gray;
  max-width: 800px;
  margin: auto;
  padding-top:20px;
  padding-bottom: 20px;
  padding-left:260px;
  padding-right:260px;
  border-radius: 10px;
}

footer {
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  background-color: var(--contrast-background, gray);
  border-radius: 10px;
}

#footer-content {
  margin: auto;
  max-width: 800px;
  text-align: center;
}

#image {
  max-width: 40%;
  height: auto;
  display: block;
  margin: auto;
}

#image-caption {
  text-align: center;
  font-size: 15px;
  padding: 0 5 0 5px;
}

#tribute-link:hover {
  color: hsl(220, 88%, 60%);
}

#tribute-link {
  color: hsl(220, 57%, 42%);
}
              
            
!

JS

              
                
              
            
!
999px

Console