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>
<html>
<main>
  <link href="https://fonts.googleapis.com/css2?family=PT+Sans&display=swap" rel="stylesheet">
<head>
  <meta name="viewport" content="width=device-width" />
  <title>FreeCodeCamp survey form</title>
  <h1>FreeCodeCamp survey form<h1>
    <h2>Thank you for taking the time to help us improve the platform</h2>
</head>
<body>
  <div class="global-box"><label for="name">Name</label></br><input type="text" id="name" name="name" required placeholder="Enter your Name">
  </br>
    </br>
  <label for="email">Email: </label></br><input type="text" id="email" name="email" required placeholder="Enter your email">
   </br>
    </br>
<label for="age">Age (optional): </label></br><input type="number" id="age" name="age" min="10" max="99" placeholder="">
 </br>
    </br>
<label for="role-selection">Which option best describes your current role? </label></br>
<select name="role" id="role-selection">
 <option value="">--Select current role--</option>
    <option value="student">Student</option>
    <option value="full-time-job">Full time job</option>
    <option value="full-time-learner">Full time learner</option>
    <option value="not-say">Prefer not to say</option>
    <option value="other">Other</option>
</select>
  </br>
</br>
<p>Would you recommend FreeCodeCamp to a friend?</p>
  <div>
  <input type="radio" id="defenitly" name="recommendation" value="defenitly"
         checked>
  <label for="defenitly">Defenitly</label>
</div>

<div>
  <input type="radio" id="maybe" name="recommendation" value="maybe">
  <label for="maybe">Maybe</label>
</div>

<div>
  <input type="radio" id="not-sure" name="recommendation" value="not-sure">
  <label for="not-sure">Not sure</label>
</div>
</br>
</br>
<label for="feature">What is your favorite feature of FreeCodeCamp? </label></br>
<select name="best-feature" id="feature">
 <option value="">--Select an option--</option>
    <option value="challenges">Challenges</option>
    <option value="projects">Projects</option>
    <option value="community">Community</option>
    <option value="Open-source">Open Source</option>
    <option value="other">Other</option>
</select>
</br>
</br>
<p>What would you like to see improved? (Check all that apply)</p>
<div>
  <input type="checkbox" id="front" name="front">
  <label for="front">Front-end prject</label>
</div>
<div>
  <input type="checkbox" id="back" name="back">
  <label for="back">Back-end prject</label>
</div>
<div>
  <input type="checkbox" id="data" name="data">
  <label for="data">Data Visualization</label>
</div>
<div>
  <input type="checkbox" id="Challenges" name="Challenges">
  <label for="Challenges">Challenges</label>
</div>
<div>
  <input type="checkbox" id="osc" name="osc">
  <label for="osc">Open Souce Community</label>
</div>
<div>
  <input type="checkbox" id="gitter" name="gitter">
  <label for="gitter">Gitter help rooms</label>
</div>
<div>
  <input type="checkbox" id="videos" name="videos">
  <label for="videos">Videos</label>
</div>
<div>
  <input type="checkbox" id="meeteups" name="meetups">
  <label for="meetups">City meetups</label>
</div>
<div>
  <input type="checkbox" id="wiki" name="wiki">
  <label for="wiki">Wiki</label>
</div>
<div>
  <input type="checkbox" id="forum" name="forum">
  <label for="forum">Forum</label>
</div>
<div>
  <input type="checkbox" id="courses" name="courses">
  <label for="courses">Additional courses</label>
</div>
</br>
<label for="comments-suggestions">Any comments or suggestions?</label></br>
<textarea id="comments-suggestions" name="comments-suggestions" rows="5" cols="50" placeholder="Enter your comment here.."></textarea>
</br>
</br>
<input type="submit" value="Submit">
</div>
</body>
</main>
</html>

              
            
!

CSS

              
                body {
position: absolute;
        top: 0; bottom: 0; left: 0; right: 0;
        height: 100%;
    margin:0;
    padding:0;
    background-size: 100% ;
    width:100%;  
    color:black;
  font-size:100%
}
@media only screen and (max-device-width:980px) {
 body {
 font-size:120%;
 }
}
body:before {
        content: "";
        position: fixed;
        height: 100%; width: 100%;
        background: url(https://images.unsplash.com/photo-1520509414578-d9cbf09933a1?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ);
        background-size: cover;
  z-index: -1; /* Keep the background behind the content */     
        -webkit-filter: blur(5px);
    -webkit-background-size: cover; /* pour Chrome et Safari */
    -moz-background-size: cover; /* pour Firefox */
    -o-background-size: cover; /* pour Opera */
    background-size: cover; /* version standardisée */
    }
h1{
  text-align: center;
  font-family: 'PT Sans', sans-serif;
  color: white;
}
h2{
  text-align: center;
  font-size: 14px;
  font-family: 'PT Sans', sans-serif;
  color: white;
}
@media (max-height: 800px){
.global-box{
  width: 50%;
  max-width: 800px;
  min-width: 100px;
  border-style: solid;
  border-color: #495867;
  border-width: 5px;
  border-radius: 5px;
  background-color: #495867; 
  padding: center;
  margin-left: 25%;
  margin-right: 25%;
  opacity: 0.85;
 }
}
div{
  font-family: 'PT Sans', sans-serif;
  font-size: 20px;
  color: white;
}
p{
  font-family: 'PT Sans', sans-serif;
  font-size: 20px;
}
#name{
  border-style: solid;
  border-radius: 2px;
}
#email{
  border-style: solid;
  border-radius: 2px;
}
#age{
  border-style: solid;
  border-radius: 2px;
}
select{
  position: relative;
  width: 50%;
  max-width: 50%;
  min-width: 50%;
  padding: 10px 200px;
  border-style: solid;
  border-radius: 10px;
}
@media (max-height: 800px){
  p{
    font-size: 20px;
    opacity: 0.85;
  }
}
input {
  padding: 5px 5px;
}
              
            
!

JS

              
                
              
            
!
999px

Console