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

              
                
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<div id ='main'>
  <title id='title'>The Tribute Page</title>
  <h1 id='title' >Tim Berners-Lee </h1>
  <div id='img-div'>
    <img id='image' src = 'https://upload.wikimedia.org/wikipedia/commons/9/9d/Sir_Tim_Berners-Lee.jpg' alt 'A Picture of Tim Berners-Lee'>
    <p id='img-caption'>Tim Berners-Lee, inventor of the internet.</p>
  </div>
  

  
  <div id='tribute-info'>
    <h2>Here is a timeline of Tim Berners-Lee's life</h2>
    <li>Timothy John Berners Lee was born on 8 June 1955 and grew up in London. He studied physics at Oxford University and became a software engineer.</li> <br>
    <li>In 1980, while working at CERN, the European Particle Physics Laboratory in Geneva, he first described the concept of a global system, based on the concept of 'hypertext', that would allow researchers anywhere to share information. He also built a prototype called 'Enquire'.</li><br>
    <li>In 1984, Berners Lee's returned to CERN, which was also home to a major European Internet node. In 1989, Berners Lee published a paper called 'Information Management: A Proposal' in which he married up hypertext with the Internet, to create a system for sharing and distributing information not just within a company, but globally. He named it the World Wide Web.</li><br>
    <li>He also created the first web browser and editor. The world's first website, http://info.cern.ch, was launched on 6 August 1991. It explained the World Wide Web concept and gave users an introduction to getting started with their own websites.</li><br>
    <li>In 1994, Berners Lee founded the World Wide Web Consortium at the Laboratory of Computer Science (LCS) at the Massachusetts Institute of Technology in Boston. He has served as director of the consortium since then. He also works as a senior research scientist at LCS which has now become the Computer Science and Artificial Intelligence Laboratory.</li><br>
    <a id='tribute-link' class=tribute-link target='_blank' href='https://en.wikipedia.org/wiki/Tim_Berners-Lee'>Click here to read more about Tim Berners-Lee</a> 
  </div>
 
</div>


              
            
!

CSS

              
                #main{
  background-color:#E6E6FA;
  font-family: "Baskerville Old Face", "Sans-serif";
}

#title{
  text-align: center;
  font-size: 3em;
}

#image {
  width: 60%;
  max-width: 100%;
  display: block;
  margin: auto;
}

#img-caption {
  font-size:1em;
  display:flex;
  justify-content:center;
}

#tribute-info {
  font-size: 1.25em;
  margin-left: 29%;
  margin-right: 25%;
}




.tribute-link:hover {
  color: red;
}


@media (max-width: 1125px) and (max-height: 2436px) {
 #img-caption {
  font-size :1em;
 }
  
 #tribute-info {
  font-size: 1em;
  margin-left: 5%;
  margin-right: 5%;
  
 }
  #tribute-info > h2 {
    font-size: 1em;
  }
 
}
              
            
!

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