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

              
                <!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">

  </head>
  <body>
    <h1 id="title"><strong>Survey Form</strong></h1>
      <div id="outer-form">
        <p id="description"> <strong>How to improve your Development Skills</strong></p>

      <form id="survey-form" method="get" action="https://crossorigin.me/https://freecodecamp.com">
        
        <div class="rowTab">
          <div class="labels">
            <label id="label-name" for="name">* Name:</label>
          </div>
          
       <div class="rightTab">
         <input autofocus type="text" name="name" id="name" class="input-field" placeholder="Enter your name" required>
       </div>
    

      <div class="rowTab">
        <div class="labels">
          <label id="email-label" for="email">* Email:</label>
        </div>
        

      <div class="rightTab">
        <input type="email" name="email" class="input-field"  placeholder="Enter your Email" required>
      </div>
    

    <div class="rowTab">
      <div class="labels">
        <label id="number-label" for="age">* Age:</label>
      </div>

    <div class="rightTab">
      <input type="number" name="age" id="number" min="1" max="125" class="input-field" placeholder="Age">
    </div>

  <div class="rowTab">
    <div class="labels">
      <label for="currentPos">How much do you study?</label>
    </div>

    <div class="rightTab">
      <select id="dropdown" name="cuurentPos" class="dropdown">
    <option disabled value="Select an Option"</option>
    <option value="1 hour">1 hour</option>
    <option value="2 hours">2 hours</option>
    <option value="3 hours">3 hours</option>
    <option value="4 hours">4 hours</option>
    <option value="other">other</option>
   </select>
</div>

  <div class="rowTab">
    <div class="labels">
      <label for="myrating">* How can I improve my study habit</label>
    </div>

    <div class="rightTab">
      <ul style="list-style: none;">
        <li class="radio"><label>Set times<input name="radio-buttons" value="1"  type="radio" class="myrating" ></label></li>
        <li class="radio"><label>Reminders<input name="radio-buttons" value="1"  type="radio" class="myrating" ></label></li>
        <li class="radio"><label>Take small breaks<input name="radio-buttons" value="1" type="radio" class="myrating" ></label></li>
        <li class="radio"><label>All above<input name="radio-buttons" value="1" type="radio" class="myrating" ></label></li>
      </ul>
    </div>


  <div class="rowTab">
    <div class="labels">
      <label for="most=like">What languages are you planning to learn next: </label>
    </div>

    <div class="rightTab">
      <select id="most-like" name="mostlike" class="dropdown">
        <option disabled selected value> Select an option</option>
        <option value="Jnode">Jnode</option>
        <option value="Bootstrap">Bootstrap</option>
        <option value="Java script">Java script</option>
        <option value="React">React</option>
      </select>
    </div>


    <div class="rowTab">
      <div class="labels">
        <label for="preferences">Skills I need to work on<br>(Check all that apply): </label>
      </div>
       <div class="rightTab">
         <ul id="preferences" style="list-style: none;">
           <li class="checkbox"><label><input name="prefer" value="1" type="checkbox" class="myrating">Java Script</label></li>
           <li class="checkbox"><label><input name="prefer" value="2" type="checkbox" class="myrating">React</label></li>
           <li class="checkbox"><label><input name="prefer" value="3" type="checkbox" class="myrating">PHP</label></li>
           <li class="checkbox"><label><input name="prefer" value="4" type="checkbox" class="myrating">Rudy on Rails</label></li>
           <li class="checkbox"><label><input name="prefer" value="5" type="checkbox" class="myrating">Python</label></li>
         </ul>
        </div>

        <div class="rowTab">
          <div class="labels">
            <label for="comments">Comments and Suggestion.</label>
          </div>
          <div class="rightTab">
            <textarea id="comments" class="input-field" style="height:50px;resize:vertical;" name="comment" placeholder="Enter your comment here.."></textarea>
          </div>
          
        <div>
        <button id="submit" type="submit">Submit</submit>
      </form>
    </div>

  </body>
</html>

              
            
!

CSS

              
                html body{
  background-color: silver;
  text-align: center;
  font-family: helvetica, sans-serif;
  min-width: 320px;
}

header {
  font-size: 2em;
  font-weight: bold;
  margin: 20px;
}

#outer-form{
  background-color: white;
  margin: 0 auto;
  border-radius: 5px;
  width: 80%;
  max-width: 1000px;
  padding: 10px;
  padding-top: 25px;
}

.labels {
  display: inline-block;
  text-align: right;
  padding: 5px;
  vertical-align: top;
  margin-top: 10px;
}

.rightTab{
  display: inline-block;
  width: 40%;
  text-align: left;
  vertical-align: middle;
}

.input-field{
  height: 20px;
  width: 250px;
  padding: 5px;
  margin: 10px;
  border: 1px solid #c0c0c0;
  border-radius: 2px;
}

.myrating, 
input[type="checkbox"]{
  float: left;
  margin-right: right;
}

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

.dropdown {
  height: 35px;
  width: 140px;
  padding: 5px;
  margin: 10px;  
  margin-top: 15px;
  border: 1px solid #c0c0c0;
  border-radius: 2px;
}

.radio, .checkbox {
  position: relative;
  left: -43px;
  margin-left: 10px;
  display: block;
  padding-bottom: 10px;
}



@media screen and (max-width: 520px){
  .labels{
    width: 100%;
    text-align: left;
}
  
.rightTab{
    width: 80%;
    float: left;
  }
  
  .input-field{
    width: 100%;
  }
  
  select{
    width: 100%;
  }
  

              
            
!

JS

              
                
              
            
!
999px

Console