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

              
                <link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Oswald:wght@500&display=swap" rel="stylesheet">
<main id="main">
  <h1 class="h1" id="title"> ELON MUSK </h1>
  <strong > American entrepreneur </strong>
        <figure id="img-div">
   
  
      
  
<img id="image"   src="https://i.pinimg.com/474x/cf/82/4c/cf824cca9391835d4459ba57fd5911d2.jpg" alt=" Animated picture">
            <figcaption id="img-caption">
      CEO of Tesla
  </figcaption>
       </figure> 
      <ul id="tribute-info">
        <li><strong>1971 </strong> Born to engineer father and model mother. </li>
        
        <li><strong>age 8 </strong> reads 10 hours per day, runs out of books to read at library.</li>
        <li><strong>age 11 </strong> learns BASIC by completing 6 months course in 3 days. </li>
        <li><strong>age 12  </strong> writes video game blaster and sells it for 500$.</li>
        <li><strong>age 17 </strong > moves to canada. </li>
        <li><strong>age 18 </strong> starts college at Ontario. </li>
        <li><strong>1994 </strong> gets Wharton Economics degree. </li>
        <li><strong>1995</strong> sleeps in office for 3 months. </li>
        <li><strong> 1996</strong> raises first investment money (3M$) </li>
        <li><strong>1999 </strong> gets 22M$ from sale of Zip2 and starts X.com</li>
        <li><strong>2000 </strong> gets ousted as CEO from paypal</li>
        <li><strong>2002 </strong> Starts spaceX from own money.</li>
        <li><strong>2006 </strong> first launch fails. </li>
        <li><strong> 2007</strong> second launch fails.</li>
        
        <li><strong>2008 </strong>third launch fails and destroys NASA satelites , fourth launch succeeds. </li>
        <li><strong> 2011</strong>promises to send humans to mars in 2021-2031. </li>
        <li> <strong>2018 </strong> launches his first rocket falcon factory.</li>
         <li><strong>2025</strong> first mars colonial transporter launches. </li>
              <li><strong>In his life</strong> tickets to mars are sold.</li>
        </ul>
          <p > Read more about  <a id="tribute-link" href="https://www.freecatphotoapp.com" target="_blank" >ELON MUSK </a>. </p>
      
</main>
              
            
!

CSS

              
                *{
  margin: 0;
  padding: 0;
}
#main{
  margin: 10px 30px 30px 30px;
  padding: 30px;
  text-align: center;
   font-family: oswald , sans-serif;
   
}
.h1 {
  font-size: 70px;
   margin-bottom: 0px;
}
#image{
  haight: auto;
  display: block;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  margin-top: 40px;
  max-width: 100%;
}

#img-div {
  background: white;
  padding: 10px ;
  margin: 0;
}

#img-caption {
   margin: 15px 0 50px 0;
}
ul {
  max-width: 550px;
  margin: 0 auto 50px auto;
  text-align: left;
  line-height: 1.6;
}
li{
  margin: 16px 0;
}
#tribute-link{
  margin-top: 50px;
  text-align: center;
}
              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console