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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


                <!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet" type="text/css" href="styles.css">
    <script src=""></script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="" rel="stylesheet">
    <link href="" rel="stylesheet">
 <div class="container">
    <div class="header">
        <h1 id="title"> Wellness Survey </h1>   
        <p id="description"> everyone asks where are you, <br> but nobody asks how are you. </p>

    <form id="survey-form">

        <label id="name-label" for="name"> Name: </label> <input type="textbox" id="name" placeholder="Enter your fabulous name..."required>  
        <label id="email-label" for="email"> Email: </label> <input type="email" id="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$" placeholder="Enter your fabulous email..." required>
        <label id="number-label" for="number"> Happiness scale: </label> <input type="number" id="number" required min="1" max="10" placeholder="1-10"> 
        <div id="Selectable">
            <label for="input" class="questions"> What is your occupation? </label>
            <input type="text" list="dropdown" name="dropdown" placeholder="Select..." id="input">
            <datalist id="dropdown"  required> 
                <option  > Student </option>
                <option > Working Adult </option>
                <option  > Retiree </option>

        <div id="stressLevel">
            <p class="questions"> How stressed are you on a daily basis? </p>
            <input type="radio" name="stress-level"  value="1" checked> Very
            <input type="radio" name="stress-level"  value="2"> Moderately
            <input type="radio" name="stress-level"  value="3"> Not very
            <div id="mental">
            <p class="questions"> Any mental illnesses? </p>
            <input type="checkbox" name="illness" value="1"> Depression 
            <input type="checkbox" name="illness" value="2"> Anxiety
            <input type="checkbox" name="illness" value="3"> Bipolarity
            <input type="checkbox" name="illness" value="4"> None of the above
        <div id="comments">
            <p class="questions"> What's troubling you today? </p>
            <textarea placeholder="Enter your troubles..."></textarea>
        <input type="submit" id="submit">



                .container {
    border: 2px solid sienna;
    margin: 0 25%;
    padding-bottom: 10px;
.header {
    text-align: center;
h1 {
    font-family: 'Acme', sans-serif;
    font-size: 50px;  

#description {
    font-family: 'Dosis', sans-serif;

form {
    text-align: center;

.questions {
   font-weight: bold; }