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

+ 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

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

              
                <!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">  
    <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
    <title>Gym Survey Form</title>
  </head>
  
  <body>
    <h1 id="title">Gym Survey Form</h1>
    <div id="Survey-border">
   <p id="description">Let us know about your training experience</p>
      
     <form id="survey-form">
      <div id="container">  
          <label for="name" id="name-label">* Name:</label>
        <div id="name-tag"><input type="text" class="name" id="name" placeholder="Enter your name" name="name" required></div>
        <label for="email" id="email-label">* Email:</label>
        <div id="email-tag"><input type="email" class="email" id="email" placeholder="Enter your Email" name="email" required></div>
          <label for="number" id="number-label">* Age:</label>
        <div id="number-tag"><input type="number" class="age" id="number" placeholder="Age" name="age" min="15" max="100"></div>
       
          <div id="recommend">
            How likely are you to recommend strength training to a friend?</div>
        <div id="rec-radio">
        <div class="inputmargin"><input type="radio" id="definitely" name="recommend" value="definitely"><label for="definitely">Definitely</label></div>
          <div class="inputmargin"><input type="radio" id="maybe" name="recommend" value="maybe"><label for="maybe">Maybe</label></div>
          <div><input type="radio" id="not-sure" name="recommend" value="not sure"><label for="not-sure">Not Sure</label></div>  
        </div> 
            
        <div id="dropdown-label"><label for="dropdown">What do you like most about this gym?</label></div>
        <div id="dropdown-box"><select class="dropdwn-box" id="dropdown">
          <option selected disabled>Select One</option>
          <option value="free wrights">Free Weights</option>
          <option value="swimming pool">Swimming Pool</option>
          <option value="cardio equipment">Cardio Equipment</option>
          <option value="customer service">Customer Service</option>
        </select>
        </div> 
      
   <div id="fitgoal"><label>What are your fitness goals?</label></div>
   <div id="checkboxes">
<div class="inputmargin">
      <input type="checkbox" name="Goals" value=
"lose weight">Lose Weight
     </div>
   <div class="inputmargin">
     <input type="checkbox" name="Goals" value="build muscle">Build Muscle</div>
   <div class="inputmargin">
     <input type="checkbox" name="Goals" value="sports conditioning">Sports Conditioning</div>
     <div class="inputmargin"><input type="checkbox" name="Goals" value="general physical preparation">General Physical Preparation</div>
     <div class="inputmargin"><input type="checkbox" name="Goals" value="improve work capacity">Improve Work Capacity</div>
     <div><input type="checkbox" name="Goals" value="injury rehabilitation">Injury Rehabilitation</div>
   </div>
        
   <div id="comments">Any comments or suggestions?</div>
   
   <div id="text-area"><textarea>
   </textarea>
     </div> 
        <button type="submit" id="submit">Submit</button>
     </div>   
  </form>
  </div>  
        
  </body>
</html>
              
            
!

CSS

              
                #title {
  text-align: center;
  font-family: sans-serif;
}
body {
  background: PaleTurquoise;
}
#description {
  text-align: center;
  padding: 30px 0px 10px;
  font-family: sans-serif;
}

#Survey-border {
  background-color: #DCDCDC;
  border-radius: 10px;
  margin: 0 20%;
}

#survey-form {
  font-family: sans-serif;
}

#container {
  display: grid;
  background-color: #DCDCDC;
  grid-template-columns: 50% 50%;
  grid-template-rows: 30px 30px 30px auto 30px auto auto auto;
  grid-gap: 30px 20px;
  padding-bottom: 30px;
}
#name-label {
  background-color: #DCDCDC;
  justify-self: end;
  padding-right: 10px;
}
#name-tag {
  background-color: #DCDCDC;
  justify-self: start;
}
.name {
  width: 300px;
  height: 35px;
}
#email-label {
  background-color: #DCDCDC;
  justify-self: end;
  padding-right: 10px;
}
#email-tag {
  background-color: #DCDCDC;
  justify-self: start;
}
.email {
  width: 300px;
  height: 35px;
}
#number-label {
  background-color: #DCDCDC;
  justify-self: end;
  padding-right: 10px;
}
#number-tag {
  background-color: #DCDCDC;
  justify-self: start;
}
.age {
  width: 300px;
  height: 35px;
}
#recommend {
  background-color: #DCDCDC;
  justify-self: end;
  padding-right: 10px;
  width: 300px;
}
#rec-radio {
  background-color: #DCDCDC;
  justify-self: start;
}
#dropdown-label {
  background-color: #DCDCDC;
  justify-self: end;
  padding-right: 10px;
}
#dropdown-box {
  background-color: #DCDCDC;
  justify-self: start;
}
.dropdwn-box {
  width: 300px;
  height: 35px;
}
#fitgoal {
  background-color: #DCDCDC;
  justify-self: end;
  padding-right: 10px;
}
#checkboxes {
  background-color: #DCDCDC;
  justify-self: start;
}
#comments {
  background-color: #DCDCDC;
  justify-self: end;
  padding-right: 10px;
}
#text-area {
  background-color: #DCDCDC;
  justify-self: start;
}
#submit {
  grid-area: 8/1/9/3;
  width: 15%;
  justify-self: center;
  background: LightSkyBlue;
  height: 40px;
  border-radius: 10px;
  font-size: 16px;
}
textarea {
  width: 300px;
  height: 70px;
}
.inputmargin {
  margin-bottom: 10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console