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">Shopping Survey Form</h1>
       <p id="description"> What's your favorite way to shop</p>
       </header>


      <div id="container">
      <form id="survey-form">
 
       <!--  Personal info-->
    
       <!-- name  -->
       <p id="personaldetails">Personal details</p>
   
        <p><label id="name-label" for="name">Name:</label></p>
       <p><input type="text" id="name" placeholder="Enter name"          required></p>
         <!-- name  -->
  
         <!-- email -->
        <p><label id="email-label" for="email">Email:</label></p>
      <p><input type="email" id="email" placeholder="Enter email"        required></p>
         <!-- /email -->

         <!-- age -->
        <p> <label id="number-label" for="number">Age: </label></p>
      <input type="number" id="number" placeholder="Age"        min="16" max="150">
     <!-- /age -->
     
      <!--  /Personal info-->
  
       <!-- radio -->
     <p id="howdoyoushop">How do you like to shop?</p>
     <p> <input type="radio" id="onlineshop" name="waystoshop"      value="online">
     <label for="onlineshop">Online</label></p>

     <p><input type="radio" id="instoreshop" name="waystoshop"       value="in-store">
       <label for="instoreshop">In-store</label></p>

     <p> <input type="radio" id="clickshop" name="waystoshop"      value="clickandcollect">
        <label for="clickshop">Click & collect</label></p> 
        <!-- /radio -->

        <!-- dropdown menu -->
     <p id="employmentsit"> <label for="dropdown">Current Employment situation:</label></p>
    
     <p><select id="dropdown">
     <option disabled selected value>Select an option</option>
     <option value="student">Student</option>
     <option value="employed">Employed</option>
     <option value="unemployed">Unemployed</option>
       </select> </p>
       <!-- /ropdown menu -->
  
  
       <!-- checkbox -->
     <p id="preferredsup">Preferred Supermaket:</p>
        
      <p><input type="checkbox" id="tescoshop"                       name="preferredshop" value="tesco">
     <label for="tescoshop" id="tescopng"><img src="https://i.ibb.co/rsyMCcj/kisspng-tesco-com-retail-grocery-store-tesco-labs-tesco5b4c10981b4742-2794051115317116401117.png" height="20" alt="tesco"></label></p>

  
      <p><input type="checkbox" id="sainsburysshop"                 name="preferredshop" value="sainsburys">
    <label for="sainsburysshop"><img src="https://i.ibb.co/pXWJJYS/sainsburys-logo.png" height="35"                      alt="sainsburys"> </label></p>

        
     <p><input type="checkbox" id="asdashop"                        name="preferredshop" value="asda">
           <label for="asdashop"><img src="https://i.ibb.co/9vtnnKL/kisspng-asda-stores-limited-logo-rebranding-walmart-case-studies-strengthscope-5b7dc797884776-040312.png" height="30" alt="asda">             </label></p>

    <p><input type="checkbox" id="morrisonsshop"                    name="preferredshop" value="morrisons">
           <label for="morrisonsshop"><img                          src="https://i.ibb.co/JpTt1LJ/kisspng-morrisons-bradford-leeds-logo-retail-supermarket-5ac7b3864b9189-1884459815230370623095.png" height="40"        alt="morrisons"></label></p>

    <p><input type="checkbox" id="lidlshop"                        name="preferredshop" value="lidl">
           <label for="lidlshop"><img src="https://i.ibb.co/XLBKK5T/kisspng-lidl-logo-shop-val-benoit-lidl-logo-5b55c600b86bd3-8898232115323479047554.png"                 height="40" alt="lidl"></label></p>
  
    <p><input type="checkbox" id="aldishop"                        name="preferredshop" value="aldi">
           <label for="aldishop"><img src="https://i.ibb.co/nkCXB8j/kisspng-aldi-grocery-store-supermarket-chicago-company-aldi-student-hut-5b6c92454c2514-0970098015338.png" height="45" alt="aldi"></label></p>
  
    <p><input type="checkbox" id="othershop"                        name="preferredshop" value="other">
           <label for="othershop">Other</label></p>
        <!-- /checkbox -->

    
        <!-- comments -->
      <p id="gotfeedback">Got feedback? leave it below.</p>
 
        <p><textarea name="comments" rows="7" id="text-area"> </textarea></p>
        <!-- /comments -->
    
        <!-- Submit -->
        <input id="submit" type="submit" value="submit">
        <!-- /Submit -->


</form>
  </div>
<footer id="footer">Made by Chris: 2020</footer>
</main>

              
            
!

CSS

              
                * {
font-family: 'JetBrains Mono', monospace;  
margin-top:0;
margin-bottom: 0;
}

main {
  background-color: #4E545C;  
}

#title {
  text-align: center; 
  padding: 20px;
  color: #E5E8E8;
}

#description {
  position: relative;
  text-align: center; 
  font-size: 15px;
  margin-top: -20px;
  margin-bottom: 10px;
  color: #E5E8E8;
  border-bottom: 1px solid;
}

#container {
  width: 80%;
  height: 40%;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  font-size: 16px;
  background-color: #E5E8E8;
  text-align: center;
}

#personaldetails, #howdoyoushop{
  border-top: 1px solid;
  padding: 10px;
}

#employmentsit {
  border-top: 1px solid;
  padding: 10px;
}

#preferredsup {
  border-top: 1px solid;
  padding: 10px;
}

p {
  margin-top: 10px;
}

input[type=text], input[type=email]{
  width: 50%;
  
}

input[type=submit] {
  width: 100%;
  height: 2em;
  margin-top: 20px; 
  background-color: #FAD02C;
}

#number {
  margin-top: 10px;
}

#gotfeedback {
    border-top: 1px solid;
    padding: 10px;
}

#text-area {
  width: 100%;
  resize: vertical;
}


#submit:hover {
  cursor: pointer; 
}

#footer{
  text-align: left;
  font-size: 10px;
  color: white;
  padding: 5px;
  margin-top: 10px;
  border-top: 1px solid;
}
              
            
!

JS

              
                
              
            
!
999px

Console