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>
<html>
  <head>
    <!--<style>
    </style>-->
    <body>
      <header>
        <h1 id="title">Customer Satisfaction Survey Form</h1>
        <p id="description"><em>Thank you for helping us improve our platform</em></p>
      </header>
      <article> 
        <!--the form-->
        <form id="survey-form">
          <!--name-->
          <label for="name-label" id="name-label">Name<br>
            <input id="name" type="text" name="name-label" placeholder="Enter your name here" required><br><br>
          </label>
          <!--email-->
          <label for="email-label" id="email-label">E-mail<br>
            <input id="email" name="email-label" type="email" placeholder="Enter your E-mail here" required><br><br>
          </label>
          <!--age-->
          <label for="number-label" id="number-label">Age<br>
            <input id="number" name="number-label" type="number" placeholder="Enter your age here" min="1" max="110" required><br><br>
          </label>
          <!--Dropdown input-->
          
          <!--Radio buttons-->
          <label for="recommend"> 
            Would you recommend us?<br>
            <input id="recommend" type="radio" value="absolutely" name="recommend-label" checked>Absolutely<br>
            <input id="recommend" type="radio" value="maybe" name="recommend-label">Meh... Maybe<br>
            <input id="recommend" type="radio" value="absolutely-not" name="recommend-label">Absolutely... not(you suck btw)<br><br>
          </label>
          <!--Dropdown input-->
          <label for="dropdown">Level of Satisfaction<br></label>
            <select id="dropdown" name="dropdown">
              <option value="Very High">Very High</option>
              <option value="Quite High">Quite High</option>
              <option value="Mediocre">Mediocre</option>
              <option value="Quite Low">Quite Low</option>
              <option value="Very Low">Very Low</option>
            </select>
          <!--Checkboxes-->
          <label for="checkbox">
            <br><br>Where did you found us?<br>
            <input id="checkbox" type="checkbox" value="Olshop" name"checkbox">Tokopedia<br>
            <input id="checkbox" type="checkbox" value="Olshop" name"checkbox">Shopee<br>
            <input id="checkbox" type="checkbox" value="Olshop" name"checkbox">Bukalapak<br>
            <input id="checkbox" type="checkbox" value="Olshop" name="checkbox">Lazada<br>
            <input id="checkbox" type="checkbox" value="Sosmed" name"checkbox">Instagram<br>
            <input id="checkbox" type="checkbox" value="Sosmed" name"checkbox">Twitter<br>
            <input id="checkbox" type="checkbox" value="Friends" name"checkbox">Ricom<br>
            <input id="checkbox" type="checkbox" value="Friends" name"checkbox">Jansen<br><br>
          </label>
          <!--Text area for free feedback-->
          <label for="comment-label">Any Comments or Suggestion for us?<br>
            <textarea id="comment" name="comment-label" placeholder="Enter your comments here..."></textarea><br>
          </label>
          <!--submit button-->
          <button id="submit" type="submit">Submit</button>
        </form>
      </article>
    </body>
  </head>
</html>
              
            
!

CSS

              
                
body{
  background-image: url('https://www.incomeactivator.com/images/freebg1.jpg');
  background-repeat: no-repeat;
  text-align: center;
  line-height: 100%;
  height: 100%;
  width: 100%;
}
article{
  display: inline-block;
  text-align: left;
}
header{
  
}
form{
  background-color: rgba(211, 211, 211 ,0.9);
  padding: 2rem 0.625rem;
  border-radius: 0.25rem;
}
#name,
#email,
#number,
#dropdown,
#comment,
#submit{
  width: 50em;
  height: 2em;
}
textarea{
  min-height: 60px;
  overflow-y: auto;
  word-wrap:break-word
}
button{
  background-color: #85C1E9;
}


              
            
!

JS

              
                
              
            
!
999px

Console