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

              
                
 <head>

  <h1 id="title">Let's get to know each other!</h1>

   <p id="description"><strong>Complete this poll and help us to improve our site</strong></p>
   </head>
<link href="https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Open+Sans&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
     <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> 

   <body id="body1">
     
     <form action id="survey-form">
      <div class="div1">
        
        <label for="name" id="name-label">Name</label>
        <input type="text" id="name" class="text-input" placeholder="Enter Your Name" tabindex="0" required><br>
        <label for="Email" id="email-label" class="p">E-mail</label>
        <input type="email" id="email" class="text-input" placeholder="Enter a valid e-mail adress" tabindex="0" required>  
          <label for="Age" id="number-label" class="p">Age</label>   
        <input type="number" id="number" class="text-input" placeholder=Age min="0" max="100">
       </div>
       <div class="div1"
       
    <label for="dropdown" id="dropdown">What do you expect from this site?</label>
        
<select name="What do you expect from this site" id="dropdown-label" form="survey-form" required>
  <option value="Learn new skills">Learn new skills</option>
  <option value="Find a new hobby">Find a new hobby</option>
  <option value="Share what I know with others">Share what I know with others</option>
  <option value="To be part of a community">To be part of a community</option>
</select>
       </div>
 <div class="div1">
 
     <p id="p">What would you like us to improve? (check all that apply)>What would you like us to improve?<p>
  
    <input id="improve" type="checkbox"  class="div1" name="Tutorials" value="tutorials">Tutorials</label>
    <input id="improve" type="checkbox" class="div1" name="Videos" value="videos">Videos</label>
  <input id="improve" type="checkbox" name="Articles" value="videos">Articles</label>
<input id="improve" type="checkbox" name="Feedback" value="feedback">Feedback</label>

</div>
<div class="radio-div>"

     <p id="p">Would you recommend this site to your friends?</p>
<input type="radio" id="yes, absolutely" class="radio-div" name="recommend" value="yes, absolutely">
            <label for="yes, aboslutely">Yes, absolutely</label><br>
            <input type="radio" id="maybe" class="radio-div" name="recommend" value="Maybe">
            <label for="maybe">Maybe</label><br>
            <input type="radio" id="I don't think so" class="radio-div" name="recommend" value="I don't think so">
            <label for="I don't think so">I don't think so</label><br 


 
</div>
   <div class="div1"
  <p id="p">Do you have any suggestions?<p>
 <form>
   <textarea id="suggestions" rows="5" cols="75"></textarea>
  </form>
</div>
</form>
<div>
  <input type="submit" id="submit" class="text-input" value="Submit">
</div>
</body>


  
 
    
 

              
            
!

CSS

              
                <link href="https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Open+Sans&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
     <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

#title {
 font-family: Luckiest Guy;
 color: black;
  font-size: 2em; 
}
#description {
 font-family: open sans;
  color: black;
  font-size: 1.5em;
    text-align: center;
}

#body1 {
  height: 100%;
    margin: 5px;
  background-color: #FFDFBA;
}

.text-input {
    box-sizing: border-box;
    width: 100%;
    display: block;
    margin: auto;
    margin-top: 10px;
    border-radius: 5px;
    height: 2em;
    font-family: 'open sans;
    font-size: 1rem;
    color: black;
}


#dropdown-label {
  font-family: open sans;
  color: black;
  font-size: 1em;
}

#name-label{
  font-family: open sans;
  color: black;
  font-size: 1em;
 
}
#email-label{
  font-family: open sans;
  color: black;
  font-size: 1em;
 
}
#number-label{
  font-family: open sans;
  color: black;
  font-size: 1em;
 
}
#p {
  font-family: open sans;
  color: black;
  font-size: 1em;
}
.div1 {
  font-family: open sans;
  color: black;
  font-size: 1em;
}
              
            
!

JS

              
                
              
            
!
999px

Console