css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm 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. We'll also process your JavaScript with Babel.

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

Code Indentation

     

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.

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.

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

  <h1 id="title"> How many cats?</h1> 
  
  <p id="description"> Tell us how much you like cats!</p>

  <form action="_blank" id="survey-form">
    
    <fieldset>
      <legend> Meow Me Info</legend>
      
 <br>
   <div class="label">
        <div class="labels">
             <label id="name-label" for="name">*Name</label>
          <input id="name" type="text" name="name" placeholder="Please enter a name" autofocus required></input>
        </div>
 <br>
      <div class="labels">
        <label id="email-label" for="email">*Email address</label>
        <input id="email" placeholder="Yours or your cats." type="email" name="email" required></input>
      </div>
<br>
      <div class="labels">
        <label id="number-label" for="age">*Age<label>
    <input id="number" placeholder="Age in cat years." type="number" name="age" min="2" max="99"></input>
      </div>
</div>
</p>

</fieldset>

  <br>

  <fieldset>  
    <legend> I want to hug you and squeeze you and love you forever.</legend>
<div class="label">
  <div class="question-title">
    <label for="like-cats">How much do you like cats?</label>
      </div>
<br>
    
      <div>
      <select id="dropdown" class="dropdown" name="like-cats">
       <option value="select one">Please select one.</option>
      <option value="jerks.">Cat's are jerks!</option>
      <option value="ok.">Cat's are ok.</option>
      <option value="amazing!">Cat's are amazing!</option>
      <option value="love">I want to squeeze them and love them forever!</option>
      <option value="worship">I worship cat's!</option>
      <option value="I am a cat">I am a cat.</option>
      </select>
        </fieldset>
      </div>
</div>
    
      <br>
<fieldset>
  <legend> I have all the cat's in the world!</legend>
       <div class="label">
      <div class="question-title">
        <label for="#ofcats"> How many cats do you have?</label>
      </div>

      <div>
        <ul style="list-style: none;">
<li class="radio" id="1 or 2"> <input name="#ofcats" value="1" type="radio" checked>
            <label for="1 or 2"> 1 or 2 - "I am normal" </label></li>

            <li class="radio" id="Less than 5"> <input name="#ofcats" value="<5" type="radio"> <label for="less than 5"> Less than 5 - "That's not weird"</label></li>

            <li class="radio" id="less than 10"> <input name="#ofcats" value=">10" type="radio">
              <label for="Less than 10"> Less thn 10 - "Who wants a cute kitten?"
      </label></li>
            <li class="radio" id="more than 10"><input name="#ofcats" value="<10" type="radio"><label for="more than 10"> More than 10 - "One day they will eat me" </label></li>
        </ul>
        </fieldset>
         <br>
      </div>
</div>
<br>
<fieldset>
  <legend> Techno-color Nyan cat you make my heart sing.</legend>
  <div class="label" id="checkboxes">
  <div class="question-title">
  <label for="color"> What color's of cat do you prefer?</label>
    </div>
    <ul id="color" style="list-style: none;" >
      
      <li class="checkbox" id=black> <input name=color value="1" checked type="checkbox">black or Grey</li>
      
      <li class="checkbox" id="white"> <input name=color value="2" type="checkbox">White or Brown</li>
      
      <li class="checkbox" id="callico"> <input name=color value="3" type="checkbox">Callico</li>
      
      <li class="checkbox" id="pink"> <input name="color" value="4" type="checkbox">Pink or Red</li>
      
      <li class="checkbox" id="rainbow"> <input name=color value="5" type="checkbox">Rainbow</li>
    </ul>
    </fieldset>
    </div>
<br>
</div>
<fieldset>
  <legend> Tell me more, tell me more, baby please tell me more.</legend>
      <div class="label">
        <textarea rows="10" columns="100" name="message" 
      style="font-size:1.3em; font-family: cat;" placeholder="Tell me about your cat. What other cat questions do you want to know?"></textarea> 
        <button id="submit" type="submit">Submit</button>
                             
      </div>
</div>

                                 </fieldset>
</form>
                                 </div>
</div>
</div>

            
          
!
            
              #form-outer-b{
  max-width:1200px;
  background: white;
}
#form-outer{
  max-width: 900px;
}
#title{
  color: white;
  font-family:"cat";
  font-size: 3em;
  padding:0px;
  margin-top: 0px;
  text-align: center;
}
#description{
  font-weight: bold;
  font-size: 1.2em;
  text-align: center;
}
.label{
  display:grid;
  grid-template-columns: 1fr ;
  grid-template-rows:  1fr;
  border: 5px dotted #485e74;
  box-shadow: 0px 50px 100px 20px;
  border-radius: 10%;
  padding: 1em;
  margin-left: auto;
  margin-right:auto;
  background: lightblue;
      max-width: 75%;
      height:auto;
}


  
body{
    background:#92bde7;
    color: #485e74;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding:2em;
  outline: 100px solid rgb(118, 169, 252,.5);
  border: 20px solid rgb(118, 169, 252);
  box-shadow: inset 5px 10px 50px rgb(26, 109, 242,.5)
;
  
}

.labels input, .dropdown {
  width: 80%;
  padding: 10px 20px;
  border-radius: 20%;
      }
placeholder{
  font-size: 2em;
}


/* Style the submit button */
#submit{
  padding: 10px 20px;
  background-color: dodgerblue;
  border: 1px solid #ddd;
  color: white;
}

#submit:hover {
  background-color: royalblue;
}



/* Add responsiveness - display the form controls vertically instead of horizontally on screens that are less than 800px wide */
@media (min-width: 400px){
}

@media (min-width: 600px) {
  html{
    font-size: 1.2em;
  }
      .label. input, .dropdown{
              max-width: initial;
              height:auto;
  }
}
  @media (min-width: 900px){
    html{
    font-size: 1.5em;
    }
}

            
          
!
            
              // !! 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. $(document).ready(function() {
            $("#RadioBtn input[type='radio']").click(function() { 
              alert('hi'); 
            });
        

/***********
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
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console