Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

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


Auto Save

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.


                <script src=""></script>

<h1 id="title"> Survey form </h1>
  <p id="description"> What are your thoughts about the final season of Game of Thrones? </p>
  <form id="survey-form">
    <label id="name-label">Name:</label>
    <input type="text" id="name" "text" required placeholder="name here"> 
        <label id="email-label"> Email:</label>
    <input type="email" id="email" "email" required placeholder="email address here">
        <label id="number-label"> Number: </label>
    <input type="number" id="number" placeholder="phone no here" min="0" max="100" required>
        <fieldset id="dropdown">
          <div id="dropdown"required placeholder="choose by clicking here">
        <legend id="queen"> I thought the following should sit on the Iron throne:</legend>  
        <select id="dropdown-content">
        <option value="Jon Snow">Jon Snow</option>
        <option value="Tyrion Lannister"> Tyrion Lannister</option>
          <option value="Danyenys Targaryen"> Danyenys Targaryen</option>
       <div id="radio">
        <legend id="next-label">What series would you like to see next?</legend>
        <label><input id="Westeros" type="radio" name="Sequel" value="West of Westeros"> West of Westeros </label>
        <label><input id="drogon" type="radio" name="Sequel" value="Adventures with Drogon"> Adventures with Drogon </label>
        <label><input id="like" type="checkbox" name="Finale" value="I liked the Finale."> I liked the Finale. </label>
          <label><input id="not like" type="checkbox" name="Finale" value="I did not like the Finale."> I did not like the Finale. </label> 
        <textarea name="message" row="10" cols="30" placeholder="Who is your favorite character?"></textarea>
  <button type="submit" id="submit"> Submit </button>



  background-color: #6495ED;
.dropdown-Content {
  display: inline-block;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  z-index: 1;

.dropdown:hover .dropdown-content {
  display: block;

[type="checkbox"] {
  margin: 20px 0px 20px 0px;

.radio {
  position: relative;
  display: block;
  legend align: top;

description {
  font-size: 12px;
  z-index: auto;

#series-question {
 font-size: 14px;
 color: blue;

.input [type=number] {
  width: 100%;

dropdown-label {
  display: inline-block;
  legend align: bottom;


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