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

              
                <!-- test scripts from fcc -->
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<!-- meta -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- page title -->
<title> FCC User Survey </title>

<!-- page header -->
<header align="center">
  
  <h1 id="title">Survey Form</h1>

</header>

<!-- form -->
<main align="center" class="container">
  
  <p id="description">Let us know how we can improve freeCodeCamp</p>
  
  <form id="survey-form" class="row">
    
    <fieldset class="col-sm-12">
      
      <label for="Name" class="col-sm-6 marginSpace" align="right" id="name-label">* Name:</label>
      <input class="col-sm-6 marginSpace text-sub" id="name" type="text" name="Name" placeholder="Enter your name" required>

      <label for="Email" class="col-sm-6 marginSpace" align="right" id="email-label">* Email:</label>
      <input class="col-sm-6 marginSpace text-sub" id="email" type="email" name="Email" placeholder="Enter your email" required>

      <label for="Age" class="col-sm-6 marginSpace" align="right" id="number-label">* Age:</label>
      <input class="col-sm-6 marginSpace text-sub" id="number" type="number" name="Age" placeholder="Age" min="1" max="100" required>
      
    </fieldset> <!-- Name && Email && Age -->
    
    <fieldset class="col-sm-12">
      
    <label for="" class="col-sm-6 marginSpace" align="right">Which option best describes your current role?</label>
      
      <select class="col-sm-6 marginSpace text-sub" id="dropdown" name="radioStatusContainer">

        <optgroup label="Please Select One" name="radioStatus">

          <option name="student">Student</option>
          <option name="fullTimeJob">Full Time Job</option>
          <option name="fullTimeLearner">Full Time Learner</option>
          <option name="preferNotToSay">Prefer not to say</option>
          <option name="other">Other</option>

        </optgroup>

      </select>
      
    </fieldset> <!-- Role Dropdown -->
    
    <fieldset class="col-sm-12" id="radioLikely">
      
      <label class="col-sm-6" id="radioLikely0" align="right">* How likely is that you would recommend freeCodeCamp to a friend?</label>
      
      <div class="col-sm-6 inputBack" align="left" name="radioLikelyGroup">
        
        <div class="row" name="radioGroup">
          <input type="radio" id="definitely" name="likely" value="definitely" class="col-sm-2" checked />
          <label for="definitely" class="col-sm-10" align="left">Definitely</label>
          
          <input type="radio" id="maybe" name="likely" value="maybe" class="col-sm-2"/>
          <label for="maybe" class="col-sm-10" align="left">Maybe</label>
          
          <input type="radio" id="notSure" name="likely" value="notSure" class="col-sm-2"/>
          <label for="notSure" class="col-sm-10" align="left">Not Sure</label>
        </div>
        
      </div>
    </fieldset> <!-- Reccomendation Likelyhood -->
    
    <fieldset class="col-sm-12" style="margin-bottom: 2%">
      
      <label for="" class="col-sm-6 marginSpace" align="right">What do you like most in FCC:</label>
      
      <select class="col-sm-6 marginSpace text-sub" id="dropdown" name="likedFieldsContainer">
        
        <optgroup label="Please Select One" name="likedFields">
          
          <option name="challenges">Challenges</option>
          <option name="projects">Projects</option>
          <option name="community">Community</option>
          <option name="openSource">Open Source</option>
          
        </optgroup>
        
      </select>
    
    </fieldset> <!-- Most Liked -->
    
    <fieldset class="col-sm-12" style="margin-bottom: 3%" id="radioImprovement">
      
      <label for="" class="col-sm-6 marginSpace" align="right">Things that should be improved in the future<br>(Check all that apply):</label>
      
      <div class="col-sm-6 inputBack" align="left">
        
        <div>
          <input type="checkbox" id="frontEndProjects" name="feature" value="frontEndProjects"/>
          <label for="frontEndProjects">Front-end Projects</label>
        </div>
                
        <div>
          <input type="checkbox" id="backEndProjects" name="feature" value="backEndProjects"/>
          <label for="backEndProjects">Back-end Projects</label>
        </div>
        
        <div>
          <input type="checkbox" id="dataVisualization" name="feature" value="dataVisualization"/>
          <label for="dataVisualization">Data Visualization</label>
        </div>
        
        <div>
          <input type="checkbox" id="challenges" name="feature" value="challenges"/>
          <label for="challenges">Challenges</label>
        </div>
        
        <div>
          <input type="checkbox" id="openSourceCommunity" name="feature" value="openSourceCommunity"/>
          <label for="openSourceCommunity">Open Source Community</label>
        </div>
        
        <div>
          <input type="checkbox" id="gitterHelpRooms" name="feature" value="gitterHelpRooms"/>
          <label for="gitterHelpRooms">Gitter help rooms</label>
        </div>
        
        <div>
          <input type="checkbox" id="videos" name="feature" value="videos"/>
          <label for="videos">Videos</label>
        </div>
        
        <div>
          <input type="checkbox" id="cityMeetups" name="feature" value="cityMeetups"/>
          <label for="cityMeetups">City Meetups</label>
        </div>
        
        <div>
          <input type="checkbox" id="wiki" name="feature" value="wiki"/>
          <label for="wiki">Wiki</label>
        </div>
        
        <div>
          <input type="checkbox" id="forum" name="feature" value="forum"/>
          <label for="forum">Forum</label>
        </div>
        
        <div>
          <input type="checkbox" id="additionalCourses" name="feature" value="additionalCourses"/>
          <label for="additionalCourses">Additional Courses</label>
        </div>

      </div>
      
    </fieldset> <!-- Improvement -->
    
    <fieldset class="col-sm-12" style="margin-bottom: 2.5%">
      
      <label for="" class="col-sm-6 marginSpace" align="right">Any Comments or Suggestions?</label>
      
      <textarea id="comments" name="comments" class="col-sm-6" style="width: 17vw">
      </textarea>
      
    </fieldset> <!-- Additional Information -->
    
    <fieldset class="col-sm-12" style="margin-bottom: 1%">
      
      <a class="col-sm-5"></a>
      
      <input type="submit" value="Submit" class="col-sm-2 submitButton" align="center" id="submit">
      
      <a class="col-sm-5"></a>
      
    </fieldset> <!-- Submit -->
        
  </form>
  
</main>
              
            
!

CSS

              
                body {
  background-color: hsl(0, 0%, 7%);
}

#title {
  margin: 1%;
  color: hsl(0, 0%, 80%);
}

main {
  background-color: hsl(0, 0%, 80%);
  width: auto;
  height: auto;
  margin-top: 3%;
  margin-right: 10%;
  margin-left: 10%;
  border: circle;
  border-radius: 10px;
}

#description {
  padding-top: 2%;
  padding-bottom: 1.5%;
  font-size: 1.5vw;
}

#survey-form {
  
}

.text-sub {
  width: 17vw;
}

.marginSpace {
  margin-top: 1%;
  margin-bottom: 1%;
  font-size: 1vw;
}

#radioLikely {
  margin-top: 2%;
  margin-bottom: 3%
}

#radioLikely0 {
  font-size: 1vw;
  font-weight: bold;
}

.inputBack {
  background-color: rgba(250, 250, 250, 1);
  width: 17vw;
  height: auto;
  border: rounded;
  border-radius: 5px;
}

.submitButton {
  background-color: rgba(96, 96, 96, 1);
  color: rgba(250, 250, 250, 1);
  text-weight: bold;
  height: 2vw;
  border: rounded;
  border-radius: 5px;
}
              
            
!

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