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.


                <!DOCTYPE html>
  <title id="title">Product landing page </title>
  <header id="header">
    <div class="logo">
              alt="tesla logo"
    <nav id="nav-bar">
         <a class="nav-link" href=#whatisTesla?> what is Tesla?</a> &nbsp; &nbsp; &nbsp;
         <a class="nav-link" href=#Models> Models</a> &nbsp; &nbsp; &nbsp;
         <a class="nav-link" href="#Pricing"> Pricing</a> &nbsp; &nbsp; &nbsp;
  <section id="whatisTesla?">
   <iframe  id="video" 
           src="" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  <section id="Models">
    <p> <b>Tesla Models:</b></p>
      <dt> <b>Model 3</b></dt>
      <dd> Comes with the option of dual motor all-wheel drive, 20” Überturbine Wheels and Performance Brakes and lowered suspension for total control</dd>
      <dt> <b>Model S</b></dt>
      <dd> Acceleration. 1.99 s 0-60 mph* *with rollout subtracted · Top Speed. 200 mph† †when equipped with the proper wheels and tires (available fall 2021)</dd>
      <dt> <b>Model Y</b>
        <dd> Battery. Long Range · Acceleration. 3.5s 0-60 mph* *with rollout subtracted · Range. 303 miles (EPA est.) · Drive. Dual Motor All-Wheel Drive · Seating. Up to 5. </dd>
  <section id="Pricing">
    <p> <strong>Pricing</strong> </p>
     <form id="form" action="">
    <input name="email" id="email" type="email" placeholder="Enter your email address" required/>
       <input id="submit" type="submit" value="Get Started" class="btn"></input>



    #header {
    position: fixed;
    top: 0;
    display: flex;
    .top-nav {

    overflow: hidden;

    /* position: fixed; */
    top: 0;

@media {max-width: 500px} {
  body {flex-wrap: wrap;
#form {
#video {
  margin-top: 100px;
  margin-bottom: 100px;
  margin-right: 150px;
  margin-left: 80px;