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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


<html lang="en">
  <!-- basic.html -->
    <title>Tribute Page</title>
    <div id="main">
      <div id="title">
        <h1>JK Rowling</h1>
        <p>Author of the Harry Potter series</p>
        <div id= "img-div">
      <img src="" alt="portrait of JK Rowling" id="image">
        JK Rowling became the first billionaire author
   <div id="tribute-info">
          <h2>A timeline of JK Rowling's life</h2>
            <li>Born July 31, 1965 in Yate, Gloucestershire, UK</li>
            <li>1986- Graduated from University of Exeter with a BA in French and Classics</li>
            <li>1993-daughter Jessica was born</li>
            <li>1997-Philosopher's Stone was published</li>
            <li>1998-The Chamber of Secrets was published</li>
            <li>1999-Prizoner or Azkaban was published</li>
            <li>2000-The Goblet of Fire was published</li>
            <li>2001-Married Neil Murray</li>
            <li>2003-Order of the Phoenix was publised</li>
            <li>2003-Son David was born</li>
            <li>2005-The Half-Blood Prince was published</li>
            <li>2007-The Deathly Hallows was published</li>
        <div id="tribute-link">
          <p>For more information, visit her website</p>
          <a href="" target="_blank" id="tribute-link"></a>


body {
  background-image: url(

h1 {
  font-size: 4em;
  font-family: monospace;
  text-align: center;
  text-shadow: 2px 2px #b7610b;
  letter-spacing: 0.5em;

p {
  font-size: 1.4em;
  font-family: sans-serif;
  text-align: center;

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: auto;
  border-color: white;
  border-width: 0.55em;
  border-style: groove;

figcaption {
  font-Family: monospace;
  text-align: center;
  padding: 0.7em;

h2 {
  text-align: center;
  font-family: sans-serif;
  padding: 1.3em;
  text-decoration: underline overline;

li {
  padding: 1.0em; 
  font-family: monospace;
  font-size: 1.3em;
  text-align: center;
  list-style: inside;

#tribute-link {
  text-align: center;
  padding: 0.8em;



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