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

              
                <body>
<header>
  <h1 id="title">
    Video Games - Survey
  </h1>
  <p id="description">Tell us what YOU love about gaming!
  </p>
 
</header>
 <form id="survey-form" action="https://crossorigin.me/https://freecodecamp.com">
  
      <label for="name" id="name-label">* First & Last Name:
      </label>
    <input type="text" id="name" name="name" required placeholder="Enter Your Name">
      </input>


  <label for="email" id="email-label">* Email:</label>
  <input type="email" id="email" name="email" required placeholder="Enter Email Address">
  </input>

  <label for="age" id="number-label">* Age:
  </label>
  <input type="number" id="number" name="age" required min="1" max="125" placeholder="Age" class="input-field">
  </input>

<div id="questions">
  <!--Place Survey Questions Here! 
-->  
  <div id="favConsole">
  <label id="dropdown">1. Favorite Game Console?
    </label>
  <select id="dropdown" name="favConsole" class="dropdown">
    <option disabled value>--Select One</option>
    <option value="64">Nintendo 64</option>
    <option value="gamecube">GameCube</option>
    <option value="wii">Nintendo Wii</option>
    <option value="360">XBOX 360</option>
    <option value=one>XBOX One</option>
    <option value="ps2">PS2</option>
    <option value="ps3">PS3</option>
    <option value="ps4">PS4</option>
    <option value="other">Other</option>
  </select>
  </div>
  <div id="subforum">
  <label id="genre" type="checkbox">2. Best Game Genre?<br>
    </label>
    <div id="checkboxes">
    <input type="checkbox" value="adventure">Adventure</input><br>
    <input type="checkbox" value="fps">FPS</input><br>
    <input type="checkbox" value="rpg">RPG</input><br>
    <input type="checkbox" value="sim">Simulation</input><br>
    <input type="checkbox" value="sport">Sports</input><br>
    <input type="checkbox" value="strat">Stategy</input><br>
    <input type="checkbox" value="other">Other</input><br>
</div>
</div>
<div class="subforum">
  <label id="options">3. Choose your favorite game from the list below:
  </label>
  </div>
  <div id="games">
  <input type="radio" name="0" value="1"> Call of Duty</label><br>
  <input type="radio" name="0" value="2"> Super Mario</label><br>
  <input type="radio" name="0" value="3"> Smash Bros.</label><br>
  <input type="radio" name="0" value="4"> Battlefield</label><br>
  <input type="radio" name="0" value="5"> Minecraft</label><br>
  <input type="radio" name="0" value="6"> Fortnite</label><br>
  <input type="radio" name="0" value="7"> Pokemon</label><br>
  <input type="radio" name="0" value="8"> Zelda</label><br>
  <input type="radio" name="0" value="9"> Madden</label><br>
  <input type="radio" name="0" value="10"> Fifa</label><br>
  <input type="radio" name="0" value="11"> Other</label><br>
</div>
<div class"form-group">
  <label for="textarea">5. Why do you enjoy being a gamer?
  </label>
</div>
  <textarea rows=10 placeholder="Tell us your gaming experience." maxlength=1000 required></textarea>
</div>
</div>
<button id="submit" type="submit">Submit
</button>
</form>

<footer>
  Written and designed by Max Gough
</footer>
</body>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
              
            
!

CSS

              
                body{
  background-image: url('https://backgroundcheckall.com/wp-content/uploads/2017/12/gaming-background-banner-8.jpg');
}
header {
  display: flex;
  font-size: 30px;
  flex-direction: column;
  align-items: center;
  color: white;
  padding: 25px;
  font-family: 'Orbitron', sans-serif;
}
form{
  background: white;
  border-radius: 30px;
  display: flex;
  flex-direction:column;
  margin-left: 10%;
  margin-right: 10%;
  margin-bottom: 10%;
  height: auto;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-left: 50px;
  padding-top: 50px;
  font-family: 'Open Sans Condensed', sans-serif;
  font-size: 22px;
}
#name-label {
padding-bottom: 20px;
  
}
#email-label {
  padding-top: 20px;
  padding-bottom: 20px;
  flex-wrap: wrap;

}
#number-label {
  padding-top: 20px;
  padding-bottom: 20px;
}
#submit {
  align-self: center;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 50px;
  font-weight: bold;
  font-size: 18px;
}
footer{
  display:flex;
  color: white;
  flex-direction: column;
  align-items: center;
}
input[type="text"] {
  font-size: 14px;
  padding: 10px;
  width: auto;
  height: 20px;
  border-radius: 2px;
  flex-wrap: wrap;
}
input[type="email"] {
  font-size: 14px;
  padding: 10px;
  width: auto;
  height: 20px;
  border-radius: 2px;
  flex-wrap: wrap;
}
input[type="number"] {
  font-size: 14px;
  padding: 10px;
  width: auto;
  height: 20px;
  border-radius: 2px;
}
#questions {
   align-self: center;
   padding-bottom: 30px;
}
#games {
  padding-left: 80px;
  padding-top: 30px;
  padding-bottom: 30px;
}
#checkboxes {
   padding-left: 80px;
  padding-top: 30px;
  padding-bottom: 30px;
}
#subforum {
  padding-bottom: 30px;
  
}
#favConsole {
  padding-bottom: 30px;
}
textarea {
  width: 100%;
  margin-top: 20px;
}
footer {
  height: 70px;
  font-size: 22px;
  justify-content: center;
}

              
            
!

JS

              
                const projectName = 'survey-form';
localStorage.setItem('example_project', 'Survey Form');
              
            
!
999px

Console