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

              
                <main id="main">
  <h1 id="title">Jacqueline Kennedy Onassis</h1>
  <figure id="img-div">
    <img
      id="image"
      src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Mrs_Kennedy_in_the_Diplomatic_Reception_Room_cropped.jpg/440px-Mrs_Kennedy_in_the_Diplomatic_Reception_Room_cropped.jpg"
      alt="Kennedy in the Diplomatic Reception Room, December 1961"
    />
    <figcaption id="img-caption">
      Jacqueline Kennedy Onassis served as first lady of the United States from 1961 to 1963, as the wife of President John F. Kennedy.
    </figcaption>
  </figure>
 
 
  <section id="tribute-info">
    <h3 id="headline">Timeline Jacqueline Kennedy Onassis Major Life Events:</h3>
    <ul>
      <li><strong>1929</strong> -Jacqueline Lee Bouvier was born in Southampton, NY</li>
      <li>
        <strong>1933</strong> - Sister Caroline Lee Bouvier is born
      </li>
      <li>
        <strong>1947</strong> - Enters Vassar College in Poughkeepsie, NY
      </li>
      <li><strong>1953</strong> - Marries John F. Kennedy the morning of September 12</li>
      <li><strong>1960</strong> - John F. Kennedy is elected President of the United States </li>
      <li><strong>1963</strong> - John F. Kennedy Jr. is assassinated</li>
      <li><strong>1988</strong> - Jackie's first granddaughter, Rose, is born </li>
      <li><strong>1994</strong> - Jackie dies May 19 and is burried in Arlington National Cemetary next to JFK</li>
       
    </ul>

  
    
    <h3>
      To read more about the incredible life of Jacqueline Kennedy Onassis, please visit her
      <a
        id="tribute-link"
        href="https://en.wikipedia.org/wiki/Jacqueline_Kennedy_Onassis"
        target="_blank"
        >Wikipedia entry</a
      >.
    </h3>
  </section>
</main>


              
            
!

CSS

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

              
            
!

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