Pen Settings

HTML

CSS

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

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>
<div id="heading">
  <h1 id="title">Student Survey form</h1>
  <p id="description">Thanks for helping us to improve our platform</p>
</div>
<div id="main">
  <form id="survey-form">
    <div class="formy">
      <label id="name-label" for="name">Name</label><br>
      <input id="name" class="little-form" placeholder="Enter your name" type="text" name="name" required ></input>
    </div><br>
    <div class="formy">
      <label id="email-label" for="email">Email</label><br>
        <input id="email" type="email" class="little-form" name="email" placeholder="Enter your Email" required ></input>
    </div><br>
 <div class="formy">
    <label id="number-label"for="number">Age(Optional)</label><br>
      <input type="number" id="number" placeholder="Enter your age" class="little-form" min="10" max="99"><span class="span-class"></span></input>
    
  </div><br>
  <div class="formy">
    <p>Which option best describes your current role?</p>
    <select id="dropdown" name="role" class="little-form" required>
    <option disabled selected value>Select current role</option>
    <option value="student">Student</option>
    <option value="job">Full-time Job</option>
    <option value="learner">Full-time Learner</option>
    <option value="preferNo">Prefer not to say</option>
    <option value="other">Other</option>
    </select>
    <div class="formy">
      <p>Would you recommend us to a friend?</p>
      <label>
        <input name="user-recommend" class="input-radio" type="radio" value="Definitely" checked></input>Definitely</label><br>
      <label>
        <input value="Maybe" type="radio" name="user-recommend" class="input-radio"></input>Maybe</label><br>
  <label>
    <input value="Not-sure" name="user-recommend" class="input-radio" type="radio"></input>Not sure</label>
    </div>
<div class="formy">
  <p>What is your favorite feature or features of our site?</p>
  <select id="most-like" name="mostlike" class="little-form" required>
    <option disabled selected value>Select an option</option>
    <option value="challenges">Challenges</option>
    <option value="tutorials">Tutorials</option>
    <option value="projects">Projects</option>
    <option value="community">Community</option>
    <option value="open-source">Open Source</option>
  </select>
</div>
<div id="new-feature"><p>What features do you think we should improve    (Check all that apply)</p>
  <label><input type="checkbox" name="prefer" class="same" value="front-end"></input>Front-end Projects</label><br>
<label><input name="prefer" type="checkbox" class="same" value="back-end"></input>Back-end Projects</label><br>
<label><input name="prefer" type="checkbox" class="same" value="Visualization"></input>Data Visualization</label><br>
<label><input name="prefer" type="checkbox" class="same" value="other"></input>Other</label><br>
  <textarea id="other" name="prefer" placeholder="Type here for other features"></textarea>
</div>
<div class="formy">
  <p>Any comment or suggestions?</p>
  <textarea placeholder="Enter your comment here" id="comments" class="input-textarea"></textarea>
</div>
<div class="formy">
  <button type="submit" class="submit-button" id="submit">Submit</button>
</div>
  </div>
  </form>
</div>
              
            
!

CSS

              
                body {
  overflow-x: hidden;
  overflow-y: auto;
  background-image: url("https://cdn.wallpapersafari.com/31/27/DJfoQl.jpeg");
  position: relative;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: (0; 255; 0; 100%);
  overflow-y: scroll;
}
#main {
 background-color: white;
  opacity: 0.9;
  text-align: center;
  color: #16db93;
  margin: 10px 200px 10px 200px;
  position: relative;
  box-shadow: 0px 1px 10px 5px;
}

#heading {
  text-align: center;
  color: #4DCCBD;
}
#name, #email, #number {
  padding: 10px;
  width: 120px;
}
              
            
!

JS

              
                
              
            
!
999px

Console