css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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>

<header id = "header">
  <nav id = "nav-bar">
    <img id = "header-img" width="150" alt="Acme-logo" src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/7e/Acme-logo.png/512px-Acme-logo.png">
    <a href = "#email"  class = "nav-link">Add your email address</a>   
    <a href = "#gmail"  class = "nav-link">Check Out Gmail</a>  
    <a href = "#google" class = "nav-link">Check Out Google</a>   
<div id = "main">

  <p id = "lorem">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras rutrum nulla non enim varius euismod. Aenean tincidunt diam rutrum, lacinia elit at, venenatis nibh. Mauris pellentesque leo in eleifend dignissim. Cras dui ipsum, convallis eu posuere vel, euismod eu orci. Vestibulum euismod sagittis nulla, eget consequat magna cursus quis. Aenean vestibulum pulvinar orci ac finibus. Fusce suscipit nec urna vel eleifend. Cras sapien erat, molestie non ultricies eget, blandit a purus. Sed cursus leo id auctor fringilla. Fusce scelerisque mi in justo laoreet, et interdum lacus condimentum. Nullam tempor orci pulvinar mattis ultrices. Suspendisse egestas magna ut semper aliquet.</p>

  <div class="flex-container">
    <span id = "google"></span>
    <div><p><a href = "https://www.google.com/" class = "social">Google</a></p></div>
    <span id = "gmail"></span>
  <div><p><a href = "https://mail.google.com/mail/u/0/" class = "social">Gmail</a></p></div>
    <video controls id = "video">
  <source src="http://learn.shayhowe.com/assets/misc/courses/html-css/adding-media/earth.mp4" type="video/mp4">
<form id = "form" action = "https://www.freecodecamp.org/email-submit">    
    <input type = "email" placeholder = "email@mail.com" id = "email" name = "email">  
    <input type = "submit" id = "submit" name = "form"></input>
              .flex-container {
  display: flex;

  (min-device-width: 1200px) 
  and (max-device-width: 1600px)

* {
    box-sizing: border-box;
    width: 750px;
    margin: auto;
    padding-top: 100px;
    padding-bottom: 50px;
    color: #010551;

nav {
  z-index: 1;
  top: 0;
  left: 110px;
  width: 1200px;
  border: solid black 2px;
  background-color: #FFCD1C;

  padding: 10px 10px 10px 10px;

  border: 1px solid #555;
  font-family: "Arial Black", Gadget, sans-serif;
  margin: 10px 25px 0px 0px;
  float: right;
  color: #010551;

video {
  max-width: 540px;
  display: block;
  margin: 0 auto;

  background-color: #FFCD1C;
  margin: 200px 100px 20px 100px;
  border: solid black 5px;

  background-color: #010551;

.flex-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

.flex-container > div {
  margin: 10px;
  padding: 20px;
  font-size: 30px;
  background-color: #492799;
  width: 750px;
  font-family: "Arial Black", Gadget, sans-serif;
.social {
  color: #FFFFFF;
  margin-left: 255px;
    margin-top: 50px;
    margin-left: 500px; 
    margin-bottom: 100px;
  #email, #submit{
    width: 200px;
    height: 25px;
 #google {
 display: block; 
height: 92px; 
/* margin-top: -92px;  */
visibility: hidden;
  #gmail {
   display: block; 
   height: 92px; 
/*    margin-top: -92px;  */
   visibility: hidden;

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