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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


                <main id="everything">
  <h1 id="title">What kind of fantasy being are you?</h1>
  <p id="description">Remember Quizilla? This is a survey form in the style of those early Internet quizzes us Millenials were so fond of... enjoy!</p>
  <form id="survey-form" action="">
    <p><label id="name-label" for="name">Your Name: </label>
      <input id="name" type="text" class="box" placeholder="Sabriel Abhorsen" required>
    <p><label id="email-label" for="email">Email where you would like to receive results: </label>
      <input id="email" type="email" class="box" placeholder="" required>
    <p><label id="number-label" for="number">What year were you born? </label>
      <input id="number" type="number" class="box" placeholder="1990" min="1900" max="2022"></label>
    <p><label for="dropdown">Did you use Quizilla?</label>
      <select name="Quizilla" id="dropdown" class="box">
        <option value="yess">Yes!</option>
        <option value="vague">I vaguely remember it.</option>
        <option value="noo">Don't think so.</option>
        <option value="omg">I spent all my time creating quizzes and/or reading fanfic!</option>
      <legend>What is your gender? (Check all that apply)</legend>
      <p><label for="fluid"><input id="fluid" value="fluid" type="checkbox">Genderfluid</label></p>
      <p><label for="nonbinary"><input id="nonbinary" value="nb" type="checkbox">Nonbinary</p>
      <p><label for="transfem"><input id="transfem" value="transfem" type="checkbox">Trans gal</label></p>
      <p><label for="transmasc"><input id="transmasc" value="transmasc" type="checkbox">Trans guy</label></p>
      <p><label for="cisfem"><input id="cisfem" value="cisfem" type="checkbox">Cis gal</label></p>
      <p><label for="cisman"><input id="cisman" value="cisman" type="checkbox">Cis guy</label></p>
      <p><label for="magic"><input id="magic" value="magic" type="checkbox">Nothing ordinary mortals can perceive...</label></p>
      <legend>What kind of cat would you most like to pet?</legend>
      <p><label for="darkmeow"><input id="darkmeow" value="dark" type="radio" name="cat">A stormy cat full of darkness.</label></p>
      <p><label for="rainbowmeow"><input id="rainbowmeow" value="rainbow" type="radio" name="cat">A rainbow cat with bright colorful stripes.</label></p>
      <p><label for="softmeow"><input id="softmeow" value="soft" type="radio" name="cat">A soft cuddly cat the color of custard.</label></p>
      <p><label for="sunmeow"><input id="sunmeow" value="sun" type="radio" name="cat">An angelic cat that sparkles in the sun.</label></p>
      <legend>How do you react when you meet new people?</legend>
      <p><label for="hug"><input id="hug" value="hug" type="radio" name="greeting">I run up to them and give them a hug! (With consent.)</label></p>
      <p><label for="shy"><input id="shy" value="shy" type="radio" name="greeting">I look at them uncertainly and give a shy smile.</label></p>
      <p><label for="showoff"><input id="showoff" value="showoff" type="radio" name="greeting">I tilt my face to show off my beautiful features and my best side.</label></p>
      <p><label for="ignore"><input id="ignore" value="ignore" type="radio" name="greeting">I ignore them. Why should I give them my attention?</label></p>
      <legend>What sort of magic do you possess?</legend>
      <p><label for="comfort"><input id="comfort" value="comfort" type="radio" name="magic">The sort that comforts lost children and pets, or anyone who is sad!</label></p>
      <p><label for="glitter"><input id="glitter" value="glitter" type="radio" name="magic">I can make things glitter, or at least more pleasing to the eye.</label></p>
      <p><label for="lightning"><input id="lightning" value="lightning" type="radio" name="magic">The sort that sets your hair on end. I'm like a lightning storm all bottled up.</label></p>
      <p><label for="dance"><input id="dance" value="dance" type="radio" name="magic">The sort that gets people out of their seats and DANCING!</label></p>
      <legend>What do you eat?</legend>
        <label="dew"><input id="dew" value="dew" type="radio" name="food">Dewdrops gathered at dawn.</label>
        <label="firstborns"><input id="firstborns" value="firstborns" type="radio" name="food">Tender firstborn children... or at least their auras *smiles*</label>
        <label="galaxy"><input id="galaxy" value="galaxy" type="radio" name="food">Galaxies and nebulas (that don't mind me eating them, of course).</label>
        <label="soup"><input id="soup" value="soup" type="radio" name="food">Hearty soups made from seasonal veggies :)</label>

    <p><label for="speech" class="question" id="lastone">Last but not least, what would you say to express yourself? Be creative!</label></p>
    <p><textarea id="speech" value="speech" class="box" rows="4" cols="60">Write your unique thoughts or greeting upon meeting another being.</textarea></p>
    </p><button id="submit" type="submit" class="box">See your results!</button>
    <p><em>Image credit: Krystal Ng on Unsplash</p>
    <p>Made by Jin Zeng for FreeCodeCamp survey form project.</em></p>


                #everything {
  background-image: url("");
  background-position: center;
  font-family: verdana, sans-serif;
  text-align: center;
  padding: 20px;
  margin: 20px;

#title {
  font-size: 30px;

#description {
  font-size: 20px;

.question {
  font-weight: 600;
  color: black;
  background-color: #00d6ff;
  padding: 5px;

legend {
  font-weight: 600;
  color: black;
  background-color: #00d6ff;
  padding: 5px;

#lastone {
  display: block;

fieldset {
  margin: 10px;
  padding: 0px;

.box {
  outline: 0;
  border-radius: 5px;
  max-width: 80%;

button {
  border: 4px solid #00d6ff;
  font-family: verdana, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 5px;

footer {
  background-color: rgb(70, 100, 100, 0.3);
  padding: 1vmin;
  margin-top: 2vmin;

@media (max-width: 600px) {
  textarea {
    width: 80%;



                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place.

  - Select the project you would 
    like to complete from the dropdown 
  - Click the "RUN TESTS" button to
    run the tests against the blank 
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments.