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 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"> freeCodeCamp Survey Form </h1>
		<p id="description">Thank you for taking the time to help us improve the platform </p>
	</header>
		  <form id="survey-form">

			<div class="form-div">
			<label for="name" id="name-label" class="titles">Name</label>
			<input name="name" id="name" type="text" placeholder="Enter Your Name" required>
		  </div>
		  
		  <div class="form-div">
			<label for="email" id="email-label" class="titles">Email</label>
			<input name="email" id="email" type="email" placeholder="Enter Your Email" required>
		  </div>

		  <div class="form-div">
			<label for="number" id="number-label" class="titles"> Age <span>(optional)</span> </label>
			<input name="number" id="number" type="number" placeholder="Age" min="15" max="99">
		  </div>

		  <div class="form-div">
			<p class="titles"> Which option best describes your current role?</p>
			<select id="dropdown" name="role" class="control" 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>

		  <div class="form-div">			
			<p class="titles">Whould you recommend freeCodeCamp to a friend ?</p>
			<label for="definitely"><input id="definitely" class="radio" name="recommendation" type="radio" value="definitely" checked>Definitely</label> <br>
			<label for="maybe"><input id="maybe" class="radio" name="recommendation" type="radio" value="maybe">Maybe</label> <br>
			<label for="not-sure"><input id="not-sure" class="radio" name="recommendation" type="radio" value="not-sure">Not Sure</label>
		  </div>

		  <div class="form-div">
			<p class="titles">What is your favorite feature of freeCodeCamp?</p>
			<select id="favourites" class="control" name="feature" required>
				<option disabled selected value> Select an Option </option>
				<option value="Challenges">Challenges</option>
				<option value="Projects">Projects</option>
				<option value="Community">Community</option>
				<option value="Open Source">Open Source</option>
			</select>
		  </div>

		  <div class="form-div">
			<p class="titles">What would you like to see improved? <span>(Check all that apply)</span></p>
			<label for="front-end-projects">
				<input id="front-end-projects" class="checkbox" name="suggestion" value="front-end-projects" type="checkbox">Front-End Projects</label> <br>
			<label for="back-end-projects">
				<input id="back-end-projects" class="checkbox" name="suggestion" value="back-end-projects" type="checkbox">Back-End Projects</label> <br>
			<label for="data-vizualisation">
				<input id="data-vizualisation" class="checkbox" name="suggestion" value="data-vizualisation" type="checkbox">Data Vizualisation</label> <br>
			<label for="challenges">
				<input id="challenges" class="checkbox" name="suggestion" value="challenges" type="checkbox">Challenges</label> <br>
			<label for="open-source-community">
				<input id="open-source-community" class="checkbox" name="suggestion" value="open-source-community" type="checkbox">Open Source Community</label> <br>
			<label for="gitter-help-rooms">
				<input id="gitter-help-rooms" class="checkbox" name="suggestion" value="gitter-help-rooms" type="checkbox">Gitter Help Rooms</label> <br>
			<label for="videos">
				<input id="videos" class="checkbox" name="suggestion" value="videos" type="checkbox">Videos</label> <br>
			<label for="city-meetups">
				<input id="city-meetups" class="checkbox" name="suggestion" value="city-meetups" type="checkbox">City Meetups</label> <br>
			<label for="wiki">
				<input id="wiki" class="checkbox" name="suggestion" value="wiki" type="checkbox">Wiki</label> <br>
			<label for="forum">
				<input id="forum" class="checkbox" name="suggestion" value="forum" type="checkbox">Forum</label> <br>
			<label for="additional-courses">
				<input id="additional-courses" class="checkbox" name="suggestion" value="additional-courses" type="checkbox">Additional Courses</label> <br>
		  </div>

		  <div class="form-div">
			  <p class="titles" >Any comments or suggestions?</p>
			  <textarea id="comments" name="comment" placeholder="Enter your comments here..."></textarea>  
		  </div>

		  <div class="form-div">
			  <button type="submit" id="submit"> Submit </button>
		  </div>
		  </form>
              
            
!

CSS

              
                body {
    background-color:rgba(69, 69, 105, 0.7) ;
    background-size: 100%;
    background-repeat: no-repeat;
    font-family:'Poppins', sans-serif;
    margin: 0;
}

#title{
    margin-left:25%;
    margin-right:25%;
    width:50%;
    padding:0 3%;
    color:#fff;
    text-align: center;
    font-weight: bold;
}

#description{
    margin-left:25%;
    margin-right:25%;
    width:50%;
    padding:0 3%;
    text-align: center;
    font-style: italic;
    color: #fff;
}

#survey-form{
    text-align: left;
    margin-left: 25%;
    margin-right: 25%;
    background-color: rgba(27, 27, 50,0.9);
    border-radius: 5px;
    padding: 3%;
    width: 50%;
    font-family:Arial, Helvetica, sans-serif;
}

.form-div{
    display: block; 
    padding: 10px;
    color:#fff;
    margin: 0 auto;
}

#name, #email, #number{
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin-top: 10px;
    border-radius: 5px;
    padding: 10px;
    border:1px solid black;
}

.control{
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    border-radius: 5px;
}

.radio, .checkbox {
    margin-bottom: 10px;
    padding-bottom: 5px;
}

span{
    font-size: 13px;
    margin-left: 5px;
    padding: 1px 0px;
}

#comments{
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 80px;
    font-size: 15px;
    padding-top: 10px;
    padding-left: 10px;
    margin: 0 auto;
}

#submit{
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 50px;
    text-align: center;
    background-color: #2e8b57;
    color: #fff;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
}

              
            
!

JS

              
                
              
            
!
999px

Console