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

              
                <!DOCTYPE html>
<html lang="en">
<head>
    <link rel="stylesheet" href="styles.css">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>survey form</title>
</head>
<body>
  <h1 id="title">Songafarmer Survey Form</h1> 
  <p id="description">Dear farmer, kindly take your time to participate in this survey form , your feedback will help us to serve  you better.</p> 
  <form id="survey-form"> 
    <div class="form-control">
      <label for="name" id="name-label"> Name:</label>
    <input type="text" id="name" placeholder="Enter your  Name" required>
   </label>
   </div>
   <div class="form-control">
     <label for="email" id="email-label">Email:</label>
   <input type="email" id="email" required placeholder="Enter your Email">
   </div>
   <div class="form-control">
     <label for="phone number" id=" phone-label">Tel Number:</label>
   <input type="tel" id="tel" required placeholder="Enter  Tel Number">
   </div>
   <div class="form-control">
     <label for="age" id="number-label" >Age:</label>
   <input type="number" id="number" min="18" max="70" placeholder="Age" >
   </div>
   <div class="form-control">
     <label for="date" id="date-label">Year of Birth:</label>
   <input type="date" id="date" required>
   </div>
 <p>Choose Your  Farming Category</p>
   <div class="form-control">
   <select id="dropdown"  >
   <option disabled="" selected="" value="">Select an option</option>
   <option value="poultry farming">Poultry Farming</option>
   <option value="vegetable farming">Vegetable Farming</option>
   <option value="fruit farming ">Fruit Farming</option>
   <option value="bee keeping">Bee Keeping</option>
   <option value="dairy farming">Dairy Farming</option>
   <option value="fish keeping">Fish Farming</option>
   <option value="beef keeping">Beef Keeping</option>
   <option value="others">Others</option>
   </select>
   </div>
   <p>Would you recommend songafarmer to  your fellow farmers?</p>
     <div class="form-control">
     <label for="radio">Definately</label>
     <input type="radio" id="radio" value="definaltety" name="recommend">
     </div>
     <br>
     <div class="form-control">
     <label for="radio">Maybe</label>
     <input type="radio" id="radio" value="maybe" name="recommend">
     </div>
     <br>
     <div class="form-control">
     <label for="radio">Not Sure</label>
     <input type="radio" id="radio" value="not sure" name="recommend">
     </div>
     <br>
     <p>Choose Your Best songafarmer feature</p>
     <div class="form-control">
   <select id="dropdown" class="form-control" >
   <option disabled="" selected="" value="">Select an option</option>
   <option value="market alerts">Market Alerts</option>
   <option value="weather updates">Weather Updates</option>
   <option value="news">News</option>
   <option value="chat forum">Chat Forum</option>
   <option value="recipe">Recipe</option>
   <option value="inspiration">Inspiration</option>
   </select>
   </div>
   <p>Which feature should songafarmer improve to make your experience better?(Check all that apply)</p>
   <div class="form-control">
   <label for="checkbox">Market Alerts</label>
   <input type="checkbox" id="checkbox" value="market alerts">
   </div>
   <div class="form-control">
   <label for="checkbox">Weather Updates</label>
   <input type="checkbox" id="checkbox" value="weather updates">
   </div>
   <div class="form-control">
   <label for="checkbox">News</label>
   <input type="checkbox" id="checkbox" value="news">
   </div>
   <div class="form-control">
   <label for="checkbox">Chat Forum</label>
   <input type="checkbox" id="checkbox" value="chat forum">
   </div>
   <div class="form-control">
   <label for="checkbox">Recipe</label>
   <input type="checkbox" id="checkbox" value="recipe">
   </div>
   <div class="form-control">
   <label for="checkbox">Inspiration</label>
   <input type="checkbox" id="checkbox" value="inspiration">
   </div>
   <p>Any comments or suggestions?</p>
   <div class="form-control">
   <textarea placeholder="Enter your comments here..."></textarea>
   </div>
   <button class="submit-button" id="submit">Submit</button>
  </form>
  <footer>&copy;songafarmer 2022</footer>
   <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js">
  </script>
</body>
</html>
              
            
!

CSS

              
                /* Styling the Body element i.e. Color,
        Font, Alignment */
        body {
          background-color: #05c46b;
          font-family: Verdana;
          text-align: center;
        }
        /* Styling the Form (Color, Padding, Shadow) */
        form {
          background-color: #fff;
          max-width: 500px;
          margin: 50px auto;
          padding: 30px 20px;
          box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.5);
      }
     /* Styling form-control Label */
   .form-control label{
   display: block;
   margin-bottom: 10px;
 }
 /* Styling form-control input,
        select, textarea */
        .form-control input,
        .form-control select,
        .form-control textarea {
            border: 1px solid #777;
            border-radius: 2px;
            font-family: inherit;
            padding: 10px;
            display: block;
            width: 95%;
        }
        /* Styling form-control Radio
        button and Checkbox */
        .form-control input,
        .form-control label {
            display: inline-block;
            width: auto;
            margin-bottom:20px;
            vertical-align: middle;
            margin-top:20px;
            
        }
        /* Styling Button */
        button {
          background-color: #05c46b;
          border: 1px solid #777;
          border-radius: 2px;
          font-family: inherit;
          font-size: 21px;
          display: block;
          width: 100%;
          margin-top: 50px;
          margin-bottom: 20px;
          font-weight:bold;
          cursor:pointer;
      }
      footer{
        font-weight:bold;
      }
              
            
!

JS

              
                
              
            
!
999px

Console