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">
<body id="main">
   <div class="container">
    <div class="box1">
     <nav  id="title">
     <h1>Pac's Life</h1>
       <h2>From the Ghetto to Rap legend</h2>
    </nav>
       <figure id="img-div">
 <img id="image" src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRWz8VZAcvkRV834YSjZ1p7hCHle50QprJK4gBMnbgqi_lBICTM&usqp=CAU"alt="Footage of Tupac giving an interview">
<br>
<figcaption id="img-caption">
"MTV's interview with Tupac Shakure"
</figcaption>
       </figure>
    <div id="tribute-info">
     <p>Tupac Amaru Shakur (1971-1996) is one of the most popular artists in history, with over 75 million records sold worldwide. He was a rapper, actor, activist, thug, Poet, rebel, visionary, though his recording career lasted just five years. More than half of his eleven studio albums sold over three million copies in the U.S. and both 1996’s All Eyez on Me and his Greatest Hits collection have been certified diamond, surpassing the ten-million mark and placing them among the top-selling albums of all time.</p>
      <ul>
        <li>At the age of 17 he hooked up with the popular Bay Area rap crew Digital Underground, starting as a roadie and back-up dancer, and eventually working his way up to contributing a verse to the 1991 hit “Same Song.”</li>
    <br>
  <li>Tupac was signed to Interscope Records by Tom Whalley (who still oversees his estate today), and his first solo album, 2Pacalypse Now, arrived a few months later, generating both acclaim and controversy.</li>
    <br>
   <li>In 1993, Strictly 4 My N.I.G.G.A.Z., including the hits “Keep Ya Head Up” and “I Get Around,” became his first platinum release.
  Things got even bigger in 1996 with All Eyez on Me, Tupac’s best-selling album, which spawned five singles, including two Number One hits, “California Love” and “How Do U Want It.” At the height of his phenomenal success, Tupac’s life was cut short on September 13, 1996 when he was murdered in a drive-by shooting in Las Vegas at the age of 25.</li>
    <br>
  <li>Nearly a decade after his final album, appreciation has only deepened for the lasting impact of Tupac’s music. His story was told in 2003’s Academy Award-nominated documentary Tupac: Resurrection. The Library of Congress added “Dear Mama” to the National Recording Registry in 2009, and even the <u>Vatican featured “Changes”</u> on its official playlist.</li>
    </ul>
      <div class="container2"><p>For more information about Tupac Shakure please click on the link <a  id="tribute-link" target="_blank"  href="https://2pac.com/us">2pac.com/us.</a></p>
      </div>
</figure>
    </div>
  </div>
 </div
</body>
</html>
  
<!--# { -520px -500px 500px -600px;;
800px 700px 800px 700px;
    position: relative;
    font-family: sans-serif;
    font-size: 30px;
    color: red;
    left: 500px;
    bottom: 120px; 180px 20px 10px 20px
   }

  top: 350px;
  left: 190px;

  background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRWz8VZAcvkRV834YSjZ1p7hCHle50QprJK4gBMnbgqi_lBICTM&usqp=CAU");
  background-repeat: no-repeat;
  background-position: 50% 30%;
  background-size: 33%;-->

              
            
!

CSS

              
                <!DOCTYPE html>
<style lang="en">
#main {
  margin: 0px;     
} 
#title {
  font-style: italic;
  font-size: 40px;
  text-align: center;
  line-height: 1.5em;
}
#tribute-info{
  font-family: serif, tahoma;
  line-height: 1.6em;
  font-size: 16px;
}
.container{
  text-align: left;
}
.container2{
  font-size: 18px;
  font-weight: bold;
  margin: 0px 50px;
  font-style: italic;
}
a{
  color: blue;
  text-decoration: none;
}
a:hover{
  color: red;
}
.box1 {
  width: 70%;
  box-shadow: 0 40px 20px;
  border: 5px black solid;
  padding: 10px;
  margin: auto;
}
#img-div{
  position: relative;
  justify-content: center;
  text-align: center;
}
#image {
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}
#img-caption{
  margin-top: -10px;
}
</style>

              
            
!

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