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

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

              
                <html>
  <head>
    <title>
    </title>
  </head>
  <body>
  <main id ="main">
    <h1 id ="title"> Martin Luther </h1><hr>
    <figure id = "img-div">
      <img src=" https://cdn.britannica.com/s:740x416,c:crop/59/19559-050-C709E91F/Martin-Luther.jpg
          " alt=" statue of martin luther " id="image"/>
      <figcaption id= "img-caption">
         Martin Luther.
© traveler1116—Digital Vision/Getty Images
      </figcaption>
      
      
    </figure><hr>
    <section id="tribute-info">
      <ul>
      <p> <strong>November 10, 1483</strong><br> <li>Martin Luther is born in Eisleben, Saxony (now in Germany)</li>.</p>
      <p><strong>1502–05</strong><br>
        <li>Luther receives a liberal arts degree and then a master’s degree. He begins law school.</li></p>
      
      <p><strong>July 17, 1505</strong><br>
<li>Luther abruptly abandons the study of law and enters a monastery after a violent thunderstorm frightens him so badly that he vows to become a monk if he survives. </p>
      <p><strong>1512</strong><br>
<li>Luther receives his doctorate and becomes a professor of biblical studies. He begins to publish his writings on religion.</p>
      <p><strong>1517</strong><br>
<li>Luther finds out that another religious leader has supposedly told followers that buying an indulgence (in other words, making a payment to the church) causes God to forgive a person’s sins. Luther writes the Ninety-five Theses, a document that explains why indulgences are wrong. Luther posts the Ninety-five Theses on the door of the Schlosskirche (Castle Church), Wittenberg, on October 31. This event will come to be considered the beginning of the Protestant Reformation—the split of Western Christianity between Roman Catholics and Protestants.</p>
      <p><strong>1518</strong><br>
<li>Luther becomes convinced that salvation, or reconciliation with God, is entirely a work of divine grace—even though traditional church teachings hold that salvation is achieved through God and through the good works that people do. On November 9 the pope issues a document about indulgences, but Luther says the pope is not the only person who can explain what the Bible says. </p>
      <p><strong>1521</strong><br><li>Luther appears at an official meeting called the Diet of Worms in Germany</p>
      <p> <strong>1546</strong><br><li>Luther dies after a long journey to Eisleben, the town where he was born.</p>
      

      </ul>
    </section>
    
    <footer> For more information on Martin Luther view<a href =" https://www.britannica.com/summary/Martin-Luther-Timeline" target = "_blank" id="tribute-link"> Britannica</a>
      
    </footer>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  </main>
  </body>
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
</html>
              
            
!

CSS

              
                body{
  background-color: white;
  font-family:font-family: "Cormorant Garamond", serif;

  
  text-align:center;
  
}

h1{ position:relative;
  background-color:grey;
  padding-top:30px;
  padding-bottom:30px;
  color: black ;
  font-text:font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  font-size: 50px
  
}

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

section{
  border: 2px solid black;
  background-color:lightblue;
  font-size:20px;
  text-align:left;
   padding-top: 50px;
  padding-right: 110px;
  padding-bottom: 50px;
  padding-left: 80px;
  line-height:1.6;
}

footer{
  margin: 0 auto;
  background-color:white;
  font-size: 25px;
  padding-top: 45px;
  padding-bottom:15px;
  font-weight: 45px;
}
              
            
!

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