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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <!doctype html>
<html lang="eng">
<meta charset= "utf-8"
 <head>
  
  
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
  <link rel="stylesheet" type="text/css" href="mystyle.css">
  <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
</head>
   
  <body>
  <h1 id="title">Survey Form</h1>
    

    <form action="#" method="get" id="survey-form">
>
<div class="form-group"
      
      <fieldset>
<legend class="description">
  <p id="description"class="description-text-center">
    "How do you like Free Code Camp"
  </p>
  
        </div>
        
        </div>
   
    
       
      
   <form>
    
     <label for="name-label">Name* (required)</label>     
     <input type="text" required value="name" placeholder="please enter your full name"> 
     
     <legend class="email-input">
<label>
       <input id="email" required</label>
  <input type="text"required placeholder="please enter your email">
    </div>
<div class="number-input"
<p>
  <label for="number-label">Age:</label>
  <input type="number" id="number" name="number"min="1"max="125" placeholder="age"required</p></input>
  </div>
  
  
  
    
    <legend class="dropdown-content">
       <name="gender" select id="dropdown">gender:
      <select>
        <option value="male">male</option>
        <option value="female">female</option>
        <option value="other">Other</option>
      </select>
       </div>
      
    <fieldset>
      <legend>
 
    
  <h2 class="description2">What do you enjoy the most about Free code camp</h2>
  
 
  <div class= "container">
   
  <div class= "radio">
   
       
<input type="radio" name="likes" value="the curriculum" checked> The Curriculum
    <label for="the curriculum"</label>
    
<input type="radio" name="the community" value="the community">The Community
       <label for="the community"the community</label> 

    </label> 
    <label for="The Challenge">
 <input type="radio" name="likes" value="The Challenge">The Challenge
      <label for="The Challenge"</label>

      </div>  
    </div>
         </fieldset>    
         </legend>
         <div class="textarea">
    <textarea name="comments" placeholder="comments"></textarea>
         </div>
      <br>
         <div class=submit>   
    <button type="submit"name="submit" id="submit">Submit</button>
         </div>
    </div>
    
    </form>
              
            
!

CSS

              
                @font-face {
  font-family: "Roboto", sans-seris;
}


.form {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
}
input {
  width: 50%;
  height: 40px;
  display: inline-block;
}

textarea {
  resize: none;
  max-height: 5%;
  max-width: 160px;
}

input,
textarea {
  outline: none;
  border: 3px solid black;
}

input:focus,
textarea:focus {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
  border: 1px solid rgb(0, 0, 0);
}

::placeholder {
  color: blue;
  opacity: 1;
}

:-ms-input-placeholder {
  color: blue;
}

.h1 {
  text-align: center;
  margin: 0px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  height: 100%;
}

body {
  font-size: 25px;
  margin: 0px;
  height: 100%;
  padding: 3em;
  background: #ff0066;
  text-align: center;
}

.information {
  font-size: 20px;
  left: 40%;
  border: 3px solid black;
  display: inline-block;
}

#name-label,
#email-label,
#number-label #radio {
  margin: 15px;
  display: left;
  padding: 15px 10px;
  width: 18%;
  height: 10px;
  border: 3px solid black;
  border-radius: 10px 10px 10px 10px;
  font-size: 26px;
  $color1: 00000;
}

 {
  margin: 15px;
  border-width: 4px;
  border-color: black;
  padding: 16px;
  font-size: 25px;
  display: left;
}

#email-label {
  
  flex-direction: column;
  display: block;
}

.dropdown-content select {
  position: relative;
  display: block;
  padding: 10px;
  top: 5%;
  left: 35%;
  font-size: 26px;
  color: blue;
  border-radius: 25px;
  border: 3px solid black;
  line-height: 25px;
}

input: [type=radio] {
  width: 40px;

  vertical-align: middle;
}

h2 {
  margin-left: 100px;
}

              
            
!

JS

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

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - 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. 

              
            
!
999px

Console