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>

<header class="header">
  <h1 id="title">Survey Form</h1>
  <p id="description"> Please take few minutes to let me know what do You think of this Survey Form!</p>
</header>

<form id="survey-form">
  <div id="personalinfo">
    <div class="inputpad">
      <label id="name-label">Name: <input class="input-info" id="name" type="text" name="name" placeholder="Enter your name" required></label> </div>
    <div class="inputpad">
      <label id="email-label">Email: <input class="input-info" id="email" type="email" name="email" placeholder="Enter your email" required></label>
    </div>
    <div id="age" class="inputpad">
      <label id="number-label"> Age: <input class="input-info" type="number" min="8" max="90" step="1" id="number" placeholder="Enter your age" required></label>
    </div>
    <p class="mainqs"> What is Your gender? </p> <label>
      <input type="radio" name="gender" value="malegender">Male</label>
    <label>
      <input type="radio" name="gender" value="femalegender">Female</label>
    <label>
      <input type="radio" name="gender" value="rathernotsaygender">Rather not say</label>

    <p class="mainqs"> Please select Your experience level with HTML/CSS/JS: </p>

    <select id="dropdown" class="input-info" name="experience">
      <option>Select</option>
      <option value="beginner0">No experience/beginner</option>
      <option value="beginner1">Little experience/beginner</option>
      <option value="intermediate0">No work projects/intermediate</option>
      <option value="intermediate1">Working on projects/intermediate</option>
      <option value="professional">Professional</option>
    </select>
  </div>

  <div id="qas">
    <p class="mainqs"> For 1 being disaster and 5 being excellent, how would You rate the folowing:</p>
    <ol>
      <li>
        <p> Your first impression of this Survey </p>
        <label>
          1<input type="radio" name="qa" value="1">
        </label>
        <label>
          2<input type="radio" name="qa" value="2">
        </label>
        <label>
          3<input type="radio" name="qa" value="3">
        </label>
        <label>
          4<input type="radio" name="qa" value="4">
        </label>
        <label>
          5<input type="radio" name="qa" value="5">
        </label>
      </li>
      <li>
        <p> Color scheme of the whole page/survey</p>
        <label>
          1<input type="radio" name="qa1" value="1">
        </label>
        <label>
          2<input type="radio" name="qa1" value="2">
        </label>
        <label>
          3<input type="radio" name="qa1" value="3">
        </label>
        <label>
          4<input type="radio" name="qa1" value="4">
        </label>
        <label>
          5<input type="radio" name="qa1" value="5">
        </label>
      </li>
      <li>
        <p> Overall look of the survey </p>
        <label>
          1<input type="radio" name="qa2" value="1">
        </label>
        <label>
          2<input type="radio" name="qa2" value="2">
        </label>
        <label>
          3<input type="radio" name="qa2" value="3">
        </label>
        <label>
          4<input type="radio" name="qa2" value="4">
        </label>
        <label>
          5<input type="radio" name="qa2" value="5">
        </label>
      </li>
      <li>
        <p>Choice of answer choices offered (wheter radio button or writing text or dropdown menu... ) </p>
        <label>
          1<input type="radio" name="qa3" value="1">
        </label>
        <label>
          2<input type="radio" name="qa3" value="2">
        </label>
        <label>
          3<input type="radio" name="qa3" value="3">
        </label>
        <label>
          4<input type="radio" name="qa3" value="4">
        </label>
        <label>
          5<input type="radio" name="qa3" value="5">
        </label>
      </li>
      <li>
        <p>Your impression of this Survey after completing this part </p>
        <label>
          1<input type="radio" name="qa4" value="1">
        </label>
        <label>
          2<input type="radio" name="qa4" value="2">
        </label>
        <label>
          3<input type="radio" name="qa4" value="3">
        </label>
        <label>
          4<input type="radio" name="qa4" value="4">
        </label>
        <label>
          5<input type="radio" name="qa4" value="5">
        </label>
      </li>
    </ol>
  </div>

  <div id="notlike">
    <p class="mainqs"> Please select all You DID NOT like in this Survey: </p>
    <label><input id="chckb1" type="checkbox" value="colorscheme">Color scheme</label>
    <label><input id="chckb2" type="checkbox" value="fontsize">Font size</label>
    <label><input id="chckb3" type="checkbox" value="easeofuse">Ease of use</label>
    <label><input id="chckb4" type="checkbox" value="elementslayout">Layout</label>
    <label><input id="chckb5" type="checkbox" value="backgroundlook">Background</label>
    <label><input id="chckb6" type="checkbox" value="visualsurveystyle">Visual style of the survey questions</label>
  </div>

  <p id="suggestions" class="mainqs">If You have any suggestions/comments plese let me know: </p>
  <textarea name="commentarea" placeholder="Enter your comment here..." id="comments">
   </textarea>

  <div id="btn">
    <button id="submit">Submit</button>
  </div>

</form>

<footer>
  <p id="thankyou">Thank You for taking this survey!</p>

  <p id="copyright">This pen is made by<a id="myprofile" target="_blank" href="https://codepen.io/amaranthaST"> Ivona</a></p>
</footer>
              
            
!

CSS

              
                /* Header and body Styles */
body {
  background: url(https://www.surfertoday.com/images/stories/clouds.jpg)
    no-repeat center center fixed;
  /* url(http://images.freehdw.com/800/lines-abstract-background-point-scheme-background-free.jpg) no-repeat center center fixed;*/
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.header {
  text-align: center;
  /*background-color:#000066;
    /*#106c7e;*/
  width: 50%;
  margin: auto;
  margin-bottom: 4%;
  font-family: "sans-serif", "serif";
  color: white;
  text-shadow: 3px 2px 2px black;
}

h1 {
  text-align: center;
  padding-top: 3%;
  font-size: 350%;
}

#description {
  font-size: 150%;
  font-weight: bold;
}

/* Form Styles */
#survey-form {
  padding-top: 1%;
  background-color: rgba(242, 242, 242, 0.6);
  width: 50%;
  margin: auto;
  box-shadow: 15px 10px 5px 0px rgba(0, 0, 0, 0.55);
}

p {
  font-size: 120%;
}

/* Input Styles */
.inputpad {
  padding-bottom: 10px;
}

.input-info {
  width: 40%;
  padding: 0.525rem;
  resize: vertical;
  border-style: none;
  background: transparent;
  border-bottom: 1px solid black;
  /*
  box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.55);
  box-shadow:inset 0 -0.6em 0 -0.2em rgba(0,0,0,0.17);
  border-radius:1em;*/
}

label {
  font-size: 125%;
}

.mainqs {
  font-weight: bold;
}

/* Padding and layout */
#personalinfo {
  width: 95%;
  margin-top: 2rem;
  margin-left: 1.5rem;
}

#name-label,
#email-label,
#number-label {
  font-weight: bold;
}

#suggestions {
  width: 95%;
  margin-left: 1.5rem;
}

#comments {
  width: 95%;
  margin-left: 1rem;
  box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.55);
}

#notlike,
#qas {
  margin-top: 3.5rem;
  width: 95%;
  margin-left: 1.5rem;
}

#suggestions {
  margin-top: 4rem;
}

#comments {
  min-height: 120px;
  margin-bottom: 2.5rem;
  background-color: rgba(242, 242, 242, 0.8);
  /*border-radius:2em;*/
}

label {
  font-size: 125%;
}

/* Button Styles */

#btn {
  padding-bottom: 50px;
}

#submit {
  background-color: #2d862d;
  font-size: 125%;
  color: white;
  border: 1px;
  padding: 8px 22px;
  border-radius: 1em;
  transition: all 0.2s;
  box-shadow: inset 0 -0.6em 0 -0.3em rgba(0, 0, 0, 0.27);
}
#btn {
  text-align: center;
}
#submit:hover {
  background-color: DarkGreen;
  cursor: pointer;
}

/* Footer Styles */
footer {
  text-align: center;
  width: 100%;
  padding-top: 1%;
  margin: auto;
  font-weight: bold;
  font-size: 120%;
}

#thankyou {
  color: black;
}

#copyright,
#myprofile {
  font-size: 100%;
  color: black;
  margin-bottom: 4%;
}

#myprofile {
  color: red;
}

/* Small Screen adjustment */

@media (max-width: 500px) {
  #survey-form {
    width: 90%;
  }
  .header {
    width: 90%;
  }
  #personalinfo,
  #qas,
  #notlike,
  #comments,
  #suggestions {
    width: 95%;
    margin-top: 2rem;
    margin-left: 0.5rem;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console