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

              
                <main id="main">
	<h1 id="title">Steve Jobs</h1>
	<p id="subtitle">The genius behind Apple</p>
	<figure id="img-div">
		<img src="https://i.blogs.es/f7b0ed/steve-jobs/1366_2000.jpg" id="image" />
		<figcaption id="img-caption">Steve Jobs in a resting position looking at the camera with a smiling face.</figcaption>
	</figure>
	<section id="tribute-info">
		<p>This is Steve Jobs. One of the founders of Apple, the popular tech company that is worth over $1B nowadays. He is widely considered as one of the best tech designers of all time</p>

		<li>He was born in San Francisco, California on February 24, 1955</li>
		<li>He is also a Co-Founder of the popular animation studio, Pixar</li>
		<li>Jobs and Steve Wozniak co-founded Apple in 1976</li>

	</section>
	<footer><strong>If you'd like to learn more about him, click <a target="_blank" id="tribute-link" href="https://en.wikipedia.org/wiki/Steve_Jobs">this link</a></strong>
		<footer>

</main>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
              
            
!

CSS

              
                body {
  font-family: system-ui, Roboto, Helvetica;
  background: #ffffff;
  color: black;
  text-align: center;
}
#img-div {
  
  border-radius: 5px;
  background-color: hsl(136 0% 50%);
  color: white;
  display: grid;
  justify-content: center;
  align-content: center;
  grid-template-columns: 1fr;
  grid-template-rows: 10px auto 1fr auto;
  grid-gap: 2vh;
  grid-template-areas:
    "title"
    "subtitle"
    "image"
    "caption"
    "tribute";
}

#title {
  grid-area: title;
  font-size: 80px;
}

#subtitle {
  grid-area: subtitle;
  font-size: 35px;
}

#image {
  grid-area: image;
  max-width: 100%;
  width: -var()
  display: block;
  height: auto;
  margin: 0 auto;
}

#img-caption {
  grid-area: caption;
  font-size: 20px;
  margin: 0px 0px 10px 0px;
}

#tribute-info {
  grid-area: tribute;
  font-size: 30px;
  padding: 5vh 4vw 0px 4vw;
}

li {
  font-size: 20px;
  padding-top:10px;
}

footer {
  margin: 50px 0px 0px 0px;
  font-size: 15px;
}

              
            
!

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