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

              
                 <!--Head section of the document-->
   <head>
    <title id="title">Jesus Christ tribute page</title>
   </head>

   <main id="main">
  <body>
   <h1 class="text-font">Jesus Christ</h1>
    <div>
      <p class="text-font" style="font-size: 1.2em"><em>The Son of God</em></p>
     </div>
    
    <figure id="img-div">
    <img id="image" src="https://c.ndtvimg.com/2021-04/nsi7ntq8_good-friday_625x300_01_April_21.jpg" alt="Cross on which Jesus was crucified">
      <figcaption id="img-caption" class="text-center">
        <p>Image depicting a cross on which Jesus Christ would have been crucified.</p>
      </figcaption>
    </figure>
    
    <!--Section containing the info about the tribute-->
    <section id="tribute-info" class="text-font">
   <h2>The story of Jesus' life</h2>
      <h3>Early life</h3>
      <p>He's home was in the town of Nazareth in galilee. He lived with his family, consisting of his mother, Mary, his father Joseph and his brothers: James, Joses, Judas and Simon</p>
      <h3>Baptism and Temptation</h3>
      <p>He was baptized by John the Baptist, who as he came out of the water saw the holy spirit descending to him like a dove and heard a voice from heaven declaring him top be the Son of God </p>
      <h3>Public Ministry</h3>
      <p>Jesus conducted a successful ministry where he spread the word of God. He preached his message orally. He healed people and exorcised them of demons. He was later killed because of his ministry when he went to Jerusalem.</p>
      <h3>Disciples</h3>
      <p>He had twelve apostles. The first four of which were fishermen. His disciples were: Peter, James, John, Andrew, Bartholomew, James, Judas, Jude, Matthew, Philip, Simon the Zealot, Thomas.</p>
      </section>
    
    <figure>
      <blockquote cite="https://quod.lib.umich.edu/cgi/k/kjv/kjv-idx?type=DIV2&byte=4678801">
        <p>"Our Father which art in heaven, Hallowed be thy name. Thy kingdom come. Thy will be done, as in heaven, so in earth.
Give us day by day our daily bread.
And forgive us our sins; for we also forgive every one that is indebted to us. And lead us not into temptation; but deliver us from evil."</p>
        <cite>-- The Lord's prayer as said by Jesus Christ</cite>
      </blockquote>
      
      
    </figure>
    <!--Section containing link to read more about the tribute subject-->
    <section class="text-center text-font text-size">
      <p><strong>Follow this <a id="tribute-link" href="https://www.christianity.com/jesus/" target="_blank">link</a> for more information about Jesus Christ.</strong></p>
    </section>
      
    </body>
   </main>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
              
            
!

CSS

              
                
html
{
  font-size: 10px;
}

body
{
  text-align: center;
  font-size: 1.2em;
  line-height: 1.5;
}

#main{
  background-color: lightgrey;
  padding-bottom: 5px;
  border-radius: 5px;
  margin: 5px;
}

h1
{
  font-size: 4rem;
  padding: 20px;
}
h3,h2,h1{
  color: darkred;
}

#tribute-info
{
  max-width: 400px;
  font-size: 1.5rem;
  margin: 0 auto 0 auto;
}

.text-font{
  font-family: verdana,monospace;
}
.text-size
{
  font-size: 1.1em;
}


#image
{
  display: block;
  max-width: 100%;
  border-radius: 5px;
  margin: 0 auto;
  height: auto;
}

@media (max-width: 460px){
  #main{
   margin: 0; 
  } 
  #img-caption{
    font-size: 10px;
  }
  #tribute-info{
    font-size: 1rem;
    max-width: 350px;
  }
  h1{
    font-size: 3.5rem;
  }
}

#img-div{
  background-color: white;
  padding: 20px 0 20px 0;
  margin: 0 50px 0 50px; 
  border-radius: 5px;
}

blockquote{
  font-style: italic;
  max-width: 500px;
  margin: 0 auto 0 auto;
}
              
            
!

JS

              
                
              
            
!
999px

Console