Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

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

<html>
  <head>
    <title>Yoga Survey</title>
  </head>
  
  <body>
    <main>
      <h1 id="title">What's your yoga style?</h1>
      <p id="description">Let's find the right yoga class for you!</p>
 <div>     
   <form id="survey-form">
     <fieldset name="basic">
       <label id="name-label"> Name:</label>
  <input id="name" type="text" size="relative" max-width="70%" placeholder="name" required><br>
  <label id="email-label"> Email: &nbsp</label>
  <input id="email" type="email" size="relative" max-width="70%" placeholder="email" required><br>
  <label id="number-label"> Age: (14+)</label>
  <input id="number" type="number" min="14" max="100" placeholder="age">
    <br>
       </form>
     
     <form id="yoga-exp">
       <fieldset name="yoga-exp">
         <legend> Yoga experience:</legend>
    <select id="dropdown" name="dropdown">
    <option value="none">None</option>
    <option value="hatha">Hatha</option>
    <option value="vinyasa-flow">Vinyasa Flow</option>
      <option value="Kundalini">Kundalini</option>
      <option value="Iyengar">Iyengar</option>
      <option value="Viniyoga">Viniyoga</option>
      </select>
    </fieldset>
   </form>
     
   <form>
     <form>
    
    <fieldset name="radio">
      <legend>Choose your one main activity</legend>
      <input type="radio" name="activity" id="swimming" value="swimming">
      <label for="swimming"> Swimming</label>
      <input type="radio" name="activity" id="running" value="running">
      <label for="running"> Running</label>
      <input type="radio" name="activity" id="walking" value="walking">
      <label for="walking"> Walking</label>
      <input type="radio" name="activity" id="cardio" value="cardio">
    <label for="cardio"> Cardio</label>
      <input type="radio" name="activity" id="crossfit" value="crossfit">
    <label for="crossfit"> CrossFit</label>
      <input type="radio" name="activity" id="weights" value="weights">
    <label for="weights"> Weights</label>
      <input type="radio" name="activity" id="gym" value="gym">
    <label for="gym"> Gym</label>
      <input type="radio" name="activity" id="aerobics" value="aerobics">
    <label for="aerobics"> Aerobics</label>
    <input type="radio" name="activity" id="pilates" value="pilates">
    <label for="pilates"> Pilates</label>
    <input type="radio" name="activity" id="cycling" value="cycling">
    <label for="cycling"> Cycling</label>
      <input type="radio" name="activity" id="dancing" value="dancing">
    <label for="dancing"> Dancing</label>
      <input type="radio" name="activity" id="hula-hoop" value="hula-hoop">
    <label for="hula-hoop"> Hula Hoop</label>
    <label for="other"> Other: &nbsp</label>
    <input type="text" name="other" id="other" value="other" placeholder="What is your favorite physical activity?">         
      </fieldset>
     </form>
     
      <form>
      <fieldset name="bones">
        <legend>Any skeletal or joint problems?</legend>
        <input type="checkbox" value="scoliosis">
    <label> Scoliosis </label>
        <input type="checkbox" value="hernia">
    <label> Hernia</label>
        <input type="checkbox" value="slipped-disc">
    <label> Slipped disc</label>
        <input type="checkbox" value="osteoporosis">
    <label> Osteoporosis </label>
        <input type="checkbox" value="carpal-tunnel">
      <label>Carpal Tunnel Syndrome</label>
        <input type="checkbox" value="arthritis">
    <label> Arthritis </label>
       <input type="checkbox" value="arthrosis">
    <label> Arthrosis </label>
        <input type="checkbox" value="bunions">
    <label> Bunions</label>
        <input type="checkbox" value="kneeop">
    <label>Knee Op</label>
        <input type="checkbox" value="hipop">
    <label>Hip Op</label>
        </fieldset>
  </form>
     
     <form>
       <fieldset name="textarea">
         <legend>Anything else you'd like to share?</legend>
       <textarea rows="4" cols="100"></textarea>
      </form> 
       
    <form>
    <fieldset name="submit">
    <label for="submit">Your information is treated confidentially:</label> 
    <input id="submit" type="submit">
    </fieldset>
    </form>
     
     </div>           
    </main>
  </body>
  
</html>
              
            
!

CSS

              
                body {
  background-color:  lightgray;
  color:  slategray;
  font-family:  futura;
}

form {
  background-image: linear-gradient(to right, lightgray, lightyellow, floralwhite, ivory);
  max-width:  90%;
  padding-top:  25px;
  text-align:  left;
}

fieldset {
  border-style:  solid none;
  border-color:  lightyellow;
}

#title  {
  padding-left:  10%;
  max-width:  80%;
  line-height:  150%;
  letter-spacing:  3px;
  background-image: linear-gradient(to right, ghostwhite, ivory, lightyellow, pink);
}

#description {
  padding-left:  10%;
  font-size:  17pt;
  background-image: linear-gradient(to right, ghostwhite, ivory, lightyellow, pink);
  max-width:  80%;
  color:  lightslategray;
}


              
            
!

JS

              
                
              
            
!
999px

Console