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


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


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.


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.


  <h1 id='title'>Survey Form</h1>
  <p id='description'>A short survey form built in HTML and CSS</p>
  <form id='survey-form'>
    <label for='name' id='name-label'>Name</label>
    <input class="rounded" type='text' id='name' placeholder='Your Name...' required>
    <label for='email' id='email-label'>Email</label>
    <input class="rounded" type='email' id='email' placeholder='Your Email...' required>
    <label for='number' id='number-label'>Age</label>
    <input class="rounded" type='number' id='number' min='13' max=99 placeholder='Your age...'>
    <label for='dropdown' id='dropdown-label'>Employment</label>
    <select id='dropdown'>
      <option disabled selected>Employment Status</option>
      <option value='Full-time'>Full-time</option>
      <option value='Part-time'>Part-time</option>
      <option value='Other'>Other</option>
    <!-- Checkboxes -->
    <label>What Food Do You Like?</label>
    <label><input class="close" type='checkbox' name='cake' value='cake'> Cake</label>
        <label><input class="close" type='checkbox' name='cake' value='cookies'> Cookies</label>
        <label><input class="close" type='checkbox' name='cake' value='brownies'> Brownies</label>
        <label><input class="close" type='checkbox' name='cake' value='icecream'> Icecream</label>
    <!-- Radio Buttons -->
    <label>Yes or No?</label>
    <label><input class="close" type='radio' name='yn' value='yes'> Yes</label>
          <label><input class="close" type='radio' name='yn' value='no'> No</label>
    <!-- Text Area  -->
    <label for='textarea'>Additional Comments</label>
    <textarea id='textarea' rows='3' placeholder='Your Comments...'></textarea>
    <input type='submit' id='submit' class="btn">
  <!-- FCC Testing Bundle -->
  <script src=""></script>


html {
  height: 100%;
  width: 100%;
  margin: 0;
  background: linear-gradient(30deg, green, blue);
  background-repeat: no-repeat;
  background-attachment: fixed;
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fdffff;
#title {
  text-transform: uppercase;
  font-weight: 200;
  margin-bottom: 0;
  font-size: 1.25em;
#survey-form {
  display: flex;
  flex-direction: column;
  margin-top: 1em;
  padding: 2em;
  border-radius: 1em;
  background-color: rgba(0,0,0,0.5);
  color: white;
#survey-form label{
  font-size: 1.5em;
  margin-top: 0.5em;
  height: 2em;
  border-radius: 0.5em;
  border: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 2em;
  height: 3em;
  border: none;
  border-radius: 0.5em;
  background: white;
  margin-top: 2em;
  background-color: lightblue;
@media (min-width: 600px) {
  #survey-form {
    margin-left: 20%;
    margin-right: 20%;



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