Pen Settings



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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


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


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.


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.


                <script src=""></script>

  <title>Katherine Goble Johnson Tribute Page</title>

<body id="main">
<h1 id="title">Katherine Goble Johnson</h1>
<p>The first African American woman to work as a NASA scientist.</p>
  <div id="img-div">
    <img id="image" src=",h_1349,w_2400,x_0,y_149/f_auto,q_auto,w_1100/v1554746087/shape/mentalfloss/katherine_johnson_1983_1.jpg" alt="Image of mathematician Katherine Goble Johnson">
    <figcaption id="img-caption"><a href="" target="_blank">Courtesy of Wikimedia Commons</a></figcaption>
    <h2 id="tribute-info">A Timeline:</h2>
      <li><b>1918</b> - Born in White Sulphur Springs, West Virginia</li>
      <li><b>1939</b> - Married James Goble</li>
      <li><b>1959</b> - Remarried Jim Johnson U.S. Army Officer and Korean War Veteran</li>
      <li><b>1961</b> - Calculated the trajectory for Alan Shepard, the first American in space</li>
      <li><b>1962</b> - Verified John Glenn's navigation charts for his orbit around Earth 
      <li><b>1969</b> - Helps calculate trajectory for Apollo 11</li>
      <li><b>1986</b> - Johnson retires as an aerospace techonologist
      <li><b>2015</b> - Awarded the Presidential Medal of Freedom by President Barack Obama</li>
      <li><b>2016</b> - Langley Research Center dedicates a new 40,000 sq foot building in her honor
    <p>Learn more about the amazing accomplishments of <a id="tribute-link" href="" target="_blank">Katherine G. Johnson on Wikipedia</a>.</p>



                #main {
  display: flex;
  flex-direction: column;
  margin: auto;
  align-items: center;
  font-family: sans-serif;
  width: 60%;
  background: #0b3d91;

h2, p, ul {
  color: white;

h1, a {
  color: #fc3d21;

h1 {
  text-transform: uppercase;
  letter-spacing: 1px;

#image {
  display: block;
  max-width: 80%;
  margin: auto;
  border-radius: 30px;


#img-caption {
  text-align: center;
  padding: 10px;

h2, p {
  text-align: center;

ul {
  width: 55%;
  line-height: 2;
  margin: auto;

@media (max-width: 500px) {
  #main {
    width: 90%;
  h1 {
    font-size: 12px;
  h2 {
    font-size: 11px;
  p, ul {
    font-size: 10px;
  ul {
    width: 80%;

  #image {
    width: 65%;


                // !! 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. 

  - Select the project you would 
    like to complete from the dropdown 
  - Click the "RUN TESTS" button to
    run the tests against the blank 
  - 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.