Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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>
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Permanent+Marker&family=Roboto:wght@300&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Roboto:wght@300&display=swap" rel="stylesheet">

<main id="main">
 
  <header id="header">
  <h1 id="title"><strong>Thursday's Child</strong></h1>
  <p id="tribute-info"><strong>A Tribute Page to David Bowie</strong></p>
   
  </header>
  <div id="img-div">
  <img id="image" src="http://static.boredpanda.com/blog/wp-content/uploads/2016/01/david-bowie-last-photoshoot-jimmy-king-thumb.jpg" alt="David Bowie laughing, wearing a grey suit and a hat">
 
<figure>
  <figcaption id="img-caption"><strong>David Bowie on Black Star photoshoot -which would be his last- on his birthday, 2016.</strong>
  </figcaption>
</figure>
  </div>
  <p>David Robert Jones, known as David Bowie, born January 8th, 1947 is probably the most versatile, creative, bold and missed musicians of all times.</p>
  <p>He performed in the greatest world stages, with the greates musicians of his time -David Gilmour, The Cure, just to mention a few- but he was also humble enough to talk to a five year old ans sing his favourite song.
    <p>You can find more information
      <a> <a id="tribute-link" a target="_blank" href="https://en.wikipedia.org/wiki/David_Bowie">about David Bowie, his life and work, here.
      </a>
    </p>
     
</main>

              
            
!

CSS

              
                /*Base Formatting*/

  #title {
    color: #f9f1f1;
    font-family: permanent marker;
    font-weight: bold;
    size: 48px;
    text-align: center;
    position: absolute;
    bottom: 300px;  
    left: 250px;
    
  }
#header {
    background-color: #000000;
  
  background-position: center;
  background-repeat: no-repeat;
  height: 250px;
  
}
  #tribute-info {
  color:#FAF0E6;
   font-family: roboto;
    font-size: 24px;
    text-align: center;
    position: absolute;
    bottom: 250px;  
    left: 250px;
    
   
  }
  div {
  color: #480f53;
  font-family: roboto;
  }
  p {
  color: black;
  font-family: roboto;
  font-size: 20px;
  }
  #image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
    border: solid black 2px;
    border-radius: 1rem;
    
  }


              
            
!

JS

              
                
              
            
!
999px

Console