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

              
                <html>
  <head>
    <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="styles.css">
	<link href="https://fonts.googleapis.com/css?family=Jua" rel="stylesheet">
  </head>
  <body>
    <div i>
      <h1 id="title">Survey Form</h1>
      <div>
        <p id="description">Let us know what you like </p>
        </div>
    </div>
 <!-- Form Working -->
    <fieldset>
    <form id="survey-form" method="post" action="#">
    
        
 <label id=name-label>Name</label> <br> 
<input id="name" type="text" name="fname" placeholder="Your Name" required ><br><br>
 <label id=email-label> Email</label> <br> 
        <input id="email" type="email" name="email" placeholder="Your Email" required><br><br>
     <label id="number-label"> Number</label> <br> 
        <input id="number" type="number" name="number" min="12" max="13" placeholder="Your Number" required ><br><br>
      
   <div id="age">
        <h3> Age </h3>
        <div id="ageone">
        <input type="radio" name="age" value="12-17">12-17<br>
        <input type="radio" name="age" value="18-35">18-35<br>
        <input type="radio" name="age" value="36-55">36-55<br>
        <input type="radio" name="age" value="56-72">56-72<br>
        <input type="radio" name="age" value="73">73+<br><br><br>
        </div>    
    <h3> Family Members </h3>
          <input id="family-member" type="number" name="family-member" max="12"  required ><br><br>
     
      <div id="dropdown">
       <h3>Country of Origin</h3><br>
      <select form="form_id" name="countrylist" form="survey-form">
        <option value="pakistan">Pakistan</option><br>
        <option value="spain">Spain</option><br>
        <option value="russia">Russia</option><br>
        <option value="england">England</option><br>
        <option value="germany">Germany</option><br>
        <option value="mexico"> Mexico</option><br>
        <option value="china"> China</option><br>
      </select><br>
      </div><br>
     
      <div id="checkbox">
        <h3> Select Choice </h3>
        <div id="ageone">
        <input type="checkbox" name="age" value="coca-cola">coca-cola<br>
        <input type="checkbox" name="age" value="sting">sting<br>
        <input type="checkbox" name="age" value="pepsi">pepsi<br>
        <input type="checkbox" name="age" value="marinda">marinda<br>
        <input type="checkbox" name="age" value="sprite">sprite<br><br><br>
        </div>
     
        <div id="suggestions">
  <p>Please leave any suggestions, compliments or concerns below.  Thank you.</p>
</div><br><br><br>
        <textarea row="50" cols="50" >
        </textarea><br><br>
      
        
        
      <button id="submit" type=submit> Submit </button>        
     
  </form>
    
    </fieldset>
    
    
    </body>
</html>

              
            
!

CSS

              
                body
{
  background-color:#E9967A;
	font-family: 'Jua', sans-serif;
}
fieldset
{
   background-color:#7ac;
}
h1
{
    text-align:center;
}
p
{
  text-align:center; 

}

input[type=text],[type=contact],[type=number],[type=email],select {
    width: 50%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#suggestions
{
  float:left;
}

button
{
background-color:#0000FF;
		color: white;
		border: none;
		cursor: pointer;
		font-size: 16px;
		padding: 10px 22px;
		margin-top: 5px;
		border-radius: 5px;
}
button:hover
{
  background-color:#00cc;
  color:black;
}
#textarea {
  height: 100px;
  width: 500px;
  margin: 0px;
  
}

              
            
!

JS

              
                
              
            
!
999px

Console