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>-->
<main>



    <head>
      <h1 id="title">
        Survey Form
      </h1>
    </head>
<div id="corpo">
    <body>
      <p id="description">
        Let me know how happy are you about school nowadays </p>
      <form id="survey-form" action="">
        <div id="label">
          <div>
            <label id="name-label" for="name"> *Name: <input id="name" type="text"  class="input-field"  placeholder="Enter your name" required></label></div>

          <div>
            <label id="email-label" for="email">*Email: <input id="email" type="email" class="input-field" placeholder="Enter your email" required></label></div>

          <div><label id="number-label" for="number">*Age: <input type="number" name="age" id="number" min="1" max="100" class="input-field" placeholder="Age"></label></div>

          <label for="dropdown">*What is your Highest Level of Education:</label>
        
      <select id="dropdown" class="dropdown">
        <option disabled selected value>Select an option</option>
        <option value="Not completed 12th">Not completed 12th</option>
        <option value="Completed 12th">Completed 12th</option>
          <option value="Polytechnic Diploma">Polytechnic Diploma</option>
        <option value="Graduate">Graduate</option>
        <option value="Post-Graduate">Post Graduate</option>
        </select>
    </div>
        <div id="butoes">
<div id="algo">
    <label for="pq">*Why do you go to school?</label>   </div>
          <ul id="porque" style="list-style: none; ">
            <li class="radio-buttons"> <label><input type="radio" class="pq" value="1" name="name">Parents</label></li>
            <li class="radio-buttons"> <label><input type="radio" class="pq" value="2" name="name">Obligation</label></li>
            <li class="radio-buttons"> <label><input type="radio" class="pq" value="3" name="name">You like</label></li>
          </ul>
     
          <label for="seleciona">*What do you like more in School?<br>(Check all that apply)</label>

          <ul id="explica" style="list-style:none; ">
            <li class="checkbox"><label><input type="checkbox" value="1" class="seleciona">Food</label></li>
            <li class="checkbox"><label><input type="checkbox" value="2" class="seleciona">Friends</label></li>
            <li class="checkbox"><label><input type="checkbox" value="3" class="seleciona">Teachers</label></li>
            <li class="checkbox"><label><input type="checkbox" value="4" class="seleciona">Subjects</label></li>
            <li class="checkbox"><label><input type="checkbox" value="5" class="seleciona">Sleep</label></li>
          </ul>
        </div>
            
     <div id=fim>
        <label for="comments">
          Any Comments or Suggestions?</label>

        <textarea id="comments" class="input-field" style="height:50px;resize:vertical;" name="comment" placeholder="Enter your comment here..."></textarea>
        </div>
      
      <button type="submit" id="submit" class="dropdown"> Submit </button>
      <p id="fimfim">* necessary to fill</p>
        </div>
  </form>
    </body>
 
</main>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Raleway:400,500);
@import url('https://fonts.googleapis.com/css?family=Playfair+Display');

body{
  text-align:center;
  background-color:#1b4554;
  font-family: 'Playfair Display', serif;
}
  #corpo{
  background-color:#ba3d03;
  padding-top:20px;
  padding-bottom:20px;
  margin:60px;
  
 
}

#title{
    font-family: "Raleway", Helvetica, sans serif;
    font-size: 39px;
    min-width: 320px;
   font-weight: bold;
 }
#description{
   font-size: 25px;
   min-width: 320px;
   font-weight: bold;
}
#label{
  font-size: 22px;
  text-align:center;
  
}
.pq{
   display: inline-block;
  text-align: left;
  vertical-align: middle;
  
}

#name{
  position:relative;
  left:10px;
}

#email{
  position:relative;
  left:10px;
}

#number{
position:relative;
left:20px;
} 
.input-field{
  display: inline-block;
  text-align: left;
  width: 40%;
  padding: 5px;
  vertical-align: top;
  margin-top: 10px;
}
.dropdown {
  height: 35px;
  width: 140px;
  padding: 5px;
  margin: 10px;  
  margin-top: 15px;
  border: 1px solid #c0c0c0;
  border-radius: 2px;
}
.radio-buttons, .checkbox {
  position: relative;
  left: 50px;
  margin-left: 10px;
  display: block;
  padding-bottom: 10px;
}


#algo{
  display: inline-block;
  text-align: left;
  width: 48%;
  vertical-align: top;
}

#butoes{
   display: inline-block;
  text-align: left;
  width: 40%;
  padding: 5px;
  vertical-align: top;
  margin-top: 10px;
   font-size: 20px;
   min-width: 320px;

}

#fim{
font-size: 22px;
  text-align:center;
 }
#submit {
  background-color: #59ace0;
  border-radius: 4px;
  color: white;
  font-size: 1em;
  height: 40px;
  width: 96px;
  margin: 10px;
  border: 0px solid;
}
#fimfim{
  font-size:14px;
  text-align:justify;
   font-weight: bold;
 }

              
            
!

JS

              
                
              
            
!
999px

Console