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>
  
  <header>
  <h1 id="title">
    S & K SURVEY
    </h1> 
  </header>
  

    
    <h2>
      <p id="description"> We are a reputable organization that work on the principle of know your customer approach. Please bear it in mind that all information obtained is highly secured and will be treated with full confidentiality. </p> 
    <br> Please Enter Your Details: </h2>
  
        <div class="container">
          
          
    <form id="survey-form" name="survey-form>" method="post" action="mailto:passivemarket@gmail.com" >
      
    <label id="name-label" for="name"> First Name: </label>
 
  <input id="name" type="text" name="name" value="" placeholder="Enter your first name" minlength="10"  maxlength="20" tabindex="1" accesskey="F" required>
      <br>
     
       <label for="name-label"> Last Name:</label>
      <input id="name" type="text" name="name" value="" placeholder="Enter your last name" minlength="10" maxlength="20" tabindex="2" accesskey="L" required>
      
      <br>
     
      <label for="gender"> Gender: </label>
      
            <input id="gender" type="radio" name="gender" value="Male" tabindex="3" accesskey="R" checked>Male
      <br>
    
      <input id="gender" type="radio" name="gender" value="Male" tabindex="4" accesskey="R" checked>Female
      
           
      <p> </p>
      <label for="DOB"> Date of birth: </label>
      <input id="DOB" type="date" name="name" value=""  maxlength="25" tabindex="5" accesskey="D" required> 
      
      <br>
      
      <label id="number-label" for="number"> Postal Code: </label>
      <input id="number" type="number" name="name" value="" min="5" max="6" tabindex="5" Placeholder="Enter a number" accesskey="P" required> 
      
      <br>
      
      <label for="tel"> Phone No: </label>
      <input id="tel" type="tel" name="name" value="" placeholder="Enter Telephone No" minlength="10" maxlength="15" tabindex="7" accesskey="T" required> 
      
      <br>
      <label id="email-label" for="email">Email Address: </label>
      <input id="email" type="email" name="name" value="" placeholder="me@example.com" minlength="9" maxlength="25" tabindex="8" accesskey="E" required>
      
      <br>
      <label for="email">Confirm Email Address: </label>
      <input id="email" type="email" name="name" value="" placeholder="me@example.com" minlength="9" maxlength="25" tabindex="9" accesskey="C" required>
      
      
      <br>
      <div id="instruct">

      Please answer the following questions accordingly.
        <br>
      Ensure all inputs are correct and accurate. Thanks.
        
      </div>
      <p> </p>
      
      <div id="question">
      
         Secondary Details:
           
        <p> <p>
          <fieldset> 
                        <legend> <ul> <li> How many children are in your household? </li> </ul> </legend>
              <p> </p>
            <input id="one" type="radio" value="one" name="one" tabindex="10" accesskey="R" checked>
              <label for="one"> One </label>
  
              <input id="two" type="radio" value="two" name="one" tabindex="11" accesskey="R">
              <label for="two"> two </label>
              
              <input id="three" type="radio" value="three" name="one" tabindex="12" accesskey="R">
              <label for="three"> Three - five </label>
              
              </fieldset> 
            <p> </p>
                                <ul> <li>  How do you watch movies? </li> </ul>
               <p> </p>
               
               <input id="youtube" type="checkbox" value="youtube" name="youtube" tabindex="13" accesskey="C" checked> Youtube
               <label for="youtube">
                 <br>
                 <input id="netflix" type="checkbox" value="netflix" name="netflix" tabindex="14" accesskey="C"> Netflix
                 
                 <br>
                 <input id="television" type="checkbox" value="television" name="television" tabindex="15" accesskey="C"> Television
               <label for="television">
                 <p> </p>
                 <li> Please describe your industry type:   </li>
                   <br>
         &nbsp; &nbsp;    <select  id="dropdown" value="dropdown" size="1" tabindex="16" accesskey="D">
               <option  value="Please Select">Please Select  </option> 
               <option value="Technology">Technology  </option> 
               
               <option value="ADVERTISING/MARKETING"> Advertising/Marketing  </option> 
               
               <option value="NON-GOVERMENTAL">Non-Govermental  </option> 
                
                 </select>
                                              <p> </p>
                                        Message
       <br>                                       <textarea rows="10"> 
 Would you like to leave a comment?  
                                              </textarea>
         <br>                                    
                                               <button class="submit" type="reset"> reset </button> &nbsp;
  <button id="submit" type="submit"> submit </button>                                                             
      
      
      </div>
      
      
      
                                           <p> </p>
                                           <footer class="copyright"> A project submitted by Dada Alaba &copy; 2019. </footer>
      
      
    </div
  
  
  
  
  
  
  
  <main>
              
            
!

CSS

              
                body {
  background-color: #2600FF;
  color: rgb(255,255,255);
  font-family: helvetica, sans-serif;
  width: 70%;
  height: 100vmin;
  margin: -5px 0px 0px 50px;
}

#title {
  font-family: lucida calligraphy, sans-serif;
  color: orange;
    text-align: center;
  font-weight: 900;
  font-size: 15vmin;
  font-style: oblique;
 
}

#description {
  font-style: oblique;
  font-family: arial;
  font-weight: normal;
  color: orange;
  text-align: justify;
  line-spacing: 2.0pt;
  line-height: 25pt;
}

.container {
  max-width: 1200px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding-left: 10px;
  display: flex;
  justify-content: space-around;
}



#survey-form {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin 0px auto;
  padding-top: 5px;
  box-sizing: border-box;
  align-items: center;
  flex: 1 0 30px;
  text-transform: capitalize;
}
  
#name-label {
  color: white
}

#email-label {
 color: white
}

#number-label {
  color: white
}



  #instruct!important {
    display: flex;
    font-size: 16pt;
    font-family: sans-serif, helevitica;
    font-weight: 200;
    justify-contents: center;
    text-align:justify;
    line-height: 30pt;
  }
  
  #question!important {
    justify-contents: flex-start;
    font-family: serif;
    text-transform: uppercase;
    
  }

.submit {
  border: 1px solid red;
  padding: 8px 8px 8px 8px;
  line-spacing: 0.9em;
  text-transform: capitalize;
  font-weight: 200;
  font-family: tahoma;
  font-size: 16px;
  background-color: red;
  color: white;
  border-radius: 20px;
  cursor: pointer;
}

.button-reset:hover {
  background: color;
}


.copyright {
  margin: 0 auto;
  border: 1px solid black;
  padding: 5px 50px 5px 50px;
  background: black;
  font-size: 28px;
  font-weight: bold;
}
#dropdown {
  font-weight: bold;
}

#submit {
  border: 1px solid red;
  padding: 8px 8px 8px 8px;
  line-spacing: 0.9em;
  text-transform: capitalize;
  font-weight: 200;
  font-family: tahoma;
  font-size: 16px;
  background-color: red;
  color: white;
  border-radius: 20px;
  cursor: pointer;
}
#submit:hover {
  background: color;
}
              
            
!

JS

              
                
              
            
!
999px

Console