Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

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

  <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="" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

  <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">
        <label for="name" id="name-label">Your Name: <input type="text" id="name" class="form-control" placeholder="Joe Bloggs"></label>
        <label for="email" id="email-label">Email: <input type="email" id="email" class="form-control" placeholder=""></label>
        <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>
        <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>
        <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 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 for="comments">Anything else you would like to add? <br>
                    <textarea name="comments" cols="50" rows="10"></textarea></label>
      <div><button type="submit" id="submit">Submit</button></div>

    padding: 10px;
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.