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">Sijonga Phambili C.L.C Improvement Survey</h1>
 <p id="description">In this survey we are interested in learning about your thoughts and feelings regarding the quality of our education and your opininions on how we can improve to make learning experience better.<p>
   
   <!--personal info section-->
   
<form id="survey-form">
  
  <legend><h3>Personal Info</h3></legend>
    <label for="name" id="name-label">Name</label>
    <input type="text" name="name" id="name" placeholder="First Name" id="name-label" required>
  
    <label for="surname">Surname</label>
    <input type="text" name="surname" id="surname" placeholder="Last Name" required>
 
    <label for="number">Cellphone number</label>
    <input type="number" name="surname" id="number" placeholder="Enter 10 digits" min="16" max="100" required>
 
    <label for="age" id="number-label">Age</label>
    <input type="number" name="age" id="age" placeholder="Age" min="1" max="150" id="number" required>
 
    <label for="email" id="email-label">Email</label>
    <input type="email" id="email" placeholder="Enter your email here" id="email" required>
     
     <!--survey section-->
   
    <fieldset>
      <legend>How was your user experience on this website?</legend>
      
    <select type="text" id="dropdown">
      <option label="Good">Good</option>
      <option label="Bad">Bad</option>
      <option label="Excellent">Excellent</option>
  <option label="Horrible">Horrible</option>
      </select>
  </fieldset>
    
  <fieldset>  
    <legend>Woud you recommend this school to your friend?</legend>
    
    <label>
        <input type="radio" name="recommendation" value="yes">Yes
      </label>
    
      <label>
        <input type="radio" name="recommendation" value="maybe">Maybe
      </label>  
    
      <label>
        <input type="radio" name="recommendation" value="no">No
      </label>
    
  </fieldset> 
  
  <fieldset>
  <legend>Things that should be improved in the future?</legend>
 
    <label>Quality of education</label>
   <input type="checkbox" value="education"> 
  
    <label>Organisation of the school
   <input type="checkbox" value="school"> 
  
    <label>Quality of services</label>
   <input type="checkbox" value="services"> 
  
    </fieldset>
    
    <fieldset>
    <legend>Please rate your overall satisfaction with the Professor/Course/ Instructor</legend>
   
      <label>Very disstisfied</label>
   <input type="radio" name="satisfaction" value="disatisfied">
     
    <label>Not satisfied</label>
   <input type="radio" name="satisfaction" value="disatisfied">
  
    <label>Neutral</label>
   <input type="radio" name="satisfaction" value="neutral">
    
       <label>Satisfied</label>
   <input type="radio" name="satisfaction" value="satisfied">
    
       <label>Very satisfied</label>
   <input type="radio" name="satisfaction" value="no">
   
       </fieldset>
    
      <h2>Comments<h2>
        
   <textarea name="comment" placeholder="Please add your additional comments here . . .">
</textarea>
         
        <input type="submit" id="submit" value="Submit">
        
 
</form>
       <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
              
            
!

CSS

              
                body{
  color: white;
  background-image: url(https://images.unsplash.com/photo-1493912998473-dc700e2ac245?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60);
background-repeat: no-repeat;
  background-position: 100%;
  background-attachment: relative;
  background-size: cover;
  font-family: serif, sans-serif, arial;
  text-align: center;
  margin: 40px;
}

#survey-form {
  display: flex;
  flex-direction: column;
  margin: 60px;
}

label {
  padding: 12px 12px 12px 0;
  display: inline-block;
}

legend{
  font-size: 18px;
}

#description {
  font-size: 22px;
}
fieldset {
  margin-top: 20px;
}
input:focus {
  border: 1.5px solid  #99ff99;
   padding: 10px 18px
}
select {
  width: 10%;
  padding: 10px 18px;
  border: none;
}
textarea{
   width: 70%;
  height: 100px;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: white;
  resize: none;
  margin: 30px;
  text-align:center;
  resize: vertical;
}
textarea:focus {
  width: 100%;
  height: 150px;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  resize: none;
}

input {
  width: 40%;
  text-align: center;
  margin: auto;
}
input[type=submit] {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 16px 32px;
  margin: 25px;
  text-decoration: none;
  cursor: pointer;
  float: bottom center;
}
input[type=submit]:hover {
  background-color: #45a049;
}
h2{
  padding: 0 2em;
  text-align: center;
}

              
            
!

JS

              
                
              
            
!
999px

Console