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

              
                

<main id="main">
  <h1 id="title">Issac Newton</h1>
  <p>A mathematician, physicist, astronomer, theologian, and an alchemist.</p>
  <figure id="img-div">
     <img 
          id="image" src="https://upload.wikimedia.org/wikipedia/commons/3/39/GodfreyKneller-IsaacNewton-1689.jpg" 
          alt="A serious picture of issac newton"/>
    <figcaption id="img-caption">Sir Issac Newton</figcaption>
  </figure>
<body>
	<section id="tribute-info" >
	<h3 id="headline"><strong>Here are some important turns of events of his life:-</strong></h3>
		<ul>
			<li><strong>1643-</strong>Born on 4 January 1643 Woolsthorpe-by-Colsterworth, Lincolnshire, England. </li>

      <li><strong>1655-</strong>From the age of about twelve until he was seventeen, Newton was educated at <strong>The King's School</strong>, Grantham, which taught Latin and Greek and probably imparted a significant foundation of mathematics.</li>

			<li><strong>1661-</strong>In June 1661 he was admitted to Trinity College, Cambridge, on the recommendation of his uncle Rev William Ayscough, who had studied there.</li>

			<li><strong>1665-</strong>he discovered the generalised binomial theorem and began to develop a mathematical theory that later became <strong>Calculus</strong></li>

      <li><strong>1665-</strong>Newton had obtained his BA degree in August 1665, the university temporarily closed as a precaution against the Great Plague. Although he had been undistinguished as a Cambridge student, Newton's private studies at his home in Woolsthorpe over the subsequent two years saw the development of his theories on <strong>calculus</strong>,<strong>optics</strong>, and <strong>the law of gravitation</strong>.</li>

			<li><strong>1667-</strong>In April 1667 he returned to Cambridge and in October was elected as a fellow of Trinity. Fellows were required to become ordained priests, although this was not enforced in the restoration years and an assertion of conformity to the Church of England was sufficient. However, by 1675 the issue could not be avoided and by then his unconventional views stood in the way. Nevertheless, Newton managed to avoid it by means of special permission from Charles II.</li>

      <li><strong>1669-</strong>His studies had impressed the Lucasian professor Isaac Barrow, who was more anxious to develop his own religious and administrative potential (he became master of Trinity two years later); in 1669 Newton succeeded him, only one year after receiving his MA. He was elected a Fellow of <strong>the Royal Society (FRS) in 1672</strong>.</li>
		</ul>
	

	  <h3>To Know more about him visit this wikipedia page. 
    <a 
       id="tribute-link" href="https://en.wikipedia.org/wiki/Isaac_Newton" 
       target="_blank">Issac Newton</a>
	  </h3>
	</section>
  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
  
</main>



              
            
!

CSS

              
                

	html{font-size: 10px;
	}

  #main{
		margin: 30px 40px;
		padding: 30px;
		border-radius: 5px;
		background: #eee;
	}

	body {
		  font-family: -apple-system,                 BlinkMacSystemFont, "Segoe UI",             "Roboto", "Helvetica Neue", Arial,            sans-serif;
		  font-size: 1.6rem;
		  line-height: 1.5;
		  text-align: center;
		  color: #333;
		  margin: 0;
	}
  
	#image {
		max-width: 100%;
		height: auto;
		margin: 0 auto;
		display: block;
	}

	#headline {
    margin: 50px 0;
    text-align: center;
  }
	#img-div{
		background: white;
		padding: 10px;
		padding-bottom: 2px;
		margin: auto 0 auto 0;
  }

	#img-caption{
		margin:15px 0 15px 0;
		font-size: 1.5rem;
		text-align: center;
	}

	h1 {
		font-size: 4rem;
		margin-top: 20px;
	}

	ul {
	  max-width: 1000px;
	  margin: 0 auto 50px auto;
	  text-align: left;
	  line-height: 1.5;

	}

	li {
	  margin: 15px 0;
	}

  a {
  color: #477ca7;
  }

  a:visited {
  color: #74638f;
  }

	



              
            
!

JS

              
                // coded by @ChaituVR
const projectName = 'tribute-page';
localStorage.setItem('example_project', 'Tribute Page');


              
            
!
999px

Console