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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<div class="container">
    <header id="header">
      <h1 id="title">MMA survey</h1>
      <p id="description">Let Us Know Your Thoughts About MMA</p>
    </header>
    <form id="survey-form">
      <div class="all-label">
        <label id="name-label" for="name">Name</label>
        <input type="text" id="name" name="name" placeholder="Your Name Here" required>
      </div>
      <div class="all-label">
        <label id="email-label" for="email">Email</label>
          <input type="email" id="email" name="email" placeholder="Enter Your Email" required>
      </div>
      <div class="all-label">
        <label id="number-label" for="email">Age (Optional)</label>
          <input type="number" id="age" name="age" min="18" max="99" placeholder="Age">
      </div>
      <div class="all-label">
        <label id="dropdown" name="goat">Who Do You Consider A GOAT(Greatest Of All Time)?</label>
          <select id="goat" name="goat">
            <option disabled selected value>Pick Your GOAT</option>
            <option>Jon Jones</option>
            <option>Georges St Pierre</option>
            <option>Khabib Nurmagomedov</option>
            <option>Stipe Miocic</option>
            <option>Amanda Nunes</option>
        </select>
      </div>
      <div class="all-label">
        <p>Have You Ever had MMA training?</p>
        <input type="radio" id="radio" name="training">
        <label for="Yes">Yes</label>
        <input type="radio" id="radio3" name="training">
        <label for="No">No</label>
        <input type="radio" id="radio1" name="training"><label for="idk">No, but I would like to try.</label>
      </div>
      <div class="all-label">
        <p>What are the most important skill in MMA? (Check one or more answers)</p>
        <input type="checkbox" name="skill" id="skill1" value="Boxing">
        <label for="skill1">Boxing</label>
        <input type="checkbox" name="skill" id="skill12" value="Wrestling">
        <label for="skill2">Wrestling</label>
        <input type="checkbox" name="skill" id="skill3" value="Jiu jitsu">
        <label for="skill3">Jiu jitsu</label>
        <input type="checkbox" name="skill" id="skill4" value="kickbox">
        <label for="skill4">Kickboixing/Muay Thai</label>
      </div>
      <div class="all-label">
        <textarea id="tell-us" name="tell" placeholder="share your thought with us"></textarea>
      </div>
      <div class="all-label">
        <button id="submit" type="button">SEND YOUR ANSWERS</button>
        
        
    </form>
    
  </div>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap");
* 
{
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    color: white;
    font-family: Courier;
    
    
    
  }
  body {
    background-image: url("https://www.roughdiamondsmma.com/wp-content/uploads/2016/03/background-6.png");
    height:100%;
    width: 100%;
  }
  .container {
    box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.4);
    
    margin: 4rem 25rem 0  8rem;
    line-height: 80px;
    
    
    background-color: rgba(192,192,192, 0.4)
    
  }
@media (min-width: 576px)
{ .container{
  max-width: 540px;
  }}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
  
  
  
  header  {
    text-align: center;
    
    
   

  }
#title {
  font-weight: 500;
  font-size: 3rem;

}

#description {
  letter-spacing: 2.5px;
  font-size: 1.2rem;
  margin-bottom: 1.5;
  
}
.all-label {
  
  margin-bottom: .95rem;
  padding-left: 3rem;
  padding-right: 3rem;
  line-height: 8px;
}
input,
button,
select,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  margin: 0;
  border-radius: 12px;
  
}

textarea { 
  height: 12rem;
}
              
            
!

JS

              
                
              
            
!
999px

Console