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

              
                <head>
  <title>Aaliyah Tribute Page</title>
  <link
  href="https://fonts.googleapis.com/css?family=Poppins:400,400i,700,700i,900,900i&display=swap"
  rel="stylesheet"
  >
  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</head>

<body>
  <div id="main">
    <section id="intro">
      <div id="title">
        <h1>Aaliyah Dana Haughton</h1>
        <p>"The highest, most exalted one, the best."</p>
      </div>
      <div id="img-div">
        <img src="https://media.giphy.com/media/DC1dwujVgHw9a/giphy.gif" id="image" alt="R&B Singer Aaliyah Dana Haughton">
      </div>
              <figcaption id="img-caption">
          <em>Aaliyah married hip-hop and R&B, effortlessly and was known as the princess of R&B during her prime.</em>
        </figcaption>
    </section>

    <section id="tribute-info">
      <h2>Tribute Info Goes Here</h2>

      <p><strong>1979</strong> - Aaliyah is Born January 16th</p>

      <p><strong>1989</strong> - Appears on the TV Talent Show Star Search</p>

      <p><strong>1994</strong> - Releases her first studio album "Age Ain't Nothing But a Number"</p>

      <p><strong>1996</strong> - Releases her second album "One In a Million"</p>

      <p><strong>2000</strong> - Makes her film debut playing Trish O'Day in "Romeo Must Die"</p>

      <p><strong>2001</strong> - Releases her final self titled album "Aaliyah"</p>

      <p><strong>2001</strong> - On August 25, 2001 Aaliyah and members of her crew pass away after their plane crashed shortly after takeoff in the Bahamas.</p>

      <div id="quote">
        <h2>
          "I want people to remember me as a full on entertainer and a good person."<br>
          <em>- Aaliyah Dana Haughton</em>
        </h2>
      </div>

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

CSS

              
                html {
  font-size: 10px;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.5;
  text-align: center;
  color: #222;
  margin: 0;
}

#intro {
  background-color: #cccccc;
  display: block;
  margin: 0px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  box-shadow: 8px 8px 0px 0px #000000;
}

#img-caption {
  margin: 20px;
}

#tribute-info {
  background-color: #fafafa;
  display: block;
  padding: 20px;
}

#quote {
  display: block;
  border: solid 1px #000000;
  box-shadow: 5px 5px 0px 0px #000000;
  max-width: 900px;
  padding: 10px;
  margin: 0 auto;
}

h1 {
  font-size: 5rem;
  line-height: 1.2em;
  text-align: center;
}

h2 {
  font-size: 2.2rem;
  line-height: 1.2em;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.2em;
  text-align: center;
}

p {
  text-align: center;
}

              
            
!

JS

              
                // coded by @annalisacreate
const projectName = 'tribute-page';
localStorage.setItem('example_project', 'Tribute Page');

              
            
!
999px

Console