Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

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

<body>
  
  <div class="well">
    <div class="center">
      <p id="description">Tell us about your best travel experience.</p><br><br>
    </div>
   
  <form action=< id="survey-form" method="GET" action="https://crossorigin.me/https://freecodecamp.com">
    <div>
      <label id="name-label" for="name">Name</label>
    <input type="text" id="name" name="name" placeholder="Enter your name.." required /><br><br>

    <label id="email-label" for="email">Email</label>
    <input type="email" id="email" name="email" placeholder="Enter your email.." required><br><br>   
   
  <label id="number-label" for="age">Age</label>
    <input type="number" id="number" name="age" min="1" max="100" class="input-field" placeholder="Enter your age..">   
  </div><br><br>
    
    <div>
    <label for="age">Where was your best travel experience:</label>
    <input type="text" id="destination" name="bestdestination" placeholder="Enter your destination..">  
    </div><br>
 
     <p>What was the reason for your travel?</p>

  <div>
  <select id="dropdown" name="reason">
    <option value="first">Leisure</option>
    <option value="second">Business</option>
    <option value="third">Education Program</option>
  </select>
      </div><br>
 
    <div>
    <p>What did you enjoy best about the destination? (Check all that apply)</p>
<label class="container">Architecture
  <input name="prefer" value="1" type="checkbox" checked="checked">
  <span class="checkmark"></span>
</label>

<label class="container">Food
  <input name="prefer" value="2" type="checkbox">
  <span class="checkmark"></span>
</label>
    
<label class="container">Landscape
  <input name="prefer" value="3" type="checkbox">
  <span class="checkmark"></span>
</label>
    
<label class="container">Activities
  <input name="prefer" value="4" type="checkbox">
  <span class="checkmark"></span>
</label>

<label class="container">Culture
  <input name="prefer" value="5" type="checkbox">
  <span class="checkmark"></span>
</label>  
    </div><br>
    
<p>If you could live the experience differently what would you do?</p>  

  <div>
  <label class="container2">Spend more money
  <input type="radio" checked="checked" name="radio" value="spend more">
<span class="checkmark"></span>
</label>  
  <label class="container2">Spend less money
  <input type="radio" checked="checked" name="radio" value="spend less">
  <span class="checkmark"></span>
</label> 
 <label class="container2">Learn the language
  <input type="radio" checked="checked" name="radio" value="learn language">
  <span class="checkmark"></span>
</label>
<label class="container2">Explore more
  <input type="radio" name="radio" value="explore more">
  <span class="checkmark"></span>
</label>
<label class="container2">Learn more about the locals
  <input type="radio" name="radio" value="learn about the locals">
  <span class="checkmark"></span>
</label>
<label class="container2">Other
  <input type="radio" name="radio" value="other">
  <span class="checkmark"></span>
</label>
  </div><br>
    
 <p>Where do you want to go visit next? </p>   
 
  <textarea name="message" rows="10" cols="50">Enter your comments here...</textarea>
  <br>
  <button id="submit" type="submit">Submit</button>
</form>  
   </div>
</body>
              
            
!

CSS

              
                header {
  text-align: center;
  }

body {
 font-size: 20px;
  background-color: hsla(229, 16%, 61%, 0.5); 
  text-align: justify;  
  
  }

form {
 font-size: 20px;
 
  }

.well {
 background-color: white;
 margin-left: 10%; 
 margin-right: 10%;
 padding:20px;
 padding-top: 50px;
 border-radius:6px
  }

.center {
text-align: center;
  }

#number-label {
  margin-left: 15px; 
}

.input-field {
  width: 125px;
}

.container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 20px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  
}

.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: grey;
   border-radius: ;
}

.container:hover input ~ .checkmark {
    background-color: #ccc;
}

.container input:checked ~ .checkmark {
    background-color: black;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.container input:checked ~ .checkmark:after {
    display: block;
}

.container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

select {
  font-size: 15px
}

.container2 {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 20px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container2 input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 50%;
}

.container2:hover input ~ .checkmark {
    background-color: #ccc;
}

.container2 input:checked ~ .checkmark {
    background-color: black;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.container2 input:checked ~ .checkmark:after {
    display: block;
}

.container2 .checkmark:after {
 	top: 9px;
	left: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
}

textarea {
font-size: 12px;
}

#submit {
font-size: 20px;
background-color: hsla(229, 16%, 61%, 0.5);
}


              
            
!

JS

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

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - 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. 

              
            
!
999px

Console