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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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>
<!DOCTYPE html>
<html>
  <head> 
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="style.css">
    <link href="https://fonts.googleapis.com/css?family=IM+Fell+English" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Fredericka+the+Great" rel="stylesheet">
    <title>Hero Academy Survey</title>
  </head>
  
  <body>
    <h1 id="title">Hero Academy Super-Survey</h1>
    <div id="surround">
    <p id="description">
      Let us know who you are and how we're doing.
    </p>
    <form id="survey-form" class="container">
      <div>
      <label id="name-label">*Name:</label><input type="text" placeholder="Enter Your Name" id="name" class="ifield" name="name" required>
      </div>
      <div>
      <label id="email-label">*Email:</label><input type="email" placeholder="Enter Your Email" id="email" class="ifield" name="mail" required>
      </div>
      <div>
      <label id="number-label"> *Age:       </label><input type="number" placeholder="Enter your Age" min="1" max="99" id="number" class="ifield" name="number" required>
      </div>
      
      <div id="currentStat">
        <label for="currentStat">Which option best describes your current status?</label>
        <select id="dropdown" name="currentStatus" class="dropdown">
          <option disabled value>Select an option</option>
          <option value= "ftHS">Full-Time Hero Student</option>
          <option value="ptHS">Part-Time Hero Student</option>
          <option value="aHC">Annual Hero Certification</option>
          <option value="pNS">Prefer not to Say</option>
           <option value="other">Other</option>
        </select>
      </div>
      
      <div class="radio">
        <div>
        <label for="program">Would you recommend this Hero Academy to your friends?</label>
        </div>
        <div>
        <ul style="list-style: none;" class="radio1">
          <li><input type="radio" name="radio" value="1"><label>Yes</label></li>
          <li><input type="radio" name="radio" value="2"><label>No</label></li>
          <li><input type="radio" name="radio" value="3"><label>Maybe, if I had a better super power.</label></li>
          <li><input type="radio" name="radio" value="4"><label>No, I'm a self-taught villian just satisfying my yearly Continued Education requirements</label></li>
        </ul>
      </div>
      
      <div class="dropdown2">
      <label for="desire">What would you like to see improved with Hero Academy?</label>
        <select id="dropdown" name="desire" class="dropdown2">
          <option disabled value>Select and option</option>
          <option value="Powers">More Super Powers</option>
          <option value="community">Community</option>
          <option value="diversity">Diversity</option>
          <option value="remote">Remote learning</option>
          <option value="history">More history classes</option>
          <option value="food">Better cafeteria food options</option>
          <option value="villian">Supervillian training</option>
        </select>
      </div>
      
      <div class="check-boxes">
        <label for="powers">What Superpowers did you learn?</label> 
          <ul style="list-style: none;" class="powers">
          <li><input id="mind-control" type="checkbox" name="power" value="1"><label>Mind Control</label></li>
          <li><input id="super-strength" type="checkbox" name="power" value="2"><label>Super Strength</label></li>
          <li><input id="teleportation" type="checkbox" name="power" value="3"><label>Teleportation</label></li>
            <li><input id="invisibility" type="checkbox" name="power" value="4"><label>Invisibility</label></li>
            <li><input id="flight" type="checkbox" name="power" value="5"><label>Flight</label></li>
            <li><input id="healing" type="checkbox" name="power" value="6"><label>Healing</label></li>
            <li><input id="speed" type="checkbox" name="power" value="7"><label>Speed</label></li>
            <li><input id="invulnerability" type="checkbox" name="power" value="8"><label>Invulnerability</label></li> 
            <li><input id="atmokenesis" type="checkbox" name="power" value="9"><label>Atmokinesis</label></li>
            <li><input id="superspeed" type="checkbox" name="power" value="10"><label>Super Speed</label></li>
            <li><input id="immortality" type="checkbox" name="power" value="11"><label>immortality</label></li>
        </ul>
      </div>
     
      <div>
        <label for="comments">Additional Suggestions:</label>
        <textarea id="comments" class="input-field" name="comments" placeholder="Enter your comments here..."></textarea>
          </div>
      <button id="submit" type="submit">Submit</button>
    </form>
      </div>
      
      <footer><h5>Written and Coded by <a href="https://www.freecodecamp.org/rendon" target="_blank">Rendon Elsesser</a> for educational purposes only.</h5>
</footer>

              
            
!

CSS

              
                #title{
  font-family: 'Fredericka the Great', cursive;
  text-align: center;
  Padding-top: 15px;
  font-size: 50px;
}
body{
  background-color: #008EF7;
  font-family: helvetica, sans-serif;
  min-width: 350px;
}

.container{
  grid-template-columns: 1fr, 1fr;
}

#surround{
  background-color: #F7E800;
  margin: 0 auto;
  border-radius: 4px;
  width: 70%;
  max-width:800px;
  padding: 100px;
  padding-top: 20px;
  box-shadow:1px 1px 20px black;
}
.ifield{
  width: 250px;
  height: 20px;
  padding: 5px;
  margin: 10px;
  border: 1px solid black;
  border-radius: 2px;
}

  #currentStat, .radio{
    padding: 15px 0 15px 0;
}

.radio1{
  margin-left: 
}

button[type=submit] {
  background: #007FF7;
  color: white;
  border-radius: 5px;
  border: none;
  padding: 15px 32px;
  margin: 10px 10px 10px 400px;
  
}
              
            
!

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