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">
  <div id="title">
    <h1>NIKOLA TESLA</h1>
    <h2>"The man who invented the 20th century"</h2>
  </div>
  <div id="img-div">
    <img id="image" src="https://upload.wikimedia.org/wikipedia/commons/5/56/Tesla3.jpg" alt="">
    <h5 id="img-caption"><i>Serbian-American inventor, electrical engineer, mechanical engineer, and futurist who is best known for his contributions to the design of the modern alternating current electricity supply system.</i></h5>
  </div>

  <div id="tribute-info">
    <article>
      <section id="biography">
        <h3>BIOGRAPHY</h3>
        <p>Nikola Tesla was born in Smiljan, Croatia, on July 10, 1856.He was one of five children, including siblings Dane, Angelina, Milka and Marica. Tesla's interest in electrical invention was spurred by his mother, Djuka Mandic, who invented small
          household appliances in her spare time while her son was growing up. Tesla's father, Milutin Tesla, was a Serbian orthodox priest and a writer, and he pushed for his son to join the priesthood. But Nikola's interests lay squarely in the sciences.</p>

        <p>After studying at the Realschule, Karlstadt (later renamed the Johann-Rudolph-Glauber Realschule Karlstadt); the Polytechnic Institute in Graz, Austria; and the University of Prague during the 1870s, Tesla moved to Budapest, where for a time he
          worked at the Central Telephone Exchange. It was while in Budapest that the idea for the induction motor first came to Tesla, but after several years of trying to gain interest in his invention, at age 28 Tesla decided to leave Europe for America.
        </p>
      </section>
      <section id="inventions">
        <h3>INVENTIONS</h3>
        <p>Throughout his career, Tesla discovered, designed and developed ideas for a number of important inventions — most of which were officially patented by other inventors — including dynamos (electrical generators similar to batteries) and the induction
          motor. He was also a pioneer in the discovery of radar technology, X-ray technology, remote control and the rotating magnetic field — the basis of most AC machinery. Tesla is most well-known for his contributions in AC electricity and for the
          Tesla coil.</p>

        <p><strong>AC Electrical System</strong> - Tesla designed the alternating-current (AC) electrical system, which would quickly become the preeminent power system of the 20th century and has remained the worldwide standard ever since. In 1887, Tesla
          found funding for his new Tesla Electric Company, and by the end of the year he had successfully filed several patents for AC-based inventions. Tesla's AC system soon caught the attention of American engineer and businessman George Westinghouse,
          who was seeking a solution to supplying the nation with long-distance power. Convinced that Tesla's inventions would help him achieve this, in 1888 he purchased his patents for $60,000 in cash and stock in the Westinghouse Corporation. As interest
          in an AC system grew, Tesla and Westinghouse were put in direct competition with Thomas Edison, who was intent on selling his direct-current (DC) system to the nation. A negative press campaign was soon waged by Edison, in an attempt to undermine
          interest in AC power. Unfortunately for Edison, the Westinghouse Corporation was chosen to supply the lighting at the 1893 World's Columbian Exposition in Chicago, and Tesla conducted demonstrations of his AC system there.</p>

        <p><strong>Hydroelectric Power Plant</strong> - In 1895, Tesla designed what was among the first AC hydroelectric power plants in the United States, at Niagara Falls. The following year, it was used to power the city of Buffalo, New York — a feat
          that was highly publicized throughout the world and helped further AC electricity’s path to becoming the world’s power system.</p>

        <p><strong>Tesla Coil</strong> - In the late 19th century, Tesla patented the Tesla coil, which laid the foundation for wireless technologies and is still used in radio technology today. The heart of an electrical circuit, the Tesla coil is an inductor
          used in many early radio transmission antennas. The coil works with a capacitor to resonate current and voltage from a power source across the circuit. Tesla himself used his coil to study fluorescence, x-rays, radio, wireless power and electromagnetism
          in the earth and its atmosphere. </p>
      </section>
      <section id="legacy">
        <h3>LEGACY</h3>
        <p>Poor and reclusive, Nikola Tesla died of a coronary thrombosis on January 7, 1943, at the age of 86, in New York City, where he had lived for nearly 60 years. However the legacy of the work Tesla left behind him lives on to this day. In 1994,
          a street sign identifying "Nikola Tesla Corner" was installed near the site of his former New York City laboratory, at the intersection of 40th Street and 6th Avenue.</p>
        <p>There are societies, foundations, clubs and centres all over the world dedicated to a man who filed 278 patents in 26 countries, gave the world its system for directing alternating current and inspired the development of radio. Tesla also invented
          an energy weapon, created lightning, claimed to be able to pluck energy from the air, and apparently had a machine that created earthquakes ′ making him intriguing enough for novelists, film makers, comicbook writers and TV producers to use
          as a fictional character.</p>
        <p>In 2003, a group of engineers founded <strong>Tesla Motors</strong>, a car company named after Nikola Tesla dedicated to building the first fully electric-powered car. Entrepreneur and engineer <i>Elon Musk</i> contributed over $30 million to
          Tesla in 2004 and serves as the company’s co-founder CEO. In 2008, Tesla unveiled its first electric car, the Roadster. A high-performance sports vehicle, the Roadster helped changed the perception of what electric cars could be. In 2014, Tesla
          launched the Model S, a lower-priced model that, in 2017, set the Motor Trend world record for 0 to 60 miles per hour acceleration at 2.28 seconds. Tesla’s designs showed that an electric car could have the same performance as gasoline-powered
          sports car brands like Porsche and Lamborghini.</p>
      </section>
    </article>
    <strong><p><a id="tribute-link" target="_blank" href="https://en.wikipedia.org/wiki/Nikola_Tesla">Learn more</a> about Nikola Tesla.</p></strong>
  </div>
</main>

<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
              
            
!

CSS

              
                #main {
  margin: auto;
  border: 5px solid black;
  background-color: silver;
  color: #1a0033;
}

#title {
  text-align: center;
  font-family: Gadget, sans-serif;
}

h1 {
  padding-top: 50px;
  font-size: 70px;
}

#img-div {
  margin-top: 80px;
  margin-bottom: 60px;
}

#image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
  border-radius: 50%;
}

#img-caption {
  text-align: center;
  color: black;
  font-size: 20px;
  margin: 60px 100px;
}

#tribute-info {
  line-height: 1.5;
  margin: auto 50px;
}

h3 {
  text-align: center;
  font-size: 20px;
  padding-top: 50px;
  border-bottom: 1px solid black;
}

p {
  font-size: 16px;
  font-family: helvetica;
}

#legacy {
  padding-bottom: 30px;
}
              
            
!

JS

              
                
              
            
!
999px

Console