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

              
                <!DOCTYPE html>
<html>
<head>
	<meta content="width=device-width, initial-scale=1.0" name="viewport">
	<link href='https://fonts.googleapis.com/css?family=Berkshire Swash' rel='stylesheet'>
	<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js">
	</script>
	
</head>
  <!-- title -->
<body>
	<h1 id="title">Survey Form</h1>
  <!-- description -->
	<p id="description">Let us know how we can improve FreeCodeCamp</p>
  <!-- form begins -->
	<div class="survey-container">
		<form action="/action_page.php" id="survey-form" name="survey-form">
			<!-- name form element -->
			<div class="labels">
				<label for="name" id="name-label">Enter your name:</label>
			</div><input id="name" placeholder="Name" required="" type="text"><br>
			<!-- email form element -->
			<div class="labels">
				<br>
				<label for="email" id="email-label">Enter your email:</label><br>
			</div><input class="input-field" id="email" placeholder="Email" required="" type="email"><br>
			<!-- age form element -->
			<div class="labels">
				<br>
				<label for="age" id="number-label">Enter your age:</label>
			</div><input class="input-field" id="number" max="120" min="10" name="age" placeholder=" Age"
			type="number"><br>
			<!-- dropdown menu -->
			<br>
			<label for="most-like">What's your favorite part of FCC:</label><br>
			<select id="dropdown">
				<option disabled selected value="">
					Select an option
				</option>
				<option value="curriculum">
					Curriculum
				</option>
				<option value="projects">
					Projects
				</option>
				<option value="community">
					Community
				</option>
				<option value="opensource">
					Opensource
				</option>
			</select><br>
			<!-- radio buttons -->
			<br>
			<label for="preferences">Would you recommend FCC to a friend?</label><br>
			<div class="radio">
				<nobr><input class="radio" name="radio" type="radio" value="Definitely"> Definitely</nobr>
				<nobr><input class="radio" name="radio" type="radio" value="Maybe"> Maybe</nobr>
				<nobr><input class="radio" name="radio" type="radio" value="Probably not"> Probably not</nobr>
			</div>
      <!-- check boxes -->
			<br>
			<label for="preferences">What areas of FCC need improvement?<br>
			(Check all that apply):</label>
			<div class="checkboxes">
				<br>
				<input class="checkbox" name="front end projects" type="checkbox" value="front end projects">
				Front end projects<br>
				<input class="checkbox" name="back end projects" type="checkbox" value="back end projects">
				Back end projects<br>
				<input class="checkbox" name="challenges" type="checkbox" value="challenges"> Challenges<br>
				<input class="checkbox" name="online forum" type="checkbox" value="online forum"> Online
				forum<br>
				<input class="checkbox" name="videos" type="checkbox" value="videos"> Videos<br>
				<input class="checkbox" name="local meetups" type="checkbox" value="local meetups"> Local
				meetups<br>
			</div>
      <!-- extra comments section -->
			<br>
			<form action="/action_page.php" id="usrform" name="usrform">
				<br>
				<label for="preferences">Anything else you'd like to ad?</label><br>
				<br>
				<textarea form="usrform" name="comment">Comments go here...</textarea><br>
				<!-- submit button -->
				<br>
				<input id="submit" type="submit"><br>
				<br>
			</form>
      <!-- form ends -->
		</form>
	</div>
	<footer>
		Designed & coded by: <a href="https://codepen.io/hatbearingoctopus/" target=
		"_blank">Hatbearingoctopus</a><!-- link to -->
	</footer>
</body>
</html>
              
            
!

CSS

              
                

html, body {
	background: url("https://images.unsplash.com/photo-1546395067-d6d1f73bb047?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60");
	text-align: center;
	font-family: 'Berkshire Swash';
  /* Scale typography */
	font-size: calc(14px + (26 - 14) * ((100vw - 300px) / (1600 - 300)));
	line-height: calc(1.3em + (1.5 - 1.2) * ((100vw - 300px)/(1600 - 300)));
}
#title {
	font-size: 7vw;
	color: #f2f2f2;
	text-shadow: 4px 4px #000000;
}
#description {
	font-size: 2vw;
	color: #f2f2f2;
	text-shadow: 4px 4px #000000;
}
.survey-container {
	background: #a3c2c2;
	margin: auto;
	padding: 13px;
	padding-bottom: 23px;
	padding-top: 23px;
	width: 66%;
	max-width: 997px;
	border: 4px solid;
	border-radius: 3px;
}
.radio {
	display: inline-block;
	margin-top: 1%;
	margin-bottom: 4%;
	margin-right: 0%;
	margin-left: 0%;
	text-align: center;
	font-size: 1.5vw;  /* scale typography */
}
.checkboxes {
	margin-top: 0%;
	margin-bottom: 0%;
	margin-right: 30%;
	margin-left: 30%;
	text-align: left;
	font-size: 1.5vw; /* scale typography */
}
#submit {
	background-color: #2d8659;
	box-shadow: 5px 2px #000000;
	color: black;
	padding: 15px 32px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
}
a {
	color: #ffc299; 
}
footer {
	padding: 10px;
	color: #e6e6e6;
}
              
            
!

JS

              
                
              
            
!
999px

Console