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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


                <script src=""></script>

     <header> <h1 id="title">Shopping Survey Form</h1>
       <p id="description"> What's your favorite way to shop</p>

      <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="" height="20" alt="tesco"></label></p>

      <p><input type="checkbox" id="sainsburysshop"                 name="preferredshop" value="sainsburys">
    <label for="sainsburysshop"><img src="" height="35"                      alt="sainsburys"> </label></p>

     <p><input type="checkbox" id="asdashop"                        name="preferredshop" value="asda">
           <label for="asdashop"><img src="" height="30" alt="asda">             </label></p>

    <p><input type="checkbox" id="morrisonsshop"                    name="preferredshop" value="morrisons">
           <label for="morrisonsshop"><img                          src="" height="40"        alt="morrisons"></label></p>

    <p><input type="checkbox" id="lidlshop"                        name="preferredshop" value="lidl">
           <label for="lidlshop"><img src=""                 height="40" alt="lidl"></label></p>
    <p><input type="checkbox" id="aldishop"                        name="preferredshop" value="aldi">
           <label for="aldishop"><img src="" 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 -->

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



                * {
font-family: 'JetBrains Mono', monospace;  
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; 

  text-align: left;
  font-size: 10px;
  color: white;
  padding: 5px;
  margin-top: 10px;
  border-top: 1px solid;