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

Packages

Add 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 or require. We'll also process your JavaScript with Babel.

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

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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">
<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">
    <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Heebo:100|Open+Sans+Condensed:300" >
    <link rel="stylesheet" type="text/css" href="css/stylesheet.css">
    <title>Survey Form - FreeCode Camp | Responsive Web Design</title>
    <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</head>

<body>
<div class="container">
    <h1 id="title">Interest Form</h1>

    <p id="description">Sign up to receive more information about a specific program.</p>

    <form id="survey-form">
    
    <div class="row">
       <label for="name" id="name-label">Name</label>
        <input id="name" type="text" required placeholder="First & Last Name">
    </div>
            
    <div class="row">
        <label for="email" id="email-label">Email</label>
        <input id="email" type="email" required placeholder="Email (joe@domain.com)">
        <!--INCLUDE ERROR IF INPUT IS INCORRECT -->
    </div>

    <div class="row">
        <label for="number" id="number-label">Phone Number</label>
        <input id="number" type="number" min="10" max="10" placeholder="1234567890">
        <!-- INCLUDE ERROR IF INPUT IS INCORRECT 
            INCLUDE ERROR IF NUMBER IS OUTSIDE OF MIN/MAX ATTRIBUTES-->
    </div>

    <div class="row">
        <label for="category">Choose category</label>
            <select id = "dropdown">
                <option value = "current hs">current high school student</option>
                <option value = "school college counselor">school college counselor</option>
                <option value = "parent of hs">parent/guardian of a high school student</option>
            </select>
    </div>

    <div class="row">
        <label for="program-type">Choose Program of Interest</label><br>
        <input type="checkbox" name="program-type" value="humanities"> Humanities/Social Sciences<br>
        <input type="checkbox" name="program-type" value="stem"> STEM<br>
        <input type="checkbox" name="program-type" value="arts"> Studio and Performance Arts
    </div>
    
    <div class="row">
       <label for="comms">Receive emails?</label><br>
        <input type="radio" name="comms" value="yes"> Yes, opt me in for emails<br>
        <input type="radio" name="comms" value="no"> No, not at this time

    </div>
    
    <div class="row">
        <div>
            <label for="comments">Additional comments:</label>
        </div>
        <div>
            <textarea id="optional-comments" name="comments" rows="10"></textarea>
        </div> 
    </div>

    <div class="row">
        <button id="submit" type="submit">Submit Response</button>
    </div>

    </form>

</div>
</body>

</html>
            
          
!
            
              *, *:before, *:after {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
}

/* add breathing room to the form */
.container {
    float: left;
    margin-left: 10%;
}

/* style additional comments box */
textarea {
    width: 600px;
    padding: 10px 5px;
    box-sizing: border-box;
    border-radius: 3px;
    resize: vertical;
}

label, input, textarea {
    display: inline-block;
    padding: 12px 12px 12px 0;
}

label {
    font-weight: bold;
}

/* add padding to text input areas*/
input,
select,
textarea {
    border-radius: 3px;
    padding: 3px;
}

/*submit button color */
button {
    background-color: green;
    padding: 10px;
    margin-top: 5%;
    color: white;
    font-weight: bold;
    border: 1px solid black;
}

button:hover {
    background-color: greenyellow;
    padding: 10px;
    margin-top: 5%;
    color: black;
    font-weight: bold;
    border: 1px solid black;
}
            
          
!
            
              /* Objective: Build a CodePen.io app that is functionally similar to this: https://codepen.io/freeCodeCamp/full/VPaoNP.
Fulfill the below user stories and get all of the tests to pass. Give it your own personal style.
You can use HTML, JavaScript, and CSS to complete this project. Plain CSS is recommended because that is what the lessons have covered so far and you should get some practice with plain CSS. You can use Bootstrap or SASS if you choose. Additional technologies (just for example jQuery, React, Angular, or Vue) are not recommended for this project, and using them is at your own risk. Other projects will give you a chance to work with different technology stacks like React. We will accept and try to fix all issue reports that use the suggested technology stack for this project. Happy coding!
User Story #1: I can see a title with id="title" in H1 sized text.
User Story #2: I can see a short explanation with id="description" in P sized text.
User Story #3: I can see a form with id="survey-form".
User Story #4: Inside the form element, I am required to enter my name in a field with id="name".
User Story #5: Inside the form element, I am required to enter an email in a field with id="email".
User Story #6: If I enter an email that is not formatted correctly, I will see an HTML5 validation error.
User Story #7: Inside the form, I can enter a number in a field with id="number".
User Story #8: If I enter non-numbers in the number input, I will see an HTML5 validation error.
User Story #9: If I enter numbers outside the range of the number input, which are defined by the min and max attributes, I will see an HTML5 validation error.
User Story #10: For the name, email, and number input fields inside the form I can see corresponding labels that describe the purpose of each field with the following ids: id="name-label", id="email-label", and id="number-label".
User Story #11: For the name, email, and number input fields, I can see placeholder text that gives me a description or instructions for each field.
User Story #12: Inside the form element, I can select an option from a dropdown that has a corresponding id="dropdown".
User Story #13: Inside the form element, I can select a field from one or more groups of radio buttons. Each group should be grouped using the name attribute.
User Story #14: Inside the form element, I can select several fields from a series of checkboxes, each of which must have a value attribute.
User Story #15: Inside the form element, I am presented with a textarea at the end for additional comments.
User Story #16: Inside the form element, I am presented with a button with id="submit" to submit all my inputs.

*/
            
          
!
999px

Console