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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<html>
    <body>
    <main>
        <header>
            <h1 id="title">What type of runner are you?</h1>
                <p id="description">Mountain goat or city racer?</p>
        </header>
        <form id="survey-form" action="#" method="POST">
           <div class="input-form">   
                <label id="name-label" for="name">Your name</label>
                <input type="text" id="name" name="username" placeholder="Kilian Jornet" class="inputbox" required>
            </div>  
            <div class="input-form">   
                <label id="email-label" for="email">Your email</label>
                <input type="email" id="email" name="email_adress" placeholder="k.jornet@email.com" class="inputbox" required>
            </div>
            <div class="input-form">   
                <label id="number-label" for="number">Your age</label>
                <input type="number" id="number" name="age" min="15" max="99" placeholder="Age" class="inputbox">
            </div>
            <div class="input-form">   
                <label id="dropdown-label" for="dropdown">How long have you been running?</label>
                <select id="dropdown" class="inputbox">
                    <option disabled selected value>Select below</option>
                    <option value="oneyear">Less than one year</option>
                    <option value="fouryears">Between two and four years</option>
                    <option value="nineyears">Between four and nine years</option>
                    <option value="tenyears">More than 10 years</option>
                </select>
            </div>
            <div>   
                <fieldset>
                    <legend>How often do your run?</legend>
                    <p><label for="three"><input type="radio" id="three" name="frequency" value="three" class="radiobtn">Less than three times a week</label></p>
                    <p><label for="five"><input type="radio" id="five" name="frequency" value="five" class="radiobtn">Between three and five times a week</label></p>
                    <p><label for="more"><input type="radio" id="more" name="frequency" value="more"  class="radiobtn">More than five times a week</label></p>
                </fieldset>
            </div>
            <div>   
                <fieldset>
                    <legend>Where do you run? (select all that apply)</legend>
                    <p><label for="city"><input type="checkbox" id="city" name="place" value="city" class="checkboxes">In the city</label></p>
                    <p><label for="mountains"><input type="checkbox" id="mountains" name="place" value="mountains" class="checkboxes">In the mountains</label></p>
                    <p><label for="woods"><input type="checkbox" id="woods" name="place" value="woods" class="checkboxes">In the woods</label></p>
                    <p><label for="countryside"><input type="checkbox" id="countryside" name="place" value="countryside" class="checkboxes">In the countryside</label></p>
                </fieldset>
            </div>
            <div class="input-form">
                <label id="textarea-label" for="textarea">More about your practice? (optional)</label>
                <textarea type="textarea" id="textarea" name="textarea" placeholder="Additional comment"></textarea>
            </div>
   
            <div class="inputbtn">
                <button type="submit" id="submit">Send form</button>
          </div>
        </form>
    </main>

    <footer>
        <p>Made with <a href="https://thetrailwalker.fr" target="_blank"><i class="fas fa-basketball-ball"></i></a> by Lauric</p>
    </footer>
    </body>
</html>
              
            
!

CSS

              
                html{
    background: url(https://images.unsplash.com/photo-1530143311094-34d807799e8f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80) no-repeat center center fixed;
    background-size: cover;
    height:100%;
}

body{
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

header{
    font-family: 'Montserrat Alternates', sans-serif;
    color:black;
}   

form{
    background-color: rgba(38, 38, 73, 0.8);
    box-shadow:2px 5px 10px rgba(0,0,0,0.4);
    margin:0 auto;
    padding:30px 20px;
    text-align:left;
    width:50%;
    border-radius:5px;
    height:auto;
    color:white;
}

.inputbox{
    display:block;
    width:100%;
    height:30px;
    margin-top:5px;
    border-radius:5px;
}

.input-form{
    margin-top:15px;
    transition:0.5s ease;
}

fieldset{
    margin-top:20px;
}

#textarea{
    display:flex;
    min-height:100px;
    width:100%;
    align-items:flex-start;
    margin-top:10px;
    border-radius:5px;
}

button{
    width:100%;
    height:30px;
    cursor:pointer;
    text-align:center;
    border-radius:5px;
    margin-top:20px;
    background-color:rgba(0, 174, 255, 0.25);
    color:white;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
}

.inputbox:focus{
    background-color: rgba(0, 123, 255, 0.25);
    color:white;
    border:2px solid rgba(0, 174, 255, 0.25)
   }

   #textarea:focus{
    background-color: rgba(0, 123, 255, 0.25);
    color:white;
    border:2px solid rgba(0, 174, 255, 0.25)
   }

option{
    background-color: white;
    color:black;
}


              
            
!

JS

              
                
              
            
!
999px

Console