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

              
                <!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Survey Form</title>
  <link rel="stylesheet" href="style.css">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>

<body>
  <div id="main-body" class="text-center">
    <h1 id="title">Help us build a better DinoStore</h1>
    <p id="description">Through your answers on this form, we will be able to work to build a better DinoStore for all!</p>
    <form action="" id="survey-form">
      <div>
        <label for="name" id="name-label">Your Name: <input type="text" id="name" class="form-control" placeholder="Joe Bloggs"></label>
      </div>
      <div>
        <label for="email" id="email-label">Email: <input type="email" id="email" class="form-control" placeholder="joe@bloggs.com"></label>
      </div>
      <div>
        <label for="number" id="number-label" placeholder="10">How much do you like Dinosaurs? (1 is not at all, 10 is apocalyptically love them): <input type="number" min="1" max="10" id="number" class="form-control"></label>
      </div>
      <div>
        <label for="dropdown" id="dropdown-label">Do you plan on keeping a dinosaur as a pet? 
                    <input list="pet-dinosaur" id="dropdown">
                        <datalist id="pet-dinosaur">
                            <option value="No, never"></option>
                            <option value="Yes, within the next 12 months"></option>
                            <option value="Yes, but more than 1 year"></option>
                            <option value="Already own a pet dinosaur"></option>
                        </datalist>
                    </input>
                </label>
      </div>
      <div>
        <label for="dinosaur-care">Do you feel comfortable looking after a pet dinosaur, or would you like us to send you additional information?<br>
                    <input type="radio" name="dinosaur-care" value="Comfortable, no further information">Comfortable, no further information<br>
                    <input type="radio" name="dinosaur-care" value="Comfortable, but please send more information">Comfortable, but please send more information<br>
                    <input type="radio" name="dinosaur-care" value="I wouldn't know what to do, please send more information">I wouldn't know what to do, please send more information<br>
                    <input type="radio" name="dinosaur-care" value="I don't know, and I don't care">I don't know, and I don't care<br>
                </label>
      </div>
      <div>
        <label for="mail-options">Would you like to recieve junk mail and SPAM from us and selected third parties? (please uncheck to opt-out)<br>
                    <input type="checkbox" name="mail-options" value="Yes, Dinostore" checked>Yes, Dinostore<br>
                    <input type="checkbox" name="mail-options" value="Yes, third parties" checked>Yes, third parties<br>
                    <input type="checkbox" name="mail-options" value="Sell my details to whoever, who needs data privacy?" checked>Sell my details to whoever, who needs data privacy?<br>
                </label>
      </div>
      <div>
        <label for="comments">Anything else you would like to add? <br>
                    <textarea name="comments" cols="50" rows="10"></textarea></label>
      </div>
      <div><button type="submit" id="submit">Submit</button></div>
    </form>
  </div>
</body>

</html>
              
            
!

CSS

              
                div{
    padding: 10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console