Pen Settings



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


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


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.


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.


                <main id="main">
<h1 id="title">Nikola Tesla</h1>
  <p id="undertitle">One of humanity's greatest minds </p>

<figure id="img-div">
      alt="Tesla sat reading a book in his Colorado Spirngs laboratory in front of a magnifying transmitter."
  <figcaption id="img-caption" style="font-family: courier new;text-align:center">
    Nikola Tesla seen in his remote laboratory in Colorado Springs in 1899, sat beside a magnifying transmitter.
<section id="tribute-info">
  <h3> Upringing; brief summary of major events </h3>
    <li><strong>1856: birth</strong> - born on the 10th of July in Smiljan, Austrian Empire(modern-day Croatia). The Tesla family moved to Gospić in 1862
    <li><strong>1870: High school</strong> - Tesla moves to Karlovac. He attends high school finishing a four-year term in three years, graduating in 1873. 
    <li><strong>1873: Brush with death</strong>- Tesla returns to Smiljan after graduating but contracts cholera soon after. He was bedridden for nine months and was in close to death on multiple occasions.
    <li><strong>1875: College</strong> - Tesla enrolled at the Imperial-Royal Technical College in Graz to study Mechanical Engineering. Electrical engineering was yet to be recognised field academically, degrees and textbooks for the field did not exist at the time.</li></br> 
  <li><strong>1879: Father's Farewell</strong> - Despite exceptional performance early on, Tesla was failing by his third year and never graduated, leaving Graz in 1878. Estranged from his family, his father located him in March 1879. He returned to Gospic later that month and his father died on 17 April 1879.  
  <li><strong>1881: Career Beginnings</strong>- Tesla moved to Budapest, Hungary to work at the telegraph company, the Budapest Telephone Exchange.</li> 
    <!-- IDEA: Give even briefer descriptions and have mouse hover over these/click on them to reveal more. Ask how to do this on FCC forum-->

<h4> More about the brilliant 
  <a id="tribute-link" href="">Nikola Tesla


  font-family: courier new;

  font-size: 120%;

body {
  font-family: system-ui;
  background: linear-gradient(45deg, #6666AA, #AA6666);
  color: white;
  text-align: center;

  font-family: arial;
  font-size: 16px

ul {
  list-style-position: inside;
  text-align: left;
  font-size: 16px;

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


                document.getElementsByTagName("h1")[0].style.fontSize = "6vw";