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>

<body>
  <div id="main">
    <h1 id="title">
      Led Zeppelin
    </h1>
    <p id="subtitle">One of the greatest Rock & Roll Band
      </p>
    <div id="img-div" class="center">
      
      <img src="https://static.dw.com/image/45095539_303.jpg" id="image" alt="Picture of members of Led Zeppelin together"/>
      
      <p id="img-caption">Led Zeppelin, a rock band from London, United Kingdom (1968)</p>
    </div>
  <div id="about-container" class="center" > 
      <p id="tribute-info">Led Zeppelin were an English rock band formed in London in 1968. The group consisted of vocalist Robert Plant, guitarist Jimmy Page, bassist/keyboardist John Paul Jones, and drummer John Bonham. With their heavy, guitar-driven sound, they are regularly cited as one of the progenitors of heavy metal, although their style drew from a variety of influences, including blues and folk music. The band have been credited with majorly impacting the nature of the music industry, particularly in the development of album-orientated rock (AOR) and stadium rock. Many critics consider Led Zeppelin one of the most successful, innovative, and influential rock groups in history.
<br>
<br>
After changing their name from the New Yardbirds, Led Zeppelin signed a deal with Atlantic Records that afforded them considerable artistic freedom. Although the group were initially unpopular with critics, they achieved significant commercial success with eight studio albums released over ten years, from Led Zeppelin (1969) to In Through the Out Door (1979). Their untitled fourth studio album, commonly known as Led Zeppelin IV (1971), became one of the best-selling albums in history. It featured the song "Stairway to Heaven", which has come to be among the most popular and influential works in rock music, and helped to secure the group's popularity.<br><br>Learn more about Led Zeppelin from <span id="wiki-link"><a href="https://en.wikipedia.org/wiki/Led_Zeppelin" target="_blank" id="tribute-link">Wikipedia</a></span>.</p>
    </div>
  </div>
</body>
</html>
              
            
!

CSS

              
                /* Default Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Syne Mono', monospace;
  text-decoration: none;
  outline: none;
}

:root {
  --primary-color: rgb(39, 39, 39);
  --secondary-color: #494444;
  --grey-color: #272626;
  --light-grey: #c0bfbf;
  --white-color: #eddcd2;
}

html {
  font-size: 62.5%;
}

body {
  background-color: var(--secondary-color);
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

h1{
  color: var(--white-colors)
}

p{
  color: var(--white-color);
}
/* End of Default Styles */

/* Header */
#title{
  text-align: center;
  font-size: 5rem;
  text-shadow: 0 0.5rem 0.5rem var(--grey-color)
}
#subtitle{
  text-align: center;
  font-size: 1.7rem;
    margin-bottom: 1rem;
  text-shadow: 0 0.5rem 0.5rem var(--grey-color)
}
#img-div{
  background-color: var(--grey-color);
  width: 95%;
  margin: 0 auto;
  margin-bottom: 1rem;
  box-shadow: 0 1.2rem 2rem #222;
  padding: 1.5rem;
  overflow: hidden;
}
#image{
  width:80%;
  margin-bottom: 2rem;
  max-width: 80%;
}
#img-caption{
  font-size: 1.8rem;
  font-family: 'Volkorn', serif;
}
#about-container{
  width:95%;
  margin: 0 auto;
  margin: 2rem;
}
#tribute-info{
  font-size: 1.7rem;
  font-family: 'Volkorn', serif;
}
#tribute-link{
  color: #000;
  font-weight: 700;
}
#wiki-link{
  margin-left: 0.5rem;
  color: var(--light-grey);
  border-bottom: 0.1rem solid var(--light-grey);
}
/* End of Header */
              
            
!

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