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.


                <script src=""></script

<div class="container">
    <h1 id="title">Travel Survey Form</h1>
  <p id="description">Take the survey and find your dream destination</p>
<form id="survey-form">
 <div class="form-section"> 
  <label id="name-label" for="name">Name</label>
  <input id="name" name="name" type="text" placeholder="Enter your name" required/>
  <div class="form-section">
  <label id="email-label" for="email">Email</label>
  <input id="email" name="email" type="email" placeholder="Enter your email" required/>
  <div class="form-section">
    <label id="number-label" for="number">Number of travelers</label>
    <input id="number" type="number" name="number" min="1" max="20" placeholder="Travelers" />
  <div class="form-section">
    <p>Which option best describes your ideal day?</p>
   <select id="dropdown" name="day" required>
     <option disabled selected value>Select ideal day</option>
     <option value="beach">Day at the the beach</option>
     <option value="museums">Visit museums and galleries</option>
     <option value="food">Food tour</option>
     <option value="mountains">Go hiking & discover nature</option>
     <option value="city">City walking tour</option>
     <option value="culture">Discover local culture</option>
  <div class="form-section">
    <p>Would you be interested in a group tour?</p>
    <label for="option1">
      <input name="group-tour" value="yes" type="radio" id="option1">Yes</label>
    <label for="option2">
      <input name="group-tour" value="maybe" type="radio" id="option2">Maybe</label>
    <label for="option3">
      <input name="group-tour" value="no" type="radio" id="option3">No</label>
  <div class="form-section">
    <p>Which are some of your favorite activities?<span> (Check all that apply)</span></p>
      <input name="activity" value="swimming" type="checkbox"/>Swimming</label>
      <input name="activity" value="scuba-diving" type="checkbox"/>Scuba diving</label>
      <input name="activity" value="hiking" type="checkbox"/>Hiking</label>
      <input name="activity" value="sightseeing" type="checkbox"/>Sightseeing</label>
      <input name="activity" value="relaxing" type="checkbox"/>Relaxing</label>
      <input name="activity" value="nightlife" type="checkbox"/>Nightlife</label>
  <div class="form-section">
    <p>Any other comments or preferences:</p> 
    <textarea id="comments" name="comment" placeholder="Enter any comments or preferences..."></textarea>
  <div class="form-section">
    <button type="submit" id="submit" class="submit-button">Submit</button>


                /* rgba(117,191, 180,0.7) green
font-family: 'Yanone Kaffeesatz', sans-serif;

@import url(';700&display=swap');

html { 
  box-sizing: border-box;
  font-size: 10px;
  font-family: 'Yanone Kaffeesatz', sans-serif;

body {
  text-align: center;
  background-image: url(;
  background-color: rgba(117,191, 180);
  background-position: center; 
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0;

form { 
  background-color: #fff;
  box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  padding: 30px 30px;
  max-width: 450px;
  margin: 0 auto;

h1 {
  font-size: 6rem;
  font-weight: 700;
  margin-bottom: 0;
  color: #fff;
  text-shadow: 2px 2px 8px #111;

#description {
  font-size: 2rem;
  font-style: italic;
  margin-top: 0;
  color: #fff; 
  text-shadow: 2px 2px 8px #111;

.form-section { 
  text-align: left;
  margin-bottom: 20px;

.form-section label {
  display: block;
  margin-bottom: 10px;

.form-section input, .form-section select { 
  border: 1px solid black;
  border-radius: 3px;
  padding: 10px;
  display: block;

.form-section input[type=radio], .form-section input[type=checkbox]{
  width: auto; 
  display: inline-block;
  padding: 5px;

.form-section textarea { 
  width: 95%;
  padding: 20px 10px;
  font-family: inherit;
  font-size: 1.5rem;

button { 
  background-color: #39bfa7;
  padding: 15px 100px;
  color: white; 
  border: 1px solid #777;
  border-radius: 4px;
  box-shadow: 2px 4px 8px #777;
  display: block; 
  width: 100%;


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