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>
<!doctype html>
<html>
  <head>
    <link rel="stylesheet" type="text/css" href="style.css">
    <link href="https://fonts.googleapis.com/css?family=Kosugi+Maru" rel="stylesheet">
  </head>
  <body>
    <h1 id="title">The Plaid Survey</h1>
    <div class="form-div">
      <p id="description">How much do you like plaid?</p>
      <form id="survey-form" action="/submit-plaid-survey">
      <div class="label-row">
        <label for="name" id="name-label">* Name: </label>
      </div>
      <div class="form-row">
        <input id="name" class="input" type="text" placeholder="What is your name?" required="required">
      </div>
      <div class="label-row">
        <label for="email" id="email-label">* Email: </label>
      </div>
      <div class="form-row">
       <input id="email" class="input" type="email" placeholder="What is your email?" required="required">
      </div>
      <div class="label-row">
        <label for="number" id="number-label">* Age: </label>
      </div>
      <div class="form-row">
        <input id="number" class="input" type="number" placeholder="How old are you?" min="1" max="125">
      </div>
    <div class="label-row">
      <label for="how-often" id="dropdown-label">How often do you wear plaid?</label>
    </div>
    <div class="form-row">
      <select id="dropdown" class="input" name="how-often" type="select">
        <option disabled value>Select an option</option>
        <option value="everyday">Every single day of my life</option>
        <option value="weekly">Couple times a week</option>
        <option value="monthly">Couple times a month</option>
        <option value="special">Only on special occasions</option>
        <option value="never">Never (outside the comfort of my home)</option>
      </select>
    </div>
    <div class="label-row">
      <label for="favorite-time" id="radio-label">What is your favorite time of year to wear plaid?</label>
    </div>
    <div class="form-row">
      <ul style="list-style: none;">
        <li class="options"><label><input type="radio" name="radio-buttons" value="1">Spring</label></li>
        <li class="options"><label><input type="radio" name="radio-buttons" value="2">Summer</label></li>
        <li class="options"><label for="winter"><input type="radio" name="radio-buttons" value="fall">Fall</label></li>
        <li class="options"><label for="winter"><input type="radio" name="radio-buttons" value="winter">Winter</label></li>
        <li class="options"><label for="all"><input type="radio" name="radio-buttons" value="all">All of the above</label></li>
      </ul>
    </div>
    <div class="label-row">
      <label for="clothing" id="check-label">What articles of clothing do you wear that are plaid?</label>
    </div>  
    <div class="form-row">
      <ul style="list-style: none;">
        <li class="options"><label for="shirt"><input type="checkbox" name="checkbox" value="shirt">Shirt</label></li>
        <li class="options"><label for="pants"><input type="checkbox" name="checkbox" value="pants">Pants</label></li>
        <li class="options"><label for="hat"><input type="checkbox" name="checkbox" value="hat">Hat</label></li>
        <li class="options"><label for="socks"><input type="checkbox" name="checkbox" value="socks">Socks</label></li>
        <li class="options"><label for="underwear"><input type="checkbox" name="checkbox" value="underwear">Underwear</label></li>
      </ul>
    </div>
    <div class="label-row">
      <label for="comments">Tell us how you really feel about plaid!</label>
    </div> 
    <div class="form-row">
       <textarea id="comments"></textarea>
      </div> 
      <button id="submit" type="submit">Submit</button>
    </form>
    </div>
  </body>
</html>


            
          
!
            
              body{
  text-align:center;
  background:
	repeating-linear-gradient(
		-45deg,
		transparent,
		transparent 25%,
		magenta 0,
		purple 50%
	),
	repeating-linear-gradient(
		45deg,
		transparent,
		transparent 25%,
		blue 0,
		dodgerblue 50%
	), grey;

background-size: 10em 10em;
background-blend-mode: multiply;
  /* from https://bennettfeely.com/gradients/ */
    
  font-family: 'Kosugi Maru', sans-serif;
  min-width: 320px;
}
#title{
  color:white;
}
.form-div{
  background-color: #dddddd;
  max-width: 900px;
  border: 6px solid royalblue;
  border-style: double;
  padding: 10px;
  margin: 0 auto;
  border-radius: 75px 75px 75px 75px;
  min-width: 290px;
  
  
}
#description{
  margin: 0 auto;
  padding: 5px;
  
  
}
.label-row{
  padding: 10px;
  display: inline-block;
  text-align: right;
  width: 45%;
  
}
.form-row{
  display: inline-block;
  text-align: left;
  vertical-align: middle;
  width: 45%;
  
}
#name-label{
}
#email-label{}
#number-label{}
#dropdown-label{}
#radio-label{}
#check-label{}
#comment-label{
}
#survey-form{
}
#submit{
  width: 100px;
  margin: 30px;
}
.input{
  width: 100%;
  max-width: 258px;
}
#name{}
#email{}
#number{}
#comments{
  height:100px;
  resize:vertical;
  width: 100%;
  max-width: 258px;
}
.options{
  position: relative;
  left: -44px;
  padding: 3px;
}

            
          
!
            
              // !! 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. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - 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. 

            
          
!
999px
🕑 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 ..................

Console