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

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

<h1 id="title"> Survey de Beats Buffet </h1>

<a href="https://www.youtube.com/channel/UCC-p6kT8rWhp0okRIbb0KGw" target="_blank">
<img class= "image" src="https://previews.dropbox.com/p/thumb/AAgWuI8zqROLxESslapwpYU5pMLl--xL__La7lv2tA_pd4C3U4mJLOEWrZCm1eK0VVi8LAI9w283OyjnJwNwMLhOObVeaWllMF0mgS7OqIOcgT2rhVVNC0wy0YR_7pt4QTGYATDvsPpQr8X2SHIti5hP0muH6R7Nf7KtATOa6AiunfjZM7lIaQzacqZNZt6-JrpT3gQ3qskZGtkTyU94qulF1sH9_e65ZAxAcOhcWfyq8BneaUGpAdmQMY_VDGdgYO3bNnPqF0gsn3HH44ke4yVeE8ZOFyX1kivEp8b-TeZjloNpwjArESgwNBHfnbXghuCDQdv1M_pfcUXkbAidEC78/p.png?fv_content=true&size_mode=5">
</a>

   <p id="description"> We're always looking to improve those beats we deliver fresh to your ears, <br> let us know a bit more about you so we can keep those tables turnin'.
   </p> 
   <form id="survey-form" method="GET" >
      <div id="form-details">
     <label class="beatslabel" for="name" id="name-label"> Name </label>
        <input class="beatsinput" required id="name" type="text" placeholder="Enter your name">
     </div>
    
   <div>
     <label for="email" id="email-label" class="beatslabel">
   Email </label>
<input class="beatsinput" required type="email" placeholder="Enter your email address" id="email">
     </div>
 
           
   
     <div id="age">
       <label class="beatslabel" for="number" id="number-label"> Age </label>
       
         <input class="beatsinput" id="number" type="number" input="number" Placeholder="1 - 122" min="1" max="122" required >
        </div>
   
     <div>
       <label class="labelselect"  for="years"> Where do you usually get your beats? </label> <select class="selectbox" id="dropdown"> 
  <option value="platform" selected>Spotify</option>
  <option value="1">Apple Music</option>
  <option value="2">YouTube</option>
  <option value="3">SoundCloud</option>
  <option value="4">Amazon Prime</option>
  <option value="5">Other</option>
       </select>
 </div>
   
       <div>
         <label class="beatschecklabel" for="preferences"> What kinda beats do you like best?<br> (Check all that apply) </label> <ul class="checkboxinput" style="list-style: none;">
         <li><label>  <input type="checkbox" value="1"> Old Skool Hip-Hop</label>
           <li class="checkbox"><label>  <input type="checkbox" value="2"> Chill Hop/Lo-Fi</label>
             <li class="checkbox"><label>  <input type="checkbox" value="3"> Modern Hip-Hop</label>
               <li class="checkbox"><label>  <input type="checkbox"value="4" > Funk</label>
                 <li class="checkbox"><label><input type="checkbox"value="5" >  Soul</label>
                   <li class="checkbox"><label> <input type="checkbox"value="6" >  Jazz</label>
         </div>
         
<div>
  <label class="beatsradiolabel" for="user-Rating"> What kinda Beats Buffet merch would you get? </label>
  <ul class ="radioinput" style="list-style: none;"> 
    <li class="radio"> 
         
      <label> <input name="radio-buttons" type="radio" value="1" > T-Shirt</label></li>
      
     <li class="radio"><label> <input name="radio-buttons" type="radio" value="2" ></label> Bag</li>
      
        <li class="radio"><label> <input name="radio-buttons" type="radio" value="3" ></label> Badge</li>
      
    <li class="radio"> <label> <input name="radio-buttons" type="radio" value="4" ></label> Hat</li>
    </div>
  
  <div> 
    <label for="comments"> Any comments or suggestions are welcome! </label>
  </div>
  
  <div>
    <textarea name="comment" class="input-field" style="height:100px; width:300px;" placeholder="All you got to do now...express yourself"></textarea>
  </div>
  
  <button id="submit" type="submit"> Submit </button>
                          
                           </form>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Josefin+Sans&display=swap');

body {
  font-family: 'Josefin Sans', sans-serif;
  color: #00a2b2;
  text-align: center;
  background-color: #dcd000;
  display: block;
  mid-width: 320px;
  color: #253659;
}

.image{
  border-radius:50%;
  display: inline-block;
  height: 70px;
  width: 70px;
  position: relative;
  top: 13px;
}

.leftimage
p {
  text-align: absolute;
  word-break: break-all;
  margin: 20px auto;
  max-width: 800px;

}
h1 {
  display:inline-block;
}
#survey-form {
  color: #253659;
  background-color: #00a2b2;
  width: 800px;
  margin: 0 auto;
  line-height: 2;
  border-radius: 25px;
  padding-top: 20px;
  
  
}
.rowtab {
  display:block;
}

.beatslabel {
  display: inline-block;
  width: 20%;
  text-align: right;
}
.beatsinput {
  display: inline-block;
  width: 30%;
  text-align: left;
  }

.labelselect {
  display: inline-block;
  width: 20%;
  text-align: right;
  margin:0px -4px
}
.selectbox {
  display: inline-block;
  width: 30%;
  text-align: left;
  vertical-align: 230%;
}

.beatschecklabel {
  vertical-align: 300%;
  display: inline-block;
  width: 25%;
  text-align: right;
  margin: 0px -40px;
}

.checkboxinput {
  display:inline-block;
  text-align:left;
  width: 30%;
}

.radioinput {
  display:inline-block;
  text-align:left;
  width: 30%;
}

.beatsradiolabel
{
  vertical-align: 200%;
  display: inline-block;
  width: 25%;
  text-align: right;
  margin: 0px -40px;
}
              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console