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">Thank you for taking the time to do this survey</P>
<form id="survey-form">
  <label for="name" id="name-label">Name:</label><br>
  <input id="name" type="text" placeholder="Enter your name" required>
  <label for="email" id="email-label">Email:</label><br>
  <input id="email" type="email" placeholder="Enter your email" required><br>
  <lable for="number" id="number-label">Number:</lable><br>
  <input id="number" type="number" min="0" max="10" placeholder="number" required><br>
  <lable id="dropdown">ocupation</lable><br>
  <select name="ocupation" id="dropdown">
    <option selected disabled>ocupation</option>
  <lable id="name">are you pleased with our services?</lable><br>
  <input type="radio" name="option" value="extremly-pleased">
  <lable>extermely pleased</lable><br>
  <input type="radio" name="option" value="moderately-pleased">
  <lable>moderately pleased</lable><br>
  <input type="radio" name="option" value="not-pleased">
  <lable>not pleased</lable><br>
  <lable>any comments or suggestions?</lable><br>
  <textarea name="comments">enter your comments
  <H2>select what applies to you</H2>
  <input type="checkbox" value="stupid"
    <input type="checkbox" value="dumb">
    <input type="checkbox" value="fake">
    <input type="checkbox" value="smart">
  <button id="submit">submit</button>





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