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.


                <!-- My section -->

<div id="container">

    <h1 id="title">SlingTV Survey Form </h1>

    <p id="description" class="description text-center">
      Thank you for taking the time to complete our survey</p>

  <form id="survey-form">

    <label id="name-label" for="name">Name:</label>
    <input type="text" id="name" class="form-control" placeholder="Enter Your Name" required />

    <label id="email-label" for="email">Email:</label>
    <input type="email" name="email" id="email" class="form-control" placeholder="Enter your email" required />

    <label for="age" id="number-label">Age:</label>
    <input type="number" name="age" id="number" min="10" max="99" class="form-control" placeholder="Select">

        <label for="Gender">Gender:</label>
        <input type="radio" name="gender" value="male" checked> Male<br>
        <input type="radio" name="gender" value="female"> Female<br>
        <input type="radio" name="gender" value="other"> Other


    What is your favorite SlingTV feature?

    <div id="dropdown">
      <select id="most-like" name="most-like" class="form-control" required>
        <option disabled selected value>Select an option</option>
        <option values="50 hours of Cloud DVR">50 hours of Cloud DVR</option>
        <option values="Cheaper than most competitors">Cheaper than most competitors</option>
        <option values="Compatible with all major streaming devices">Compatible with all major streaming devices</option>
        <option values="Offers local channels">Offers local channels</option>
        <option values="Watch live streaming shows wherever you are">Watch live streaming shows wherever you are</option>

    <div class="form-group">
        What would you like to see improved? <span class="clue"> Check all that apply</span>

      <input name="prefer" value="More local channels" type="checkbox" class="input-checkbox" />More local channels

        <input name="prefer" value="Additional Cloud DVR hours" type="checkbox" class="input-checkbox" />Additional Cloud DVR hours

        <label <input name="prefer" value="Less confusing packages" type="checkbox" class="input-checkbox" />Less confusing packages"

        <p id="ready">Any comments or suggestions?</p>

      <div class="commentbox">

        <textarea id="comments" class="input-textarea" name="comments" rows="15" cols="40" placeholder="Enter your comments here..."></textarea>

      <button id="submit" type="submit">Submit</button>


                body {
  background-color: #6495ed;



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