123

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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<head>
  <link href="https://fonts.googleapis.com/css?family=Merriweather&display=swap" rel="stylesheet">
<head>  
<header>
  <div id="title-container">
<h1 id="title">EffectLearn<img id="logo" src="https://i.postimg.cc/FzWtyFRN/25829f6b8d6ca72aee817a8448ab7024-flat-open-book-icon-by-vexels.png"</h1>
 </div>
</header>
<p id="description">This is a survey to research the most effective way to aquire knowledge</p>
  <div class="wrapper">
 <form id="survey-form" action="#" method="get">
   <h2> Personal Information</h2> 
   <label for="name" id="name-label">Name</label>
   <input type="text" name="info" id="name" placeholder="input your name here" required>
   <label for="email" id="email-label">Email</label>
   <input type="email" name="info" id="email" placeholder="input your email here"  required>
   <label for="number" id="number-label">Age</label>
   <input type="number" name="info" id="number" placeholder="0" min="0" max="100">
   <label for="dropdown" id="dropdown-label">Gender</label> 
  <select id="dropdown">
    <option value="1">Male</option>
    <option value="2">Female</option>
  </select>
   <h2>Learning Habits</h2>
  <label for="amount_select" id="amount-label">How many hours do you spend learning?</label>
  <fieldset>
    <ul id="amount_select">
      <li>
    <input type="radio" id="beginner" name="learn-type" value="amount-beginner">
    <label for="beginner">Beginner (10-15 hours/week)</label>
      </li>
      <li>
    <input type="radio" id="mediocre" name="learn-type" value="amount-mediocre">
    <label for="mediocre">Mediocre (15-30 hours/week)</label>
      </li>
      <li>
    <input type="radio" id="experienced" name="learn-type" value="amount-experienced">
    <label for="experienced">Experienced (30-45 hours/week)</label>
      </li>
      <li>
    <input type="radio" id="pro" name="learn-type" value="amount-pro">
    <label for="pro">Pro (45-60 hours/week)</label>
      </li>
    </ul>
  </fieldset>
   <fieldset>
   <h2>Do you feel you are doing enough?</h2>
   <div class="checkbox-container">
  <input type="checkbox" id="enough" value="check-enough">
   <label for="enough" id="enough-label">Enough</label>
     </div>
     <div class="checkbox-container">
  <input type="checkbox" id="not-enough" value="check-not-enough">
   <label for="not-enough" id="not-enough-label">Enough</label>
       </div>
   </fieldset>
  <div class="comments-container">
  <textarea name="additional comments" placeholder="put your additional comments in here"form="survey-form"></textarea>
   </div>
  <input type="submit" id="submit" value="Submit">
  </div>
</form>
            
          
!
            
              html, body {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  font-family: 'Merriweather', serif;
  color: black;
  background-color: white;
}
header {
  border: 2px solid black;
}
#title-container {
  width: 100%;
  height: auto;
}
#title {
  text-align: center;
  font-size: 40px;
}
#logo {
  width: 50px;
  height: auto;
  padding: 0;
  margin: 0;
}
#description {
  text-align: center;
  padding: 20px;
}
.wrapper {
  display: flex;
  justify-content: center;
}
#survey-form {
  
}
h2 {
  text-align: center;
  text-decoration: underline;
}
#name-label {
  display: flex;
  margin-top: 10px;
  font-size: 18px;
}
#name {
   display: flex;
   margin-bottom: 10px;
}
#email-label {
 display: flex;
  margin-top: 10px;
  font-size: 18px;
}
#email {
  display: flex;
   margin-bottom: 10px;
}
#number-label {
 display: flex;
  margin-top: 10px;
  font-size: 18px;
}
#number {
  display: flex;
   margin-bottom: 10px;
   
}
#dropdown-label {
  display: flex;
  margin-top: 10px;
  font-size: 18px;
}
#dropdown {
 display: flex;
   margin-bottom: 10px;
   
 
}
#button {
  
}
.dropdown-content {
  display: none;
  position: absolute;
  
}
#dropdown:hover .dropdown-content {
  display: block;
}
input[type="radio"] {
  margin: 10px;
}
fieldset {
  border: none;
}
#amount-label {
  
}
#amount_select {
  list-style-type: none;
}
.checkbox-container {
  margin: 10px;
}
.comments-container {
  margin: 20px;
}
#submit {
  margin: 20px;
}

            
          
!
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.

Console