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. 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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

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

  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Tribute Page</title>

  <main id="main">
    <h1 id="title">Yuri Alekseyevich Gagarin</h1>
    <h2>You called us all into space!</h2>
    <figure id="img-div">
      <img id="image" src="https://www.millionpodarkov.ru/incoming_img/90is.ru/1346841.jpg" alt="Yuri Gagarin">
      <figcaption id="img-caption">Yuri Gagarin was the first man to fly around the Earth in space.</figcaption>
    <section id="tribute-info">
      <h3 id="headline">Here's a time line of Gagarin's life:</h3>
      <li><strong>1934</strong> - Yuri Alekseevich Gagarin was born on March 9, 1934</li>
      <li><strong>1955</strong> -October 27, 1955, Gagarin was drafted into the Soviet army and sent to Chkalov. In his studies, Gagarin in all disciplines had the highest scores, but could not master the competent landing-the plane kept biting his nose. It was decided to expel. The order was not signed, because Yuri cried, said that he could not live without the sky. At the last moment, the head of the school drew attention to the small growth of Gagarin, in connection with which the viewing angle changes and the sense of the earth decreases. Gagarin put on a chair thick lining, after which he coped with the task.</li>
      <li><strong>1957</strong> - October 25, 1957 Gagarin graduated from the school with honors.</li>
      <li><strong>1959</strong> - 9 December 1959, Gagarin wrote a letter with the request to enlist it in group of candidates in cosmonauts.</li>
      <li><strong>1961</strong> - On March 23, 1961 Yuri Gagarin was appointed commander of the detachment.</li>
      <li><strong>1961</strong> - The launch of the spacecraft "Vostok" with the pilot-cosmonaut Yuri A. Gagarin on Board was made April 12, 1961 at 09:07 Moscow time (06:07 UTC) from the Baikonur cosmodrome.</li>
      <li><strong>1964</strong> - In 1964 Gagarin became Deputy head of the cosmonaut training Center and was appointed commander of the Soviet cosmonaut corps.</li>
      <li><strong>1966</strong> - In 1966, Gagarin was elected an Honorary member of the International Academy of Astronautics.</li>
      <li><strong>1968</strong> - On March 27, 1968 Gagarin died in an aviation accident, performing a training flight on the MiG-15UTI under the guidance of an experienced instructor V. S. Seregin, near the village of Novoselovo, Kirzhach district, Vladimir region. The bodies of Gagarin and Seregin were cremated.</li>
      <p>Pilot-cosmonaut of the USSR, Hero of the Soviet Union, knight of the highest insignia of a number of States, honorary citizen of many Russian and foreign cities.</p>
      <div>-- Wikipedia, the free encyclopedia</div>
    <h3>If you have time, you should read more about this incredible human being on his <a id="tribute-link" href="https://ru.wikipedia.org/wiki/%D0%93%D0%B0%D0%B3%D0%B0%D1%80%D0%B8%D0%BD,_%D0%AE%D1%80%D0%B8%D0%B9_%D0%90%D0%BB%D0%B5%D0%BA%D1%81%D0%B5%D0%B5%D0%B2%D0%B8%D1%87" target="_blank">Wikipedia entry</a>.</h3>

body {
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  text-align: center;
  min-width: 260px;
  color: #333;
#main {
  margin: 30px auto;
  padding: 15px;
  border: 0px solid;
  border-radius: 5px;
  background: #eee;
#img-div {
  margin: 20px -5px 20px -5px;
  background-color: white;
  width: 100%;
  border: 5px solid white;
  border-radius: 5px;
#img-div img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: auto;
  margin-top: 20px;
  border-radius: 5px;
#img-caption {
  margin: 15px;
ul {
  max-width: 550px;
  margin: 0 auto;
  text-align: left;
li {
/*   margin: 15px; */
  padding: 10px;
  border-bottom: 1px solid rgba(30, 34, 50, 0.3);
blockquote {
  font-style: italic;

              // !! 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. 

  - Select the project you would 
    like to complete from the dropdown 
  - Click the "RUN TESTS" button to
    run the tests against the blank 
  - 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. 

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.