cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <html charset="lang en">
  <head>
    <title>Survey Form</title>
    <link href="https://fonts.googleapis.com/css?family=Indie+Flower" rel="stylesheet">
  </head>
  <body>
    <div class="main">
      <header>
        <h1 id="title">RF Travel Survey: <br> Favorite Caribbean Islands</h1>
        <h5 class="intro">Let our escapes be the key to your relaxation! </h5>
        <p id="description"> Everyone loves a vacation! One of the most relaxing vacations happens on a Caribbean Island. To serve our customers better, we want to know about your favorite Caribbean Islands!  </p>
      </header>
      <!--Begin Form Section-->
      <section class="form-container">
        <form id="survey-form">
          <!--Begin Personal Information-->
          <h5 class="travel">Please fill out our travel questionnaire about your travel adventures to the Caribbean Islands. </h5>
          <div class="personal">
            <legend><u>Personal Information</u></legend>
            <label for="name" id="name-label">Full Name</label><br>
            <input type="text" id="name" name="fullname" placeholder="Enter.." size="30" required><br>
            <div class="gender">
              <label for="gender" id="gender-label">Gender</label><br>
              <label for="male">Male</label>
              <input type="radio" name="gender" id="male" value="male"><br>
              <label for="female">Female</label>
              <input type="radio" name="gender" id="female" value="female"><br>
              <label for="nonbinarygender">NonBinary/3rdGender</label>
              <input type="radio" name="gender" id="nonbinarygender" value="Non-binary/third gender"><br>
              <label for="prefernotsay">Prefer Not to Say</label><input type="radio" name="gender" id="prefernotsay" value="prefernotsay"><br>
             </div>
            <label for="age" id="number-label">Age</label><br>
            <input type="number" id="number" name="age" min="18" max="100" size="50" placeholder="No." required><br>
            <label for="country" id="country-label">Country</label><br>
            <input type="text" id="country" name="country" placeholder="Enter" size="30" required><br>
            <label for="email" id="email-label">Email Address</label><br>
            <input type="email" id="email" name="email" placeholder="Enter" size="30" required><br>
          </div> <!--End Personal Information-->
          <!--Begin Travel Questionnaire-->
          <div class="questions">
            <legend><u>Travel Questionnaire</u></legend>
            <p>How many Caribbean Islands have you traveled to prior to this date?</p><br>
            <!--Begin Dropdown-->
            <select id="dropdown" required>
              <option value="lessthan5">Less than 5</option>
              <option value="5to7">5 to 7</option>
              <option value="morethan7">More than 7</option>
            </select><br> <!--End Dropdown-->
           <!--Begin Checkbox--> 
           <div id="checkbox">
            <p>Which Caribbean countries have you visited? Check all that apply.</p><br>
           <input type="checkbox" name="country1" id="country1" value="cuba"><label for="country1">Cuba</label><br>
             
            <input type="checkbox" name="country2" id="country2" value="haiti"><label for="country2">Haiti</label><br>
            <input type="checkbox" name="country3" id="country3" value="dominicanrepublic"><label for="country3">Dominican Republic</label><br>
             <input type="checkbox" name="country4" id="country4" value="puertorico"><label for="country4">Puerto Rico</label><br>
          <input type="checkbox" name="country5" value="jamaica" id="country5"><label for="country5">Jamaica</label><br>
          <input type="checkbox" name="country6" value="trinidad" id="country6"><label for="country6">Trinidad and Tobago</label><br>
          <input type="checkbox" name="country7" value="bahamas" id="country7"><label for="country7">Bahamas</label><br>
          <input type="checkbox" name="country8" value="bermuda" id="country8"><label for="country8">Bermuda</label><br>
             <input type="checkbox" name="country9" value="grenada" id="country9"><label for="country9">Grenada</label><br>
             <input type="checkbox" name="country10" value="turksandcaicos" id="country10"><label for="country10">Turks and Caicos Islands</label><br>
           </div> <!-- End Checkbox-->
           <div class="comments">
            <p>Please share any additional comments you have about traveling in the Caribbean.</p>
            <textarea id="textarea" name="message" placeholder="Additional Comments.." style="height:200px; width: 100%"></textarea> <!--End Text Area-->
            </div>
          </div> <!--End Travel Questionnaire-->
         <div class="submit">
          <input id="submit" type="submit" value="Submit" required>
         </div>
        </form>
        
      </section>
     </div>
     <footer>
        <p class="credit">2018 T.Lanette Pollard for<a href="http://www.rogetfreelancing.com"> Roget Freelancing</a></p>
     </footer>
    
    
    
    <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

  </body>
</html>

            
          
!
            
              /* Colors: ffffe3, f7f7f7, 5c636e, f8b500, 393e46, f7f7f7;
Fonts: @import url('https://fonts.googleapis.com/css?family=Fontdiner+Swanky|Montserrat'); 
font-family: 'Fontdiner Swanky', cursive;
font-family: 'Montserrat', sans-serif; font-family: 'Indie Flower', cursive;*/

/* Designed for Mobile Devices First */
/*
* { outline: 1px solid black;} */

html {
  background-color: #f7f7f7;
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/1148131/pier-440339_1920.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body, header, main, section, form, footer {
  display: flex;
}

body, header, main, section, form, footer {
  flex-direction: column;
}

body {
  background-color: /*white*/ 
  height: 100%;
  width: 100%;
  margin: auto;
  padding: auto;
  line-height: 1.5;
  font-family: 'Montserrat', sans-serif;
  color: black;
}

p {
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 0;
  padding: 10px;
}

/* Header Style */

header {
  display: block;
  margin: 0 10px 10px;
  padding-top: 16px;
  padding-bottom: 16px;
  padding-right: 16px;
  padding-left: 16px;
  text-align: center;
}
h1 {
  display: block;
  background-color: rgba(255,255,255, 0.25);
  box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2),0 4px 20px 0 rgba(0,0,0,0.50);
  font-family: 'Fontdiner Swanky', cursive;
  font-weight 400;
  margin: 10px 0;
  font-size: 2rem;
}

h5.intro {
  background-color: rgba(255,255,255, 0.6);
  box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2),0 4px 20px 0 rgba(0,0,0,0.50);
  font-family: 'Fontdiner Swanky', cursive;
  font-size: 6vw;
  font-style: italic;
}

 #description {
  display: block;
  background-color: rgba(255,255,255, 0.6);
   box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2),0 4px 20px 0 rgba(0,0,0,0.50);
  text-align: center;
  margin: 5px;
  padding: 10px;
  border-radius: 4px;
   font-size: 14px;
}


/*Form Container Style */
.form-container {
  background-color: /*white;*/rgba(255,255,255, 0.6);
  margin: 30px;
  box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2),0 4px 20px 0 rgba(0,0,0,0.50);
  border-radius: 5px;
  padding: 20px;
}

/* Form Design */
 h5.travel{
    display: block;
    margin: auto;
    padding: 0.15px 20px;
    text-align: center;
    font-size: 18px;
    -webkit-margin-before: 1.67em;
   -webkit-margin-after: 1.67em;
   -webkit-margin-start: 0px;
   -webkit-margin-end: 0px;
   
}

legend {
  font-weight: 700;
}

.personal, .questions, .comments {
  margin: 20px;
}

input[type=text], input[type=email],  select, textarea{
  width: 100%;
  background-color: #f8f8f8;
  margin: 8px 0;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  font-size: 14px;
  box-sizing: border-box;
}

input[type=number] {
  margin: 8px 0;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  font-size: 14px;
  box-sizing: border-box;
}

label {
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 12px 12px 12px 10px;
  display: inline-block;
}

input[type=submit]{
  background-color: #5c636e;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  float: right;
  margin: 10px;
}

input[type=submit]:hover {
  background-color: #f8b500;
}

/*Footer Styling*/
footer {
  width: 100%;
  background-color: #393e46;
  color: white;
  text-align: center;
  align-items: center;
  padding-top: 10px;
}
p.credit {
  font-family: 'Indie Flower', cursive;
  font-size: 20px;
  font-weight: 100;
  padding: 5px;
  box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2),0 4px 20px 0 rgba(0,0,0,0.19);
  
}

p a {
  color: white;
}

p a:hover {
  color: #f8b500;
}


/*Media Queries: Larger Screens, Max-width 1200px*/

@media screen and (min-width: 1200px) {
  header {
    margin: 10px 100px;
  }
  h1 {
    font-size: 4vw;
  }
  h5.intro {
    margin: 15px 2px;
    padding: 10px 0;
    font-size: 3vw;
  }
  #description {
    margin: 15px 3px;
    font-size: 18px;
  }
  .form-container {
    margin: 0 123px 50px;
  }
  
  h5.travel {
    font-size: 22px;
    margin: 20px;
  }
  
  #survey-form {
    margin-left: 40px;
    font-size: 18px;
  }
  input[type=text], input[type=email],  select, textarea {
    height: 40px;
    width: 90%!important;
  }
  input[type=submit] {
    margin: 10px 50px 30px;
    font-size: 20px;
  }
  select {
    margin-top: -8px;
    margin-bottom: 12px;
  }
  p input[type=checkbox]{
    margin-top: 5px;
  }
   
  }

@media screen and (max-width: 1199.98px) {
  header {
    margin: 10px 100px;
  }
  h1 {
    font-size: 4vw;
  }
  h5.intro {
    margin: 15px 2px;
    padding: 10px 0;
    font-size: 3vw;
  }
  #description {
    margin: 15px 3px;
    font-size: 18px;
  }
  .form-container {
    margin: 0 123px 50px;
  }
  
  h5.travel {
    font-size: 22px;
    margin: 20px;
  }
  
  #survey-form {
    margin-left: 40px;
    font-size: 18px;
  }
  input[type=text], input[type=email],  select, textarea {
    height: 40px;
    width: 90%!important;
  }
  input[type=submit] {
    margin: 10px 50px 30px;
    font-size: 20px;
  }
  select {
    margin-top: -8px;
    margin-bottom: 12px;
  }
  p input[type=checkbox]{
    margin-top: 5px;
  }
}


 /*Media Queries: Tablets */

@media screen and (max-width: 768px){
  header {
    margin: 10px 50px;
  }
  h1 {
    font-size: 5vw;
  }
  h5.intro {
    margin: 15px 2px;
    padding: 10px 0;
    font-size: 3.5vw;
  }
  #description {
    margin: 10px 6px;
    padding: 20px;
    text-align: center;
   
  }
  .form-container {
    margin: 0 75px 50px;
  }
  #survey-form {
    font-size: 16px;
  }
  h5.travel {
    font-size: 18px;
  }
}

/*Media Queries: Smaller Devices */

@media screen and (max-width: 566px){
  header {
    margin: 10px 50px;
  }
  h1 {
    font-size: 5.5vw;
  }
  h5.intro {
    margin: 30px 2px;
    padding: 10px 0;
    font-size: 4vw;
  }
  #description {
    margin: 10px 3px;
    font-size: 13px;
  }
  .form-container {
    margin: 0 60px 50px;
  }
  #survey-form {
    font-size: 14px;
    margin-left: 10px;
  }
  h5.travel {
    margin: 10px;
    padding-left: 0px;
    font-size: 16px;
    text-align: center;
  }
  
}

@media screen and (max-width: 425px){
  header {
    margin: 10px 50px;
  }
  h1 {
    font-size: 6.5vw;
    margin: 10px -10px;
    padding: 10px;
  }
  h5.intro {
    margin: 30px -5px;
    padding: 10px 10px;
    font-size: 5vw;
  }
  #description {
    margin: 10px 3px;
    padding: 12px 25px;
    text-align: justify;
    font-size: 14px;
  }
  .form-container {
    margin: 0 70px 50px;
  }
  #survey-form {
    font-size: 12px;
    margin: -5px -10px;
  }
  h5.travel {
    font-size: 16px;
    text-align: center;
  }
}

@media screen and (max-width: 325px){
  
  header {
    margin: 10px 50px;
  }
  h1 {
    margin: 20px -7px;
    font-size: 8vw;
    padding: 10px 10px;
  }
  h5.intro {
    margin: 20px -7px;
    padding: 10px 10px;
    font-size: 6vw;
  }
  #description {
    margin: 10px -12px;
    padding: 20px;
    font-size: 12px;
    text-align: center;
  }
  .form-container {
    margin: 0 40px 50px;
    
  }
  #survey-form {
    font-size: 11px;
    margin: -5px -10px;
  }
  h5.travel {
    font-size: 14px;
    text-align: center;
    margin-right: -5px;
  }
  
}
            
          
!
            
              $(document).ready(function(){
  $("form").submit(function(){
    alert("Submitted");
  });
});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console