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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <!-- 

Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 
-->
<!DOCTYPE html>
<html lang="en">
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
  <title>surveryPage</title>
<div id="container" class="container">
<header>
  <h1 id="title">This is a Survey Page!</h1>
  <p id="description" class="description">a master page for all your things survey wise.</p>
</header>


  <form id="survey-form" class="form">
    <div id="q1" class="form-group">
      <label for="name" id="name-label">Name:</label><input type="text" id="name" required="required" placeholder="Insert your name...">
    </div>
    <div id="q2" class="form-group">
      <label for="email" id="email-label">E-mail:</label> <input type="email" id="email" required="required" placeholder="Insert your e-mail...">
    </div>
    <div id="q3" class="form-group">
      <label for="number" id="number-label">Age:</label><input type="number" id="number" min="10" max="100" placeholder="Age">
    </div>

    <div id="q4" class="form-group">
    <label for="delivery">Do you deliver on time?</label>
      <input list="deliveryvalues" id="delivery" name="delivery" />

      <datalist id="deliveryvalues">
        <option value="Of Course!!">
        <option value="Sometimes...">
        <option value="My friends do">
        <option value="I don't know how.">
        <option value="What is delivering?">
      </datalist>
    </div>

    <div id="q5" class="form-group">
      <fieldset>
        <legend>Would you recommend what you currently have?</legend>
        <div><input type="radio" id="yes" value="yes" name="g1"><label for="yes">Yes</label></div>
        <div><input type="radio" id="no" value="no" name="g1"><label for="no">No</label></div>
       <div><input type="radio" id="maybe" value="maybe" name="g1"><label for="maybe">Mabe</label></div>
      </fieldset>
    </div>

    <div id="q6" class="form-group">
      <label for="favorite">Choose your favorite:</label>
      <input list="dropdown" id="favorite" name="favorite" />

      <datalist id="dropdown">
        <option value="...">
        <option value="Fav1">
        <option value="Fav2">
        <option value="Fav3">
        <option value="Fav4">
      </datalist>
      
    </div>
    <div id="q7" class="form-group">
      <fieldset>
        <legend id="improvements">What would you like to see improved in this?</legend>
        <div> <input type="checkbox" value="cb1" id="checkbox1"><label for="checkbox1">CheckBox 1!</label> </div>
       <div> <input type="checkbox" value="cb2" id="checkbox2"><label for="checkbox2">CheckBox 2?</label> </div>
       <div> <input type="checkbox" value="cb3" id="checkbox3"><label for="checkbox3">CheckBox 3!?</label> </div>
       <div> <input type="checkbox" value="cb4" id="checkbox4"><label for="checkbox4">CheckBox 4!1!?1</label> </div>
      </fieldset> 
    </div>

    <div id="q8" class="form-group">
      <label for="add-comments" id="add-comments-label">Additional Comments?</label>
      <textarea rows="5" cols="60" id="add-comments" placeholder="Additional Comments?"></textarea>
    </div>
    <div>
      <button type="submit" id="submit" class="button"><span>Submit </span>
    </div>
  </form>
</div>
              
            
!

CSS

              
                body {
  background: radial-gradient(black 15%, transparent 16%) 0 0,
    radial-gradient(black 15%, transparent 16%) 8px 8px,
    radial-gradient(rgba(255, 255, 255, 0.1) 15%, transparent 20%) 0 1px,
    radial-gradient(rgba(255, 255, 255, 0.1) 15%, transparent 20%) 8px 9px;
  background-color: #282828;
  background-size: 16px 16px;
}

.container /*GRID*/ {
  background: radial-gradient(orange 15%, transparent 16%) 0 0,
    radial-gradient(black 15%, transparent 16%) 8px 8px,
    radial-gradient(rgba(255, 255, 255, 0.1) 15%, transparent 20%) 0 1px,
    radial-gradient(rgba(255, 255, 255, 0.1) 15%, transparent 20%) 8px 9px;
  background-color: #282828;
  background-size: 16px 16px;
  font-family: Sriracha;
  color: white;
  width: 100%;
  max-width: 1024px;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto;
  grid-template-areas:
    "header"
    "main";
  flex-flow: column wrap;
  justify-content: center;
  margin: 0 auto;
  grid-gap: 1rem;
}

header /*Parent flex container*/ {
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  grid-area: header;
  max-width: 1024px;
  width: 100%;
  background-color: rgba(38, 38, 38, 0.7); /*70% transparent*/
  margin: 30px auto 30px auto;
}

h1 /*Flex Children - Header*/ {
  font-variant: small-caps;
  font-family: Sriracha;
  font-size: 5vw;
}

.description /*Flex Children - Header*/ {
  font-style: italic;
  font-size: 16px;
  margin-top: -5vw;
}

.form /*Parent flex container*/ {
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  width: 100%;
  max-width: 1024px;
  grid-area: main;
  font-size: 18px;
  font-family: kanit;
  background-color: rgba(38, 38, 38, 0.7); /*70% transparent*/
  color: orange;
}
.form-group/*Parent flex container*/ {
  display: flex;
  flex-flow: column wrap;
}
label,
checkbox,
fieldsert,
dropdown,
textarea {
  width: 100%;
}
.button {
  border-radius: 4px;
  background-color: rgba(38, 38, 38, 0.7); /*70% transparent*/
  border: 3px solid whitesmoke;
  color: whitesmoke;
  text-align: center;
  font-size: 28px;
  padding: 20px;
  width: 200px;
  transition: all 0.5s;
  cursor: pointer;
  margin-top: 1rem;
}

.button span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.button span:after {
  content: "\00bb";
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.button:hover span {
  padding-right: 25px;
}

.button:hover span:after {
  opacity: 1;
  right: 0;
}

              
            
!

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