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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <main id="main">
  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
  <form id="survey-form"> 
    <fieldset>
      <legend>
        <h1 id="title">Would you like to learn martial arts?</h1>
        <hr/>
      </legend>
      <p id="description">Let me know what I can help you learn!</p>
      <div id="personal-information">
        <div class="rowtab">
          <div class="labels">
            <label for="name" id="name-label">Name</label>
          </div>
          <div class="right">
            <input name="name" id="name" type="text" placeholder="Enter name" required></input>
          </div>
        </div>
        <div class="rowtab">
          <div class="labels">
             <label for="number" id="number-label">Age</label>
          </div>
          <div class="right">
            <input name="number" id="number" type="number" placeholder="Age" min="16" max="500" required></input>         
          </div>
        </div>
        <div class="rowtab">
          <div class="labels">
              <label for="email" id="email-label">Email</label>      
          </div>
          <div class="right">
              <input name="email" id="email" type="email" placeholder="Enter email" required></input>      
          </div>
        </div>
      </div>  
      <div id="dropdown-div"> 
        <div class="rowtab">
          <div class="labels">
            <label for="dropdown" id="dropdown-label">Select your current Martial Arts knowledge?</label>        
          </div>
          <div class="right">
            <select id="dropdown">
              <option class="dropdown-item" value="expert">Expert</option>
              <option class="dropdown-item" value="intermediate">Intermediate</option>
              <option class="dropdown-item" value="beginner">Beginner</option>
            </select>
          </div>          
        </div>
      </div>
      <div id="radio">
        <div class="rowtab">
          <div class="labels">
            <label for="radio" id="radio-label">How interested are you in Martial Arts?</label>      
          </div>
          <div class="right">
            <input class="exp" type="radio" name="gender" value="high"> No Martial Arts No Life<br>
            <input class="exp" type="radio" name="gender" value="middle"> I watch kung fu movies<br>
            <input class="exp" type="radio" name="gender" value="low"> Eh..<br>
          </div>   
        </div>
      </div>
      <div="checkbox">
        <div class="rowtab">
          <div class="labels">
            <label id="checkbox-label" for="checkboxes">Specifically what would you like to learn (Check all that apply)</label>          
          </div>
          <div class="right">
            <input class="checkboxes" type="checkbox" name="vehicle1" value="Bike"> Judo<br>
            <input class="checkboxes" type="checkbox" name="vehicle1" value="Bike"> Jujitsu<br>
            <input class="checkboxes" type="checkbox" name="vehicle1" value="Bike"> Muay Thai<br>
            <input class="checkboxes" type="checkbox" name="vehicle1" value="Bike"> Wing Chun<br>
            <input class="checkboxes" type="checkbox" name="vehicle1" value="Bike"> Jeet Kune Do<br>
            <input class="checkboxes" type="checkbox" name="vehicle1" value="Bike"> BJJ<br>
            <input class="checkboxes" type="checkbox" name="vehicle1" value="Bike"> MMA<br>
          </div>
        </div>
        <div class="rowtab">
          <textarea name="message" rows="8" cols="40">Please leave any additional comments here.</textarea>
        </div>
        <div class="rowtab">
          <button type="submit" form="survey-form" value="Submit" id="submit">Submit</button>
        </div>
      </div>
    </fieldset>
  </form>
</main>
              
            
!

CSS

              
                main{
  text-align: center;
  margin-left:  25%;
  margin-right: 25%;
  font-family: 'Raleway', Helvetica, sans-serif;
  font-size: 25px;
}
.rowtab{
  margin-top: 15px;
}
.labels{
  display: inline-block;
  text-align:right;
  width: 40%;
  vertical-align: top;
  margin-top: 10px;
  margin-right: 10px;
}
.right{
  display: inline-block;
  text-align:left;
  width: 45%;
  vertical-align: middle;
  margin-top: 10px;
}
:required{
  box-shadow: 1px 1px 10px rgba(200, 0, 0, 0.85);
}

#submit {
  background-color: black;
  border-radius: 4px;
  color: white;
  font-size: 1em;
  height: 40px;
  width: 96px;
  margin: 10px;
  border: 0px solid;
}
              
            
!

JS

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

Console