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

              
                <body style="background-color:grey">
 <div class="animated flip"> 
   <p><b><h1>Alan Turing</h1></b></p>
  <img id="image"  src="https://media.gizmodo.co.uk/wp-content/uploads/2013/12/alan-turing.jpg" alt="Alan Turing Pic"/> 
    </div>
      <div class="about">
      <p class="p2" style="font-size:40px;font-family:times;"><b><em>About Alan Turing:</b></em></p>
     <hr style="color:white;border-width:1px"> Alan Turing was not a well known figure during his lifetime. But today he is famous for being an eccentric yet passionate British mathematician, who conceived modern computing and played a crucial part in the Allied victory over Nazi Germany in WW2.
    <ul>
      <li>
    He graduated from King's College, Cambridge with a distinction in Mathematics degree.</li>
    <li>
    In 1936, Turing published a paper that is now recognised as the foundation of computer science.
    </li>
      <li>After two years at Princeton, developing ideas about secret ciphers, Turing returned to Britain and joined the government’s code-breaking department</li>
        <li>In 1941, Turing’s section, ‘Hut 8’, mastered the German submarine communication system that was vital to the battle of the Atlantic.
         </li>
      <li>Turing worked on other technical innovations during the war – in particular, a system to encrypt and decrypt spoken telephone conversations.
        <li>
          In March 1946 Turing produced a detailed design for what was called the Automatic Computing Engine (ACE.)
          <li>All male homosexual activity was illegal until 1967, and Turing was prosecuted when an affair with a young man came to the notice of the police.
            <li>
              Alan Turing was found dead in bed by his cleaner on 8 June 1954. He had died from cyanide poisoning the day before. A partly eaten apple lay next to his body.<br> The coroner’s verdict was suicide.
              <li>
                In December 2013, Alan Turing was granted a posthumous royal pardon, formally cancelling his criminal conviction.     </ul>
    <h2><p class="p4">"A pardon from the Queen is a fitting tribute to an exceptional man."</p></h2><em style="color:yellow">-Chris Grayling, Justice Secretary</em><br>
    <hr>
    <p class="p3" style="font-size:15px"><em>Read more about him <a href="https://www.bbc.co.uk/timelines/z8bgr82#z3pnsbk">here</a>.</em></p>
        </div>
   <p class="animated infinite flash"   id="p0"><em>Pen by Dhaval Gajjar</em></p>
  </body>
              
            
!

CSS

              
                h1{
  font-size:55px;
  color:white;
  font-family:verdana;
  background-color:grey;
}
.about{
  font-family:times;
  font-size:25px; 
  padding-top:50px;
  color:white;
  background-color:grey;
}
body{
  backgroud-color:grey;
  padding-top:100px;
  border-style:solid;
  border-width:10px;
}
a{
  color:red; 
}
#image{   
  width:100%;    
  border:solid;
  border-width:2px; 
  border-color:black;
}
div{
  padding-left:100px;
}
li{
  padding-top:10px;
}
.p5{
  font-size:30px;
  padding-top:70px;
}
hr{
color:black;
border:solid;
border-width:2px;
}
.p4{
  font-size:40px;
  color:green;
}
#p0{
  color:blue;
  padding-top:40px;
}
              
            
!

JS

              
                
              
            
!
999px

Console