css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<h1 id="title">Website Feedback Survey</h1>

<form id="survey-form">
	<p id="description">Fill the fields below to let us know how we can make things better for our users</p>
	<label for="name" id="name-label">Name:</label>
	<input type="text" id="name" placeholder="Enter full name" required>
	<label for="email" id="email-label">Email:</label>
	<input type="email" id="email" placeholder="Enter email address" required>
	<label for="age" id="number-label">Your age:</label>
	<input type="number" name="age" id="number" min="1" max="150" placeholder="Enter your age">
	<label for="dropdown">What do you like the most about our site?</label>
	<select name="dropdown" id="dropdown">
		<option disabled="" selected="" value="">Select an option</option>
		<option value="">Content</option>
		<option value="">User Interface</option>
		<option value="">Interactivity</option>
		<legend>How likely are you to recommend us to your friends?</legend>
		<input type="radio" name="gender" value="highly"> Highly Likely<br>
    <input type="radio" name="gender" value="somewhat"> Somewhat Likely<br>
    <input type="radio" name="gender" value="unlikely"> Highly Unlikely
		<legend>Things that should be improved:</legend>
		<input type="checkbox" name="ui" value="user-interface"> User Interface <br>
		<input type="checkbox" name="content" value="content"> Content <br>
		<input type="checkbox" name="interactivity-level" value="interactivity-Level"> Interactivity Level <br>
		<input type="checkbox" name="animations" value="animations"> Animations <br>
	<p>Further Comments</p>
  <textarea name="comments" id="comments" cols="30" rows="10"></textarea>
	<button type="submit" id="submit">

              @import url('https://fonts.googleapis.com/css?family=Roboto:400,700');

body {
	width: 80%;
	margin: 0 auto;
	font-size: 18px;
	font-family: 'Roboto', sans-serif;
	background: linear-gradient(to right, rgba(73,155,234,1) 0%, rgba(35,126,229,1) 52%, rgba(32,124,229,1) 56%);

h1 {
	font-size: 40px;
	text-align: center;

form {
	padding: 2rem;
	background: white;
	border-radius: 20px;
label, input, select { 
	margin-bottom: 10px;

label, textarea {
	display: block;
	font-weight: 700;

input, textarea {
	width: 30%;
	padding: 10px;
	outline: none;
	border-radius: 4px;
	border: 1px solid black;

[type="radio"], [type="checkbox"] {
	width: 20px;

select {
	height: 35px;
	width: auto;
	padding: 5px;
	margin-top: 15px;
	border: 1px solid black;
	border-radius: 4px;

fieldset {
	margin: 40px 0;
	border-radius: 4px;
	border: 1px solid black;

button {
	border: 0;
	color: white;
	border-radius: 4px;
	padding: 10px 20px;
	margin-top: 20px;
	background: linear-gradient(to right, rgba(73,155,234,1) 0%, rgba(35,126,229,1) 52%, rgba(32,124,229,1) 56%);
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................