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>

<!-- 

Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->
<style>
  html {
    background-color: yellow;
    color: dark purple;
    text-align: center;
    img-align: center;
  }

  #title {
    font-size: 50px;
    color: purple;
  }

  .responsive-img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
  }

  #image {
    margin-left: auto;
    margin-right: auto;
  }
</style>
<html>
<main id="main">
  <header>
    <h1 id="title"><u>Kobe Bryant</u></h1>
    <h2>The man with insane dedication in his whole life</h2>
  </header>
  <div id="img-div">
    <img id="image" class="responsive-img" src="https://upload.wikimedia.org/wikipedia/commons/8/82/Kobe_Bryant_2015.jpg" alt="NBA Legend-Kobe was smiling like there is no tomorrow" style="max-height:722px;">
    <h3>
      <figcaption id="img-caption">Kobe Bryant while wearing a LA Lakers jersey in the NBA</figcaption>
    </h3>
  </div>
  <section id="tribute-info">
    <h4>
      <ul>
        <li><strong>1978</strong> - A legend was born and named as Kobe Bean Bryant</li>
        <li><strong>1996</strong> - Was drafted by the Los Angeles Lakers</li>
        <li><strong>1997</strong> - Won the NBA annual dunk contest in the All Star Game</li>
        <li><strong>1998</strong> - First All Star appearance</strong>
        <li><strong>2000-2002</strong> - Won a two straight championship with his partner, Shaquille O'Neal</li>
        <li><strong>2008</strong> - Won his first Olympics BAsketball Gold Medal in Beijing</li>
        <li><strong>2016</strong> - Had his last NBA game match with Utah Jazz and score 60 points in his last fight</li>
        <li><strong>2020</strong> - Died during a helicopter crash.The NBA teams pays tribute to him by having either an 8 second violation or a 24 second violation as Kobe's jersey numbers were No.8 and No.24</li>
      </ul>
      <p>"I don't want to become the next Michael Jordan, I only want to be Kobe Bryant."
        -by Kobe Bryant</p>
    </h4>
    <h2>If you have extra time and want to know more about Kobe Bryant's career highlights and stories u can go <a id="tribute-link" href="https://en.wikipedia.org/wiki/Kobe_Bryant" target="_blank">here</a></h2>
</main>

</html>
              
            
!

CSS

              
                <style>
#title{font-size:50px;}
</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