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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


                <html lang='eng'>
    <title>Class Survey</title>
    <meta charset='UTF-8'>
    <link rel='stylesheet' href='styles.css'>
    <div id='top-part'>
      <h1 id='title'>Class Survey</h1>

    <form id='survey-form'>
      <p class='flex-item' id='description'><strong>Please give us feedback on your current General English class!</strong></p>

      <label class='flex-item' for='name' id='name-label'>Name: <input type='text' id='name' name='name' placeholder='Enter your name' required/></label>

      <label class='flex-item' for='email' id='email-label'>Email: <input type='email' id='email' name='email' placeholder='Enter your email' required/></label>

      <label class='flex-item' for='age' id='number-label'>Age: <input type='number' id='number' name='age' min='13' max='99' placeholder='e.g. 16'/></label>

        <legend class='flex-item'>Overall, how happy are you with your class?</legend>

        <!--Putting <input> inside <label> element lets me make whole option align vertically with 'block' class-->
        <label class='flex-item' for='loveit'><input type='radio' id='loveit' name='overall' value='loveit'/> Love it! :DDD</label>

        <label class='flex-item' for='prettygood'><input type='radio' id='prettygood' name='overall' value='prettygood'/> It's good. :)</label>

        <label class='flex-item' for='ok'><input type='radio' id='ok' name='overall' value='ok'/> It's OK.</label>

        <label class='flex-item' for='meh'><input type='radio' id='meh' name='overall' value='meh'/> Meh.</label>


        <legend class='flex-item'>What do you like about your class?</legend>

        <label class='flex-item' for='activities'><input type='checkbox' id='activities' name='likes' value='activities'/> Fun activities</label>

        <label class='flex-item' for='learn'><input type='checkbox' id='learn' name='likes' value='learn'/> I'm learning a lot</label>

        <label class='flex-item' for='speaking-practise'><input type='checkbox' id='speaking-practise' name='likes' value='speaking'/> Lots of speaking practise</label>

        <label class='flex-item' for='funny-teacher'><input type='checkbox' id='funny-teacher' name='likes' value='teacher'/> My teacher is funny</label>


      <label class='flex-item' for='dropdown'>What do you need to practise the most?
      <select class='flex-item' id='dropdown'>
        <option value=''>Please choose an option</option>
        <option value='grammar'>Grammar</option>
        <option value='vocabulary'>Vocabulary</option>
        <option value='listening'>Listening</option>
        <option value='speaking'>Speaking</option>
        <option value='reading'>Reading</option>
        <option value='writing'>Writing</option>

      <label class='flex-item' for='comments'>Any comments or suggestions?</label>
      <textarea class='flex-item' id='comments' name='comments' placeholder='Enter your comments or suggestions here'></textarea>

      <button class='flex-item' type='submit' id='submit'>




                @import url('');

* {
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;

body {
  font-family: 'Roboto', serif, 'Helvetica', 'Arial',  sans-serif;
  line-height: 1.5;
  padding: 2em;
  background-color: #edd7f4;
  color: #4d4d4d;

#title {
  padding-bottom: 20px;

#top-part {
  text-align: center;

#survey-form {          /*Flex container*/
  display: flex;
  flex-direction: column;
  align-content: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  border-radius: 2%;

label {                 /*Stacks label elements vertically*/
  display: block;

  margin: 7px;

#comments {
  height: 100px;

#submit {               /*Button*/
  width: 100px;
  margin: 0 auto;



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