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

              
                   <!DOCTYPE html>
<html>
  <head>
    <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
    </head>
  
  
  
  
  <body>
    <header><link href="mystyle.css" rel="stylesheet" type="text/css">
    </header>
    
    
    
    
<h1 class="title">Ah welcome!</h1>
<p id ="description">Nice to meet you!Can I have a few seconds of your time?</p>
<form id ="survey-form" class="grid-inline">
  
  
<div class="type1">
<label  for = "name" > First things first,who are you lovely online  stranger? </label>
<input  class="border " type= "name" id="name"  placeholder ="Your name" name="name">
</div>
     
  
    <div class="type1">
  <label for="email">Do you have an email?: </label>
      <input type="email"  class="border"  id="email" name="email" placeholder="Insert  random email  address" required> 
  </div>
    
<div class="type1">
<label for="input">How much time have you been coding?  </label>
<input type= "number"   class="border " id="number" placeholder ="Months"  name="number" required >
</div>
  
  
<div class="type1">
<p>What should I work more on?</p>  
<select >
<option value="title">Title</option>
<option value="survey">Survey form </option>
<option  value="background">Background</option>
<option value="design">Design</option>
</select>
</div>
<div class="type1">
  <legend>How much more work  should I put on this page?</legend>
<label for = "option1">
<input id="option1"   class="border" type="radio" name="group">A lot.And I mean a lot.</label>
<label for="option2">
<input id="option2"   class="border" type="radio" name="group">Looking already good mate!</label>
  </div>  
 <div class="type1">
<fieldset>
 <legend>Would you visit again?</legend>
<input id="opt1" type="checkbox" name="group2" value="one">
<label for="opt1"> Yes</label><br>
<input id="opt2" type="checkbox" name="group2" value="two">
<label for="opt2">No</label>
</fieldset>
</div>
                 

<textarea >Any parting words?</textarea>
<button type="submit">Submit text</button> 
 
    
    
</form>
</body>
</html>
      
            
              
            
!

CSS

              
                
.title {
text-align: center;
font-size: 3em;
font-weight: bold;
font-color: hsl (0,0,12%);
font-family: Sans Serif;
 }

  #description {
  text-align: center;
font-size: 1.5em;
font-weight: normal;
}


form {

font-size: 0.9em;
color: hsl (0,0,15%)  ;
font-family: Open Sans;
padding: 30px;
}

.grid-inline .type1 {
  display: grid;
  grid-column-gap: 100px;
  
  grid-template-columns: 30% 35%;
}



 .grid-inline {
  display: grid;
 grid-row-gap: 30px;
  grid-template-rows: 1fr;
}

button  {
width: 100px;
}

textarea{
width: 200px;
height: 70px;
}
              
            
!

JS

              
                
              
            
!
999px

Console