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

              
                <!DOCTYPE html>
<html lang="en">
<head>
    <link rel="stylesheet" type="text/css" href="styles.css">
    <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></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">
    <title>Document</title>
    <link href="https://fonts.googleapis.com/css?family=Acme&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Dosis&display=swap" rel="stylesheet">
</head>
<body>
 <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>
    </div>  

    <form id="survey-form">

        <label id="name-label" for="name"> Name: </label> <input type="textbox" id="name" placeholder="Enter your fabulous name..."required>  
        <br>
        <br>
        <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>
        <br>
        <br>
        <label id="number-label" for="number"> Happiness scale: </label> <input type="number" id="number" required min="1" max="10" placeholder="1-10"> 
        <br>
        <br>
        <div id="Selectable">
            
            <label for="input" class="questions"> What is your occupation? </label>
            <br>
            <br>
            <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>
            </datalist>
            </div>

        
        <div id="stressLevel">
            <p class="questions"> How stressed are you on a daily basis? </p>
            <ol>
            <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
            </ol>
            </div>
            <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>
        
        <div id="comments">
            <p class="questions"> What's troubling you today? </p>
            <textarea placeholder="Enter your troubles..."></textarea>
        </div>
        <input type="submit" id="submit">
    

</form>
</div>
</body>
</html>
              
            
!

CSS

              
                .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; }
              
            
!

JS

              
                
              
            
!
999px

Console