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

              
                <header>
<div id=font>
<h1 class="center" id="title"> Project Survey Form </h1>
  <p class="center" id="description" > Thank you for taking the time to help improve my Projects </p>
</header>
  
<div id="centered-text">
  
<form action="#" id="survey-form">
  
  <body>
    
  <div id="margin">
  <label id="name-label">Name</label>
    <input id="name" class="center" type="text"   placeholder="name" required>
    <button type="submit">submit</button><br>
  </div>
  
<div id="margin">  
     <label id="email-label">Email</label>
    <input id="email" type="email" class="center" placeholder="email" required>
    <button type="submit">submit</button><br>
  </div>
  
  <div id="margin">
   <label id="number-label">Age</label>
   <input id="number" type="number" class="center" placeholder="age" min="1" max="99" style="width: 12.65em;" required>
   <button type="submit">submit</button><br>
  </div>
      
  <div id="margin">
    <label id="dropdown">What feature on this page is your favorite?</label>
    <select id="dropdown" name="features">
      <option value="font">Font</option>
      <option value="layout">Page Layout</option>
      <option value="background">Background</option>
      <option value="all">All of the above</option>
    </select>
    <button type="submit">submit</button><br>
  </div>
  
  <div id="margin">
    <fieldset id="width">
    <legend>Please select one of the choices</legend>
      
  <label for="test-one">
    <input id="test-one" value="test-one" type="radio" name="test-multi">Test One
  </label>
  
  <label for="test-two">
    <input id="test-two" value="test-two" type="radio" name="test-multi"> Test Two
  </label>
    </fieldset><br>
  </div>
  
  <div id="margin">
  <fieldset id="width">
    <legend>Please choose at least one of the following:</legend>
    
    <label for="checkbox-one">
      <input type="checkbox" value="checkbox-one" name="checkbox-multi"> Choice One
    </label>
    
    <label for="checkbox-two">
      <input type="checkbox" value="checkbox-two" name="checkbox-multi"> Choice Two
    </label>
  </fieldset><br>
  </div>
  
  <fieldset id="width">
    <legend> Any comments or suggestions?</legend>
    <textarea name="comments-suggestions" rows="4" cols="50" placeholder="Feel free to add your comments here"></textarea>
  </fieldset><br>
  
  <input type="submit" value="Send" id="submit">
</form>
  
  </body>
  
</div>
</div>
</div>
</div>


     
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Bungee);
@import url(https://fonts.googleapis.com/css?family=Amatic+SC);
#font {
  font-family: Bungee;
}
header {
  background-color: blueviolet;
  z-index: 1;
}
body {
  background: purple;
  background-color: rgba(47, 8, 72, .8);
}
.center {
  text-align: center;
}
#email {
  padding: 
}
#dropdown {
   
}
#centered-text {
  text-align: center;
}

#width {
  display: inline-block;
  padding: 5px 0px 20px 0px;
}

#margin {
  margin: 20px 0px 20px 0px;
}

              
            
!

JS

              
                url(https://wallpaperaccess.com/thumb/3193263.jpg);
              
            
!
999px

Console