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>

  <div class="title-class">
    <h1 id="title">Online Learning Survey Form</h1>
  <p id="description">Welcome to our online learners survey!</p>
<form id="survey-form" class="form-class">
  <div class="form-menu">
    <label id="name-label" for="name">Name</label><br>
    <input type="text" name="name" id="name" required class="form-controler" placeholder="Enter your full name please!" />
  <div class="form-menu">
    <label id="email-label" for="email">Email</label><br>
    <input type="email" required id="email" class="form-controler" name="email" placeholder="Enter your email please!" />
  <div class="form-menu">
    <label id="number-label" for="number">Age<span class="age-option">(Optional)</span></label><br>
    <input type="number" id="number" class="form-controler" name="age" min="10" max="99" placeholder="Your age" />
  <div class="form-menu">
    <p>What type of online course would you like to learn?</p>
    <select id="dropdown" name="course-list" form="survey-form" class="form-controler">
      <option value="" disabled>Select your favorite option</option>
      <option value="Computer-Assisted-Instruction-(CAI)">Computer Assisted Instruction (CAI)</option>
      <option value="Synchronous-Online-Learning">Synchronous Online Learning</option>
      <option value="Asynchronous-Online-Learning">Asynchronous Online Learning</option>
      <option value="Fixed-E-Learning">Fixed E-Learning</option>
      <option value="Computer-Managed-Learning (CML)">Computer Managed Learning (CML)</option>
      <option value="Adaptive-E-Learning">Adaptive E-Learning</option>
      <option value="Linear-E-Learning">Linear E-Learning</option>
      <option value="Interactive-Online-Learning">Interactive Online Learning</option>
      <option value="Individual-Online-Learning">Individual Online Learning</option>
      <option value="Collaborative-Online=Learning">Collaborative Online Learning"</option>
      <option value="other">Other</option>
  <div class="form-menu">
    <p>What is your highest level of education?<span> (Check only one )</span></p>
    <label for="some-hight-school">
      <input id="some-hight-school" type="radio" name="level" value="some-hight-school">Some Hight School</label><br>
    <label for="associate-degree">
      <input id="associate-degree" type="radio" name="level" value="associate-degree">Associate Degree</label><br>
    <label for="bachelors-degree">
      <input id="bachelors-degree" type="radio" name="level" value="bachelorsdegree">Bachelor's Degree</label><br>
    <label for="masters-degree-or-higher">
      <input id="masters-degree-or-higher" type="radio" name="level" value="masters-degree-or-higher">Master's Degree or Higher</label>
  <div class="form-menu">
    <p>What courses would you prefered</p>
    <label for="computer-science"><input type="checkbox" name="computer-science" id="computer-science" value="computer-science"> Computer Science</label><br>
    <label for="economy"><input type="checkbox" name="economy" id="economy" value="economy">Economy</label>
  <div class="form-menu">
    <p>Why do you prefer e-learning courses?<span> (Not more than 5 lines)</span></p>
    <textarea id="story" name="story" cols="150" placeholder="Comment your choice here..."></textarea>
  <div class="form-menu">
    <button type="submit" id="submit" class="submit-button">
  <p id="footer">This survey form page has been designed by <a href="" target="_blank">#NiandreAnge</a></p>



                html {
display: block;
body {
  width: 100%;
  background-color: #000;
  font: normal 100% Cambria, Georgia, serif;
  margin: 0;
.title-class {
  width: 50%;
  height: auto;
  border: 5px #fff solid;
  border-radius: 10px;
  margin: 40px 25% 0 25%;
  background-color: blue;
  text-align: center;
  color: white;
#description {
  text-align:center; font-size:1.5rem;
.form-class {
  display: block;
  height: auto;
  margin: 10px 10% 20px 10%;
  border-radius: 3px;
  background-color: blue;
  width: 80%;
  box-sizing: content-box;
.form-menu {
 font-size: 1.125rem;
 background-color: #150777;
 box-sizing: border-box;
 width: 100%;
 border: solid blue 10px;
 padding: 20px;
 color: #fff;
#number, #dropdown,
#story, #submit {
background-color: white;
width: 100%;
height: 30px;
border: none;
#story {
height: 10rem;
p {
font-size: 20px;
color: #fff;
#submit {
background-color: red;
border-radius: 15px;
width: 50%;
color: #fff;
font-size: inherit;
margin: auto 25%;
#footer {
text-align: center;
color: red;
font-style: italic;


                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

  - Select the project you would 
    like to complete from the dropdown 
  - Click the "RUN TESTS" button to
    run the tests against the blank 
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments.