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>

<!DOCTYPE html>

<div class="fullcard">
  
<head></head>

<h1 id="title">Invincible Fandom </h1>


  <p id="description"> This is a survey based on the hit series tv show Invincible. In this survey we are going to be collecting data on who is the strongest among all the characters shown in the show and Comics</p>
<form id="survey-form">
  
  <p> Please enter your details below !</p>
  
  
  <div class="form-group">
  <label for="name" id="name-label"> Name:</label>
  <input type="text" id="name" name="name" placeholder="Enter Name Here" required><br>
  </div>
    
  <div class="form-group" >
  <label for="email" id="email-label">Email:</label>
    <input type="email" id="email" name="email" placeholder="Enter Email Here" required><br>
  </div>
  
  
  <div class="form-group">
    <label for="Age" id="number-label">Age:  </label>
    <input type="number" id="number" name="Age" min="1" max="100" placeholder="Enter Age Here" >
  </div>
    
    
    <div class="form-group">
    <label for="favorateCharacter">FavourateCharacter:</label>
    <select id="dropdown" name="characters" >
      <option disabled selected value> Select Character</option>
      <option > Invincible</option>
      <option> Ommi-Man</option>
      <option> Atom Eve</option>
      <option> The Immortal</option>
      <option> Robot</option>
  <option> Mauler Twins</option>
      <option> Conquest</option>
      <option> Badrock</option>
      </select>
      
  </div>
  
  
  
  <p>Who Is Your Strongest Character ?</p>
  
  
    <div class="form-group">
  <label >
    <input type="radio" name="characters" class="input-radio" value="Omni-man" >Omni-Man</label>
      <br>
  </div>
  
  <div class="form-group">
      <label id="alpha" >
    <input type="radio" name="characters" class="input-radio" value="Invincible">Invincible</label><br>
  </div>
  
  
  
  <div class="form-group">  
  <label id="beta" >
    <input type="radio" name="characters" class="input-radio" value="Conquest">Conquest</label><br>
  </div>
  
  <div class="form-group">
  <label id="gamma">
    <input type="radio" name="characters" class="input-radio" value="The Immortal">The Immortal</label>
  </div>
  
  
  <p>If you could be any Character who would it be ?</p>
  
  
  
  <div class="form-group">
   <label id="A">
    <input type="checkbox" name="character" value="The Immortal">The Immortal</label><br>
    </div>
  
  
  
  
  <div class="form-group">
    <label id="B">
    <input type="checkbox" name="characters" class="input-checkbox" value="Conquest">Conquest</label><br>  
  </div>
  
  <div class="form-group">
      <label id="C">
    <input type="checkbox" name="characters" class="input-checkbox" value="Invincible">Invincible</label><br>
  </div>
  
  
  <div class="form-group">
    <label id="D">
  <input type="checkbox" name="characters" class="input-checkbox"  value="Omni-man" >Omni-Man</label>
      
  </div>
  
  
    
    <p> Comments or Suggestions ?</p>
  
  
    <div class="form-group">
    <textarea
                id="comments"
                class="input-textarea"
                name="comment"
                placeholder="Enter your comment here"></textarea>
  </div>
    
  
  <div class="form-group">
       <button
              type="submit"
              id="submit"
              class="submit-button">Submit</button>
    </div>
      
  </form>
</div>
  
              
            
!

CSS

              
                h1{text-align: center;}
p{text-align:center;
font-size: 30px;}
.form-group{
  text-align:center;
  font-size: 30px;
  margin-bottom:20px;
  
}
body{
  background-image: url("https://www.denofgeek.com/wp-content/uploads/2020/10/Invincible-Animated-Series-Lineup.jpg?resize=768%2C432")
}
.fullcard{
  background-color:#A2ADD0;
  padding:30px;
  width:80%;
  margin: auto auto;
  border-radius: 5%;
  }
#survey-form{
  text-align: center;
}

#comments{
  border-style: solid;
  border-radius: 5%;
  border-width: 2px;
  border-color:#36454F;
  background-color: silver;
}
#submit{
  border-style: solid;
  border-width: 2px;
  border-radius: 5%;
  border-color: black;
  background-color: #36454F;
}

#email{
  border-style: solid;
  border-width: 2px;
  border-color: #36454F;
  border-radius: 5%;
  height: 20px;
}
#name{
  border-style: solid;
  border-width: 2px;
  border-color: #36454F;
  border-radius: 5%;
  height: 20px;
}
#number{
  border-style: solid;
  border-width: 2px;
  border-color: #36454F;
  border-radius: 5%;
  height: 20px;
  margin-left: 20px;
}
#dropdown{
  border-style: solid;
  border-width: 2px;
  border-color: #36454F;
  border-radius: 5%;
  height: 25px;
  margin-right: 165px;
  width:150px;
}
#alpha{
  margin-right: 8px;
}

#beta{
  margin-right: 18px;
}
#gamma{
  margin-left: 35px;
}


#A {
  margin-left: 40px;
}
#B{
  margin-right: 9px;
}
#D{
  margin-left: 10px;
}
              
            
!

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