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

              
                <h1 id="title">Survey Form</h1>
<main>
  <div class="intro"><div id="description">Let us know how we can improve freeCodeCamp</div><div class="span"><sub>*</sub> fields are mandatory</div></div>
  <form id="survey-form">
    <div class="check"><div class= "heading">*Name:</div><label for="name" id="name-label"><input type="text" placeholder="Enter Name" required id="name"></label></div>
    <div class="check"><div class= "heading">*Email:</div><label for="Email" id="email-label"> <input type="email" placeholder="Enter Email" required id="email"></label></div>
    <div class="check"><div class="heading">*Age:</div> <label for="number" id="age-label"><input type="number" min=1 max=150 placeholder= "Age" id="number"></label></div>
    <div class="check"><div class="heading">*Which option best describes your current role?</div>
    <div><select id="dropdown">
      <option value="NULL" disabled selected>Select an option</option>
      <option value="Student">Student</option>
      <option value="Full_time_job">Full time job</option>
      <option value="full_time_learner">Full time Learner</option>
      <option value="NoC">No Comments</option>
      <option value="Others">Others</option>
      </select></div></div>
    <div class = "check"><div class="heading">*How likely is that you would recommend freeCodeCamp to a friend?</div> <div class = "qwerty"><div><label for= "definately"> <input type= "radio" name= "recommend" id= "definately">&nbspDefinately</label></div>
  <div><label for= "maybe"><input type= "radio" name= "recommend" id= "maybe">&nbspMaybe</label></div>
    <div><label for= "not_sure"><input type= "radio" name= "recommend" id="not_sure">&nbspNot Sure</label></div></div></div>
    <div class="check"><div class="heading">*What do you like most in FCC:</div> <select>
      <option value= "NULL" disabled selected>Select an option</option>
      <option value= "Challenges">Challenges</option>
      <option value= "Projects">Projects</option>
      <option value= "Community">Community</option>
      <option value= "Open Source">Open Source</option>
      </select>
    </div>
    <div class="check"><div class="heading">*Things that should be improved in future (Check all that apply):</div><div class = "qwerty">
      <div><input type= "checkbox" value= "simply">&nbspFront-End Projets</div>
      <div><input type= "checkbox" value= "simply">&nbspBack-End Projects</div>           <div><input type= "checkbox" value= "simply">&nbspData Visualisation</div>
      <div><input type= "checkbox" value= "simply">&nbspChallenges</div>
      <div><input type= "checkbox" value= "simply">&nbspOpen Source Community</div>
        <div><input type= "checkbox" value= "simply">&nbspGlitter help rooms</div>
      <div><input type= "checkbox" value= "simply">&nbspVideos</div>
    <div> <input type= "checkbox" value= "simply">&nbspCity Meetups</div>
      <div><input type= "checkbox" value= "simply">&nbspWiki</div>
      <div><input type= "checkbox" value= "simply">&nbspForum</div>
      <div><input type= "checkbox" value= "simply">&nbspAdditional Courses</div>
      </div></div>
    <div class="check"><div class= "heading">Any Comments or Suggestions?</div> <textarea id= "textarea" row= "600" col= "200" placeholder="Enter your comments here..."></textarea>
    </div>
    <div class="button"><input type= "submit" class="btn btn-default">
    </div>
  </form>
</main>

              
            
!

CSS

              
                body{
  background-color: #a1a1ff;
}
#title{
  margin: auto;
  text-align: center;
}
main{
  margin: 3% 15% 3% 15%;
  background-color: white;
  border-radius: 1%;
  padding: 2%;
}
.intro{
  position: relative;
  border-style: solid;
  display: flex;
}
#description{
  text-align: center;
  border-style: solid;
}
.span{
  color: #ff0000;
  font-size: 12px;
  border-style: solid;
  position: absolute;
  left: 75%;
}
form{
 text-align: justify;
}
.check{
  display: flex;
  text-align: right;
  margin-top: 1%;
}
.heading{
  width: 50%;
  padding-right: 2%;
  padding-left: 3%;
}
.qwerty{
   display: block;
  text-align: left;
}
.button{
  padding-left: 50%;
  margin-top: 2%;
}
              
            
!

JS

              
                
              
            
!
999px

Console