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

              
                <body>

    <header id="header">

        <h1> Abduction Survey </h1>
        <h3> Your answers help us improve our databases </h3>

    </header>

    <main> 

        <!-- GENERAL CONTAINER -->
        <div id="container">

            <!-- SURVEY -->
            <div id="survey-container">

                <form id="survey">

                    <!-- NAME, EMAIL, AGE -->

                    <div id="survey-contact">

                        <label for="name"> • Name </label> <br>
                        <input type="text" id="name" name="contact" placeholder="Enter your name..." required > 
                        <br> <br>

                        <label for="email"> • Email </label> <br>
                        <input type="email" id="email" name="contact" placeholder="Enter your email..." required >
                        <br> <br>

                        <label for="age"> • Age (optional) </label> <br>
                        <input type="number" id="age" name="contact" placeholder="Enter your age..." min="18" max="99"> <br>
                        <br> 
                    
                    </div>

                    <!-- NUMBER OF ABDUCTIONS -->
                    
                    <div id="number-of-abductions">

                        <p> • How many times have you been Abducted? </p>
                        
                        <input type="radio" id="once" name="number" value="once">
                        <label for="once"> Once </label> <br>

                        <input type="radio" id="two-five" name="number" value="two-five">
                        <label for="two-five"> Between two (2) and five (5) </label> <br>

                        <input type="radio" id="more-five" name="number" value="more-five">
                        <label for="more-five"> More than five (5) </label>                  
                        <br> <br>
                        
                    </div>

                    <!-- PLEASE NOTE -->
                    
                    <div id="please-note">
                        <p> 
                            <b> <u>PLEASE NOTE</u>: </b> <br>
                            If you have been Abducted more than once, <br>
                            answer the following questions based only <br>
                            on your first experience. 
                        </p>
                        <br>
                        
                    </div>

                    <!-- TYPE OF AREA -->

                    <div id="type-of-area">

                        <label for="area"> • Please select the type of area where you were Abducted </label> <br>
                        <select name="area" id="area">

                            <option value="please-select" id="select"> Please select... </option>
                            <option value="rural-area"> Rural </option>
                            <option value="rural-area"> City </option>
                            <option value="rural-area"> City (secluded area) </option>
                            <option value="rural-area"> Desert </option>
                            <option value="rural-area"> Open Waters (Ocean, sea, etc) </option>

                        </select> 
                        <br> <br>

                    </div>

                    <!-- EXPERIENCE (RADIO BUTTONS) -->

                    <div id="experience">

                        <p> • How was your Abduction experience? </p>
                        
                        <input type="radio" id="dont-remember" name="experience" value="dont-remember">
                        <label for="dont-remember"> Don't remember </label> <br>

                        <input type="radio" id="very-bad" name="experience" value="very-bad">
                        <label for="very-bad"> Very bad </label> <br>

                        <input type="radio" id="bad" name="experience" value="bad">
                        <label for="bad"> Bad </label> <br>

                        <input type="radio" id="all-right" name="experience" value="all-right">
                        <label for="all-right"> All right </label> <br>

                        <input type="radio" id="good" name="experience" value="good">
                        <label for="good"> Good </label> <br>

                        <input type="radio" id="very-good" name="experience" value="very-good">
                        <label for="very-good"> Very good </label> <br>

                        <input type="radio" id="still-here" name="experience" value="still-here">
                        <label for="still-here"> So good I'm still here </label> 
                        <br> <br> 
                    </div>                   

                    <!-- TYPE OF STUDIES (CHECKBOX) -->

                    <div id="studies">
                        
                        <p> • What kind of studie(s) took place? </p>

                        <input type="checkbox" id="dont-know" name="studies" value="dont-know">
                        <label for="dont-know"> Don't remember </label> <br>
                        
                        <input type="checkbox" id="physical" name="studies" value="physical">
                        <label for="studies1"> Physical </label> <br>

                        <input type="checkbox" id="mental" name="studies" value="mental">
                        <label for="studies1"> Mental </label> <br>

                        <input type="checkbox" id="others" name="studies" value="others">
                        <label for="studies1"> Other(s) </label>
                        <br> <br>
                        
                    
                    </div>

                    <!-- HEAD MEASURE-->

                    <div id="measure">

                        <p> • Did your head was measured? </p>

                        <input type="radio" id="measure-yes" name="measure" value="yes">
                        <label for="measure-yes"> Yes </label>

                        <input type="radio" id="measure-no" name="measure" value="no">
                        <label for="measure-yes"> No </label>
                        <br> <br>

                    </div>

                    <!-- COMMENTS -->

                    <div id="comments-container">

                        <label for="comments"> Do you have any additional comments? <br>
                        </label>
                        <textarea id="comments" name="comments" rows="6" cols="40" >
                        </textarea>
                        <br>

                    </div>                    

                    <!-- SUBMIT BUTTON -->
                    
                    <div id="submit-container">

                        <label for="submit">
                            <input type="submit" id="submit" name="submit" value="Submit">
                        </label>

                    </div>
                    <br>
                    
                </form> 

            </div>

            <!-- THANKS -->
            <div id="thanks">

                We would like to thank you for your time. <br>

                And remember: <br>
                <u>The Truth Is Out There</u>. <br>

            </div>

        </div>

    </main>
              
            
!

CSS

              
                * { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url("https://i.ibb.co/8cLsFMZ/alien-survey.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size:cover;
}

#header {
    text-align: center;
    font-family: 'Rubik', sans-serif;
    padding: 5px;
    line-height: 40px;
    margin: 20px 0px -20px 0px;
    
}

#header h3 {
  font-weight: normal;
}

#survey {
    line-height: 1.5;
}

#container {
    font-family: monospace;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    padding: 30px;
    background-color: rgba(188, 188, 188, 0.4);
    margin: 30px auto 0px auto;
    border-radius: 30px;
    width: 60%;   
}

#please-note {
    border-style: dotted;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

footer {
    margin-top: 40px;
    font-size: 13px;
}

#submit, #name, #age, #email, #area {
    width: 60%;
    padding: 5px;
    background-color: lightblue;
    font-family: monospace;
    font-weight: bold;
    border-radius: 10px;
}

#submit {
    margin-top: 10px;
}

#submit:hover {
    background-color: lightskyblue;
}

textarea {
    resize: none;
    
}

#comments-container {
    margin: auto;
}


              
            
!

JS

              
                
              
            
!
999px

Console