Pen Settings



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


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.


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.


                <main id="main">
  <h1 id="title">Joseph Petrosino</h1>
  <hr style="width:400px">
  <p><em>- A pioneer in the fight against organized crime -</em>
  <hr style="width:400px">
  <figure id="img-div">
    <img id="image" class= "black-border" src="" alt="An old black and white photo of Josef Petrosini in his police uniform with a ruminative look">
    <figcaption id="img-caption">Joseph Petrosino in his NYPD uniform</figcaption>
    <article id="tribute-info">
          <li>Giuseppe "Joseph" Petrosino was born August 30, 1860, in Padula, a comune in the south of Italy.</li>
          <li>At a young age he immigrated with his family to the United States</li>
          <li>He was adopted by a judge after his grandfather died in an accident</li>
          <li>In 1883 he became the first Italian in the NYPD, where he developed a good relationship with Theodore Roosevelt</li>
          <li>In 1895 he became the leader of the Homicide Division</li>
          <li>In 1908 he became the head of the "Italian Squad", a special unit in the fight against organized crime</li>
          <li>In particular his investigations against the "Black Hand", the first mafia in New York, are vitally important</li>
          <li>In 1909 he got murdered on an investigation in sicily, where he was lured in a trap by member of the Black Hand</li>
          <li>To his funeral more than 200000 people showed up to pay respect to his police work</li>
<footer id="footnote">
  <p>If you are interested, here you can read <a id="tribute-link" href="" target="_blank">more about Joseph Petrosino.</a></p> 
  <p>If you want to know more about the beginning of the mafia in New York, there is also <a href="" target="_blank">more information about the Black Hand.</a></p></footer>


                @import url('');
body {
  text-align: center;
#main {
  font-family: Oswald, sans-serif;
#title {
  font-size: 50px;
#image {
  width: 400px;
  max-width: 100%;
  max-height: auto;
  display: block;
  margin: auto;
.black-border {
  border-color: black;
  border-width: 5px;
  border-style: solid;
  border-radius: 10%;
#img-caption {
  font-size: 14px;
#tribute-info {
  line-height: 40px;
  display: inline-block;
  text-align: left;
  border: 1px solid black;
  border-radius: 10px;
  margin: 5px;
  padding: 5px 10px;
  background-color: rgba(45, 45, 45, 0.05);
#footnote {
  font-size: 20px;



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