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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                
    <main>
      
      <h1 id="title">  Survey Form</h1>
      <p id="description"> We are thanking you for giving us your feedback</p>
      <hr>
      <form id="survey-form">
      <div class="form-group center">
      
        <label for="name" id="name-label"> Name</label>
        <input type="text" id="name" pattern="[a-z]" placeholder="Enter your name " required>
        </br>
      <label for="email" id="email-label" > Email </label>
        <input type="email" id="email" placeholder="Enter your Email" required>
        <br>
      <label for="number" id="number-label"> age</label>
        <input type="number" id="number" min="10" max="100" placeholder="Enter your Age">
        <br>
      </div>
      
      <div class="form-group center">
<p class="center" >How will you rate this  form?</p>

<input name="visitor-rate" value="poor" type="radio" class="input-radio" id="poor"><label for="poor">Poor</label>

<input name="visitor-rate" id="good" value="good" type="radio" class="input-radio"> <label for="good">Good</label>
<input name="visitor-rate" value="very-good" type="radio" class="input-radio" id="very-good"><label for="very-good">Very Good</label>
</div>
     
      
      
      <div class="form-group center">
      
      <select type="dropdown" id="dropdown" name="role" class="form-control" required>
<option disabled="" selected="" value="" >Select your profession</option>
<option value="student">Student</option>
<option value="job">profesionist</option>
<option value="job">Business man</option>
<option value="other">Other</option>
</select>
      <br>
      </div>
      
      <div class="form-group">
      <p id="q">What would you like to see improved in this from?</p>
  <label><input name="color" value="color" type="checkbox" class="input-checkbox">Colors</label>
      <br>
      <label><input name="layout" value="layout" type="checkbox" class="input-checkbox">layout</label>
      <br>
      <label><input name="html" value="layout" type="checkbox" class="input-checkbox">HTML</label>
      <br>
      <label><input name="css" value="css" type="checkbox" class="input-checkbox">CSS</label>
      <br>
      <label><input name="ui" value="ui" type="checkbox" class="input-checkbox">User Interface</label>
      <br>
      <label><input name="ux" value="ux" type="checkbox" class="input-checkbox">User Experience Design</label>
      <br>
      <label><input name="Design" value="design" type="checkbox" class="input-checkbox">Design</label>
      <br>
      <label><input name="acc" value="acc" type="checkbox" class="input-checkbox">Accessibility</label>
      <br>
      </div>
      
      <div class="form-group center">
<p>Please tell me more about what i can improve ?</p>
<textarea id="comments" class="input-textarea" name="comment" placeholder="Enter your comments or suggetions here..."></textarea>
</div>
      
 
<input type="submit" id="submit" class="submit-button center">

      
      </form>
      </main>
              
            
!

CSS

              
                body{
  background:background: rgb(138,135,176);
background: radial-gradient(circle, rgba(138,135,176,1) 0%, rgba(163,155,223,1) 20%, rgba(170,229,241,1) 83%);
}

main {
    border-radius: 1.5em;
    color: black;
    background-color: white;
    width: 60%;
    position: relative;
    margin: auto;
    border: beige;
  
}
h1  {
  padding-top:1em;
  text-align:center;
}
#description{
  text-align:center;
  padding-bottom:1em;
}
.form-group{
  background:rgb(153, 204, 255, 0.1);
  padding:0.5em;
  
}
#name, #email, #number, #dropdown, #comments, #submit, #q {
    position: relative;
    margin:0.5em auto;
    width: 90%;
    height: 2em;
    border-radius: 0.5em;
    text-align: center;
}
.center {
  position:relative;
    text-align:center;
margin:auto;
}
#comments{
  height: 7em;
}

form{
  
}


              
            
!

JS

              
                
              
            
!
999px

Console