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 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>
<head>
<div class="generalinfo">
  <h1 id="title">What To Do On Vacation?</h1>
  <p id="description">When you go on vacation what do you like to do?</p>
  <form id="survey-form" class="">
  <div class="generalinput">
    <label id="name-label" for="name">Name:</label>
    <input type="text" id="name" required placeholder="Fred Smith"><br><br>
    <label id="email-label" for="email">Email:</label>
    <input type="email" id="email" required placeholder="fsmith@yahoo.com"><br><br>
    <label id="number-label" for="number">Number:</label>
    <input type="number" id="number" min="1" max="5" placeholder="12345" required>
  </div><!--generalinfo-->
    <br><br>
    <hr>
    <!--dropdown selection in form-->
  <div>
    <h3><label id="dropdown-label" for="vacationitems">What You Would Like To Do?</label></h3>
    <select id="dropdown" name="vacationitems">
      <option value="swimming">Swimming/Diving</option>
      <option value="whalewatching">Whale Watching</option>
      <option value="hiking">Hiking</option>
      <option value="snowsking">Snow Sking</option>
      <option value="site seeing">Site Seeing</option>
      <option value="fishing">Fishing</option>
      <option value="reading">Reading a Good Book</option>
    </select>
  </div><!--dropdown-->
    <br><br>
    <hr>
    <!--radio selection in form-->
    <h3>Would you Recommend Taking a Vacation Every Year?</h3>
    <div class="radio">
        <input type="radio" id="yes" name="recommend" value="Yes">
        <label for="yes">Yes</label><br>
        <input type="radio" id="no" name="recommend" value="NOo">
        <label for="no">No</label><br>
        <input type="radio" id="maybe" name="recommend" value="Maybe">
        <label for="maybe">Maybe</label><br><br>
    </div>
    <hr>
    <!--checkbox selection in form-->
    <h3>Pick where you would like to go</h3>
    <input type="checkbox" id="thebeach" name="thebeach" value="Beach">
    <label for="thebeach">The Beach</label><br>
    <input type="checkbox" id="acruise" name="acruise" value="A Cruise">
    <label for="acruise">A Cruise</label><br>
    <input type="checkbox" id="abigcity" name="abigcity" value="A Big City">
    <label for="thebeach">A Big City</label><br>
    <input type="checkbox" id="europe" name="Europe" value="Europe">
    <label for="thebeach">Europe</label><br>
    <input type="checkbox" id="australia" name="Australia" value="Australia">
    <label for="australia">Australia</label><br>
    <input type="checkbox" id="themountains" name="The Mountains" value="The Mountains">
    <label for="themountains">The Mountains</label><br><br>  
    <h3><label for="addcomment">Any additional comments?</label></h3>
    <textarea id="addcomment" name="addcomment" rows="5" cols="50" placeholder="Enter your comments here..."></textarea>
    <br><br>
    <!--submit button in form-->
    <input id="submit" type="submit" value="Submit">
  </form>
    
</div>
  <script src='https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js'></script>
  


              
            
!

CSS

              
                /* reset css */
body, html, div, blockquote, img, label, p, h1, h2, h3, h4, h5, h6, pre, ul, ol,
li, dl, dt, dd, form, a, fieldset, input, th, td
{
margin: 0; padding: 0; border: 0; outline: none;
}
 
body
{
line-height: 1;
font-size: 88% /* Decide for yourself if you want to include this. */;
}
 
h1, h2, h3, h4, h5, h6
{
font-size: 100%;
padding: .6em 0;
margin: 0 15px;
}
 
ul, ol
{
list-style: none;
}
 
a
{
color: black;
text-decoration: none;
}
 
a:hover
{
text-decoration: underline;
}
 
.floatLeft
{
float: left;
padding: .5em .5em .5em 0;
}
 
.floatRight
{
float: right;
padding: .5em 0 .5em .5em;
}






/*-- my css overrides */

body {
    background-color: lightskyblue;
  }

h1, h3  {
  text-align: center;
}

#description {
  padding-top: 5px;
  padding-bottom: 10px;
  text-align: center;
  font-weight: bold;
}

.generalinfo {
  text-align: center;
}


input[type=submit] {
  background-color: lightblue;
}


              
            
!

JS

              
                
              
            
!
999px

Console