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.


<link rel="preconnect" href="">
<link rel="preconnect" href="" crossorigin>
<link href="" rel="stylesheet">
<body class="body-class">
  <div class="text">
<h1 id="title">Survey form</h1>

<p id="description">simple, fast, elegant</p><br>
<form id="survey-form">
  <div class="name-email-age">
  <label for="name" id="name-label">Name:</label>
  <input type="text" id="name" name="name" placeholder="Name" required>
  <label for="email" id="email-label">Email:</label>
  <input type="email" id="email" name="email" placeholder="email" required>
  <label for="number" id="number-label" placeholder="Number">Age:</label>
  <input type="number" id="number" name="number" placeholder="1" min="1" max="100"><br><br><br>
  first list:<br>
<select name="list1" id="dropdown">
 <option disabled selected value>choose one</option>
  <option value="one">1</option>
  <option value="two">2</option>
  second list<br>
  <input type="radio" name="list2" value="1" checked>option 1</input><br>
<input type="radio" name="list2" value="2">option 2</input><br>

<input type="radio" name="list2" value="3">option 3</input>

third list:<br>
<input type="checkbox" name="list3" value="1">option 1</input><br><input type="checkbox" name="list3" value="2">option 2</input><br><input type="checkbox" name="list3" value="3">option 3</input><br><br><br>

write your own comment:<br>
<textarea rows="5" >

<button id="submit" name="button"> submit this nonsense </button>



                .body-class {
  font-family: 'Zen Antique', serif;
  background-color: 	#000000;
.text {
  color: 	#f0f8ff;
  font-size: 20px;



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