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

Auto Save

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

              
                <!DOCTYPE html>
<html lang="en">
<head>
  <link rel="stylesheet" href="styles.css">
<meta charset="UTF-8" />
<title>freeCodeCamp Survey Form</title>
<link rel="stylesheet" href="style.css">
</head>
<body> 
  <h1 id="title">freeCodeCamp Survey Form</h1>
  <p id="description"><em>Thank you for taking the time to help us improve the platform</em></p>
  <form id="survey-form">
    <label id="name-label"><strong>Name </strong><input id="name" type="text" placeholder="Enter your name" required /></label>
    <label id="email-label"><strong>Email <input id="email" type="email" placeholder="Enter your email" required /></label>
    <label id="number-label"><strong>Age </strong><input id="number" min="10" max="99" type="number" placeholder="Enter your age" required /></label>
    </form>
<form>
    <label>Which option best describes your current role?</label>
    <select id="dropdown">
      <option>Select Current Role</option>
      <option>Student</option>
      <option>Full Time Job</option>
      <option>Full Timer Learner</option>
      <option>Prefer not to Say</option>
      <option>Other</option>
      </select>
</form>
<form>
  <label>Would you recommend freeCodeCamp to a friend?
  </label>
  <form>
<label for="definitely">Definitely</label>
<input type="radio" name="options" id="definitely" value="definitely" />
<label for="maybe">Maybe</label>
<input type="radio" name="options" id="maybe" value="maybe" />
<label for="notsure">Not Sure</label>
<input type="radio" name="options" id="notsure" value="notesure" />
  </form>
  <form>
    <label>What would you like to see improved? (Check all that apply)</label>
    <label for="front-end projects">Front-end Projects</label>
     <input type="checkbox" value="front-end projects" id="front-end projects" />
     <label for="back-end projects">Back-end Projects</label>
     <input type="checkbox" value="back-end projects" id="back-end projects" />
     <label for="data visualization">Data Visualization</label>
     <input type="checkbox" value="data visualization" id="data visualization" />    <label for="challenges">Challenges</label>
     <input type="checkbox" value="challenges" id="challenges" />
     <label for="open source community">Open Source Community</label>
     <input type="checkbox" value="open source community" id="open source community" />
     <label for="gitter help rooms">Gitter help rooms</label>
     <input type="checkbox" value="gitter help rooms" id="gitter help rooms" />
     <label for="videos">Videos</label>
     <input type="checkbox" value="videos" id="videos" />
     <label for="city meetups">City Meetups</label>
     <input type="checkbox" value="city meetups" id="city meetups" />
     <label for="wiki">Wiki</label>
     <input type="checkbox" value="wiki" id="wiki" />
     <label for="forum">Forum</label>
     <input type="checkbox" value="forum" id="forum" />
     <label for="additional courses">Additional Courses</label>
     <input type="checkbox" value="additional courses" id="additional courses" />
     <form>
       <label>Any comments or suggestions?</label>
     <textarea rows="10" class="form-control" placeholder="Enter you comment here"></textarea>
     </form>
 <button id="submit">Submit</button>
</body>
</html>  
              
            
!

CSS

              
                body {
  background-color: #ffc107; 
  font-family: 'Arial', sans-serif;
  text-align: center;
}

#title {
  font-size: 28px;
  color: #333;
  margin-top: 20px;
}

#description {
  font-style: italic;
  color: #666;
}

#survey-form {
  background-color: #fff;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

label {
  display: block;
  margin: 15px 0;
  font-weight: bold;
  text-align: left;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 4px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 16px;
}

select {
  height: 35px;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 5px;
}

button {
  background-color: #f85f3f;
  color: #fff;
  padding: 10px 20px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

button:hover {
  background-color: #ff715b;
}



              
            
!

JS

              
                
              
            
!
999px

Console