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

              
                <html>

  <main id="main">
    <div>
      <h1 id="title" class="title" align="center"><b>Sir Winston Churchill</b></h1>
   
    </div>
    <div id="img-div">
      <figcaption id="img-caption" class="caption"><b>Churchill smoking a cigar</b>
        </figcaption>
            <img id="image"<div id="image">
     
<img class="image_1"  src="https://cdn.images.express.co.uk/img/dynamic/1/590x/secondary/Churchill-statue-361548.jpg" alt="This image is of Winston Churchill with a cigar in his mouth" title="Sir Winston Churchill"  />
      
    </div>
    <div class="quotes">
      <h2 class="heading"> Quotes </h2>
      <b class="header"><i>Sir Winston Churchill</i></b>: "Criticism may not be agreeable, but it is necessary. It fulfils the same function as pain in the human body. It calls attention to an unhealthy state of things."
      
<p><b class="header"><i>Sir Winston Churchill</i></b>: "A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty."</p>
      
     <p><b class="header"><i>Sir Winston Churchill</i></b>: "Never give in - never, never, never, never, in nothing great or small, large or petty, never give in except to convictions of honour and good sense."</p>
      <p><b class="header"><i>Sir Winston Churchill</i></b>: "All the great things are simple, and many can be expressed in a single word: freedom, justice, honor, duty, mercy, hope."</p>
      <p><b class="header"><i>Sir Winston Churchill</i></b>: "Courage is what it takes to stand up and speak; courage is also what it takes to sit down and listen."</p>
    </div>
      </div>
  <div>
    <br>
    
    <p id="tribute-info" class="info"> Winston Churchill, in full Sir Winston Leonard Spencer Churchill, (born November 30, 1874, Blenheim Palace, Oxfordshire, England—died January 24, 1965, London),<br> British statesman, orator, and author who as prime minister (1940–45, 1951–55) rallied the British people during World War II and led his country from the brink of defeat to victory.
      <br>
      <br>
      After a sensational rise to prominence in national politics before World War I, Churchill acquired a reputation for erratic judgment in the war itself and in the decade that followed. Politically suspect in consequence, he was a lonely figure until his response to Adolf Hitler’s challenge brought him to leadership of a national coalition in 1940. With Franklin D. Roosevelt and Joseph Stalin he then shaped Allied strategy in World War II, and after the breakdown of the alliance he alerted the West to the expansionist threat of the Soviet Union. He led the Conservative Party back to office in 1951 and remained prime minister until 1955, when ill health forced his resignation.
    </p>
  </div>
  
  <a id="tribute-link" href="https://en.wikipedia.org/wiki/Winston_Churchil"
 target="_blank"> Wikipedia entry </a>
  
  </main>
</html>
              
            
!

CSS

              
                .title {
  margin: 20px 0px;
  background: #white;
  padding:15px 0px 20px 0px;
  border-radius:10px;
  font-family: courier;
  font-size:3.2em;
  line-height:1.2;
  margin:10px 5px;
  color:
}
.header {
  font-size: 16px;
}
body {
  
  background: radial-gradient(circle, lightskyblue, lightsteelblue, darkgrey);
}

.image_1 {
  max-width: 100%;
  display: block;
  height: auto;
  margin: 10px auto;
  border-radius:20px;
}
.quotes {
  font-family: courier;
  font-size: 14px;
  color: black;
}
.caption {
  color: black;
  align: center;
}
.info {
  align: center;
  color: black;
}
.heading {
  text-align: center;
}

#image {
width: 100%;
height: auto;
max-width: 400px;
margin-left: auto;
margin-right: auto;
display: block;
}
              
            
!

JS

              
                


              
            
!
999px

Console