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

              
                
  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
 
  <header>
    <h1 id="title">Tenacious D</h1>
    <p> Greatest page in the world, but this is only a tribute...</p>
  </header>
  
  <main id="main">
    
    <figure id="img-div"> 
      <img 
        id="image"
        src="https://m.media-amazon.com/images/M/MV5BYWE5NTE0NjEtMjA3My00MzdjLWEzOGItMmI1NjU0MzcwZDY5XkEyXkFqcGdeQXVyMjU0MjE5OTY@._V1_.jpg" 
        alt="Jack Black and Kyle Gass as Tenacious D in a still from the song 'Tribute'">
      <figcaption id="img-caption">
      Jack Black (left) and Kyle Gass (right) in a still from the music video of "Tribute"
      </figcaption>
    </figure>
    
    <section id="tribute-info">
      <h2> Information about Tenacious D and the birth of the song, "Tribute"</h2>
      <ul>
        <li><strong>1986:</strong>Jack Black and Kyle Gass initially met in Los Angeles in 1986 at their teacher's house, both members of The Actors' Gang theater troupe and as enemies.</li>
        <li><strong>1989:</strong>The Actor's performed Tim Robbin's and Adam Simons play "Carnage" at the Edinburgh Fringe Festival at Edinburgh, Scotland. During this trip, Jack and Kyle became friends and bonded over music. Kyle played Guitar and Jack wanted to learn. Once they got back to Los Angeles, Jack payed for guitar lessons with what young musicians desire the most....greesey $1 Taco's from Jack In The Box.
        </li>
        <li><strong>1990:</strong>They wrote their first song called "Melissa" when Jack got dumped. It was not a comedic song, but it was the first step and "Tribute" came shortly after. When Jack was listening to the song "One" by Metalica, he mentioned to Kyle that this was "the best song in the world". Kyle replied they couldn't write the best song in the world. Jack refutes and says the could a "write a tribute". Three full days later, after many A-minor chords, the song was done and Kyle "knew the had something". Intially called "Responsive Chord", the duo rehearsed their comedy act.
        </li>
        <li><strong>1994:</strong>At Al's Bar in the Summer of 1994, the band played their first live performance of "Tribute", their only song at the time. The duo also allowed to the audience to vote for their name. The choices were, "Pets or Meat", "Balboa's Biblical Theater", "The Axe Lords featuring Gorgazons Mischief", and "Tenacious D", a basketball term describing a robust defensive positioning. Tenacious D didn't get many votes but according to Jack the " forced it through".
        </li>
        <li><strong>1995-1996:</strong>Using their momentum, they performed multiple headline shows thru out Los Angeles, and  Maynard James Keenan, the lead singer from Tool, invited them to tour with them. 
        </li>
        <li><strong>1997:</strong>Tenacious D had become a household name in the Los Angeles music scene and performed residencies at The Viper Inn. During the bands time there the band started writing a demo with the song "Tribute" and even developed a friendship with David Grohl. The demo was recorded with Andrew Grossm and distributed to various record companies. The Demo had their songs "Tribute", "Kyle quit the band", "Krishna", and "History".
        </li>
      </ul>    
      
    </section>   
  </main>
  
  <footer>
    For more information about Tenacious D, <a href="https://www.tenaciousd.com/" id="tribute-link" target="_blank"> click here for Tenacious D Real Website. </a>
  </footer>
              
            
!

CSS

              
                html {
  font-family: 'Stint Ultra Condensed';
  font-size: 18px;
}
header{
  background-color: white;
  border-radius: 20px;
  margin-left: 50px;
  margin-right: 50px;
}
body {
  font-size: 1.6rem;
  line-height: 1.5;
  text-align: center;
  margin: 0;
  background-color: #e9edf5;    
}
h1 {
  font-size: 4rem;
}
figure {
  background-color: white;
  border-radius: 20px;
  margin: 50px;
  }
img{
  max-width: 100%;
  display: block;
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
}
#tribute-info {
  background-color: white;
  border-radius: 20px;
  margin-left: 50px;
  margin-right: 50px;
}
h2{
  padding-top: 5%;
}
ul {
  text-align: left;
  padding: 0 15% 5%;
  line-height: 1.15;
}
              
            
!

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