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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<!DOCTYPE> <html>
  
  <head>
<link href="https://fonts.googleapis.com/css?family=Crete+Round|Fahkwang|Sigmar+One" rel="stylesheet">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
  </head>

<body>
  <h1 id="title"> Survey Form </h1>
  <form id="survey-form">
  <div class="outer-form">
  <p id="description"> Are you a coffee adict? </p>
     <form id="survey-form">
   <label id="name-label"> *Name:</label> 
  <input id="name" type="text" name="text" placeholder="enter your name" required maxlength="10"><br>
   <label id="number-label"> *Age:</label> 
 <input  id="number"type="number" name="age" placeholder="enter your age" min="1" max="100" text="number"><br>
 <label id="email-label"> *e-mail: </label> 
<input  id="email" type="email" name="email" placeholder="enter your e-mail"  pattern=".+@beststartupever.com" size="30" required>    
  <br>
      <div class="question1">
        <p> How many coffees do you drink per day?</p>
        </div>
        <div class="tab">
          <select id="dropdown">
            <option> -choose an option- </option>
            <option> once a day </option>
            <option> twice a day </option>
            <option> three times a day </option>
          </select>
            </div>
             <div class="question2">
      <p> How likely are you to drink tea? </p>
               </div>
      <div class="options2">
         <input type="checkbox" name="coffeehabits" value="1"> <label> Very Unlikely </input> <br>
  <input type="checkbox" name="coffeehabits" value="2"> <label> Once in a while </label><br>
      <input type="checkbox" name="coffeehabits" value="3"><label> When I run out of coffee</label>
            </div>
      <div class="question3">
    <p> Do you buy from sustainable sources? </p>
      </div>
      <div class="options3">
        <input  type="radio" name="radiobuttoms" value= "1"> <label> Yes, I buy Fair Trade </label> <br>
        <input type="radio" value="2" name="radiobuttoms"> <label> Sometimes I buy online from the cooperatives </label>
      <br>
      <input type="radio" value="3" name="radiobuttoms"> <label> Hardly ever, I used to the commercial crap </label>
      <br>
      <input type="radio" value="4" name="radiobuttoms"> <label> Only on special occasions </label>
        </div>
  
        <p class="question4"> Please leave your comments below </p>
       <div class="submit">
  <textarea id="comments" placeholder="enter-your-comments-here"></textarea>
         <br>
     <button id="submit"> Submit </button>
    </div>     
    
       </form>
  
          </body>
  
 
</html>

              
            
!

CSS

              
                body {
  margin: 0;
  padding:0;
  background-color: #CFD1E6;

}

#description, .question1, .question2, .question3, .question4 {
  text-align: center;
  font-size: 25px;
  font-family:'Crete Round', serif;
  
}

.outer-form{
  background-color: #9197BF;
  padding-top: 30px;
  margin: 0 auto;
  border-radius: 6px;
  border: 20px 40px;
  max-width: 900px;
}

#title {
  font-family:  'Fahkwang', sans-serif;
}



h1, h2, #survey-form {
  text-align: center;
  font-family:'Crete Round', serif;
}

#name-label {
  width: 300px;
  margin: 15px 20px;
  padding-top: 20px;
  padding-bottom: 15px;
}

#name {
  width: 250px;
  height: 30px;
}

#number-label {
   width: 200px;
   margin: 15px 28px;
   padding-top: 30px;
   padding-bottom: 15px;
  }
#number {
   width: 250px;
   height: 30px;
}

#email-label{
  width: 200px;
  margin: 20px;
  border-bottom: 30px;
  padding-top: 20px;
}

#email{
 width: 250px;
 height: 30px; 
  }


.options2 {
  text-align: justify;
   margin: 0 auto;
   width: 350px;
  
}
 .options3 {
   text-align: justify;
   margin: 0 auto;
   width: 350px;
   font-family: 'Crete Round', serif;;
}

.submit {
  width: 280px;
  margin: 0 auto;
  padding-right: 20px;
  }

textarea {
  height: 50px;
  width: 300px;
}

button{
  height: 40px;
  width: 80px;
  background-color: #9FDAED;
  border-radius: 8px;
   font-family: 'Sigmar One', cursive;
}

button:hover {
  background-color: #DD9FED;
}



              
            
!

JS

              
                 

              
            
!
999px

Console