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

              
                
<header class="header">
    <h1 id="title" class="text-center"> <u>Guitar Player Survey</u></h1>
    <p id="description"> Looking for what everybody is playing and their level</p>
  </header>

<form id="survey-form">
<div class="form-group1">
<label id="name-label" for="name">Name
      <input
        type="text"
        name="name"
        id="name"
        class="form-control"
        placeholder="Enter Your Name"
        required/>
  </label>
    </div>
  <div class="form-group1">
    <label id="email-label" for="email">Email
    <input 
           type="email"
           name="email"
           id="email"
           class="form-control"
           placeholder="Email" required/>    </label>
</div> 
  
  <div class="form-group2">
    <label id="number-label" for="number">
      Number of Guitars Owned
    <input 
           type="number"
           name="Guitars-owned"
           id="number"
           min="0"
           max="100"
           class="form-control"
           placeholder="#" required/>
    </label>
</div>  
  <div class="form-group2">
    <label id="favorite" for="favorite-guitar">What is your favorite guitar?
    <input
    type="text"
    name="name"       
    id="favorite-guitar"
    class="form-control"
    placeholder="Brand, Model & Color" required/>
        </label>

      </div>
  <div class="form-group3">
    What Experience Level are you?
    <select id="dropdown" name="experience" class="form-control" required>
      <option disabled selected value>Select Current Experience</option>
      <option value="inexperienced">Ready to Start Learning</option>
      <option value="beginner">Beginner</option>
      <option value="intermediate">Intermediate
      </option>
      <option value="expert">Expert</option>
    </select>
      </div>
  <hr class="solid">
  
  <div class="form-group">
    <h3>Are you in a band?</h3>
    <label>
      <input
      name="band"
      value="yes"
      type="radio"
      class="input-radio"/>
      Yes</label>
 
     <label>
   <input
      name="band"
      value="no"
      type="radio"
      class="input-radio"/>
      No</label>
  </div>
                 <hr class="solid">
<div class="form-group">
    <h3>What genre(s) do you like to play? (Check all that apply.)</h3>
     <label>
     <input
     name="genre"
     value="Rock"
     type="checkbox"
     class="input-checkbox"/>
        Rock
         </label>
    </div>
    <div class="form-group">
<label>
       <input
     name="genre"
     value="Alternative"
     type="checkbox"
     class="input-checkbox"/>
    Alternative 
    </label>
      </div>  
      <div class="form-group">
<label>
        <input
     name="genre"
     value="Metal"
     type="checkbox"
     class="input-checkbox"/>
        Metal
    </label>
    </div>
          <div class="form-group">
<label>
        <input
     name="genre"
     value="Punk"
     type="checkbox"
     class="input-checkbox"/>
        Punk
    </label>
    </div>
    <div class="form-group">
            <label>
        <input
     name="genre"
     value="Blues"
     type="checkbox"
     class="input-checkbox"/>
        Blues
    </label>
  </div>
  
     <div class="form-group">
            <label>
        <input
     name="genre"
     value="R & B"
     type="checkbox"
     class="input-checkbox"/>
        R & B
    </label>
  </div>
   <div class="form-group">
            <label>
        <input
     name="genre"
     value="Pop"
     type="checkbox"
     class="input-checkbox"/>
        Pop
    </label>
  </div>
  
   <div class="form-group">
            <label>
        <input
     name="genre"
     value="Country"
     type="checkbox"
     class="input-checkbox"/>
        Country
    </label>
  </div>
   <div class="form-group">
            <label>
        <input
     name="genre"
     value="Bluegrass"
     type="checkbox"
     class="input-checkbox"/>
        Bluegrass
    </label>
  </div>
  
   <div class="form-group">
            <label>
        <input
     name="genre"
     value="Latin"
     type="checkbox"
     class="input-checkbox"/>
        Latin
    </label>
  </div>
<hr class="solid">

  <div class="guitar-contribute">
  <label for="guitar-contribute">
  If you would like to contribute anything else guitar related please let us know in the form below.
  
        <textarea id="guitar-contribute" name="guitar-contribute"          rows="5" cols="63">
    </textarea>
   
</label>
  </div>
     <div class="form-group4">
       <label>
      <button type="submit" id="submit" class="submit-button">
        Submit
      </button>
       </label>
    </div>
    
   </form>
  
              
            
!

CSS

              
                :root {
  --color-green1: #006600;
  --color-green2: #1a751a;
  --color-green3: #33cc33;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

body{
  font: 10px;
  font-weight: 600;
  color: white;
  margin: 0;
  background: var(--color-green3); 
  background-image: radial-gradient(green, chartreuse), 
    
     url(https://bit.ly/3vrRTQR);
 
background-repeat: repeat;
  background-blend-mode: multiply;
}
h1{
  font-size: 3em;
  text-align: center;
  font-family: 'New Rocker', cursive;
 
}

#guitar-contribute{
  max-width: 1500px;
  margin:auto;
}
p{
  font-size: 1.5em;
  text-align:center;
  font-family: 'Akaya Telivigala', cursive;
}

 h3{
    font-size: inherit;
   
  }
hr.solid {
  border-top: 5px solid green;
  
}

form{
  background-color: black;
  font-size:1.5em;
  margin: auto;
  width: 30em;
  border: .25em solid white;
  padding: 2em;
  line-height:1.5em;
  }

 
header{
  width: 45em;
  margin: auto ;
  text-align: center;
  background-color: black;
  border: .25em solid white;
  margin-top:3em;
  
}

@media (max-width: 576px) {
  .container {
    max-width: 540px;
  }
 
}

@media (min-width: 768px) {
  .container{
    max-width: 720px;
  }
  
  }

@media (max-width: 250px) {
  header,
  form{
    max-width: 210px;
    font-size: 5px
     }
}
@media (max-width: 360px) {
 header,
  form{
    max-width: 320px; 
  }
}
 
.form-group{
  text-align: left;
    margin: .25em  ;
   line-height:2em;
}
.guitar-contribute,
.form-group1,
.form-group2,
.form-group3{
    line-height:2em;
}







.input-radio,
.input-checkbox {
  display: inline-block;
  margin-right: 0.625rem;
  min-height: 1.25rem;
  min-width: 1.25rem;
}
  .submit-button {
    font-family: 'New Rocker', cursive;
    font-size:20px;
    display: block;
  width: 100%;
  padding: .75em;
  background: chartreuse;
  color: black;
  border-radius: 15px;
    cursor: pointer;}
}

              
            
!

JS

              
                
              
            
!
999px

Console