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>

<header>
  <h1 id="title">Photography Survey Form</h1>
</header>

<div class="container">
  <p id="description">I am building a new application which will connect travelers and photographers together. Help me by sharing brief info about you and your photography skills and desires.</p>

  <form id="survey-form" action="#">

    <table>

      <tr>
        <td><label id="name-label" for="name">Name:</label></td>

        <td><input id="name" type="text" placeholder="Enter your name" required></td>
      </tr>

      <tr>
        <td><label id="email-label" for="email">Email:</label></td>
        <td><input id="email" type="email" placeholder="Enter your email" required></td>
      </tr>

      <tr>
        <td><label id="number-label" for="number">Age:</label></td>
        <td><input id="number" type="number" placeholder="Age" min="0" max="120"></td>
      </tr>

      <tr>
        <td><label id="radio-label" for="interest">Are you interested in taking photos of others?</label></td>
        <td>
          <div id="radio">
            <label id="yes-interest" for="yes-answer">
              <input type="radio" name="interest" value="yes">Yes</label><br>
            <label id="no-interest" for="no-answer">
              <input type="radio" name="interest" value="no">No</label><br>
            <label id="maybe-interest" for="maybe-answer">
              <input  type="radio" name="interest" value="maybe">Maybe</label></field><br>
          </div>
        </td>
      </tr>

      <tr>
        <td><label id="checkbox-label" for="photo-genre">What are your favourite Genres of Photography?</label></td>
        <td>
          <div id="checkbox">
            <label id="architecture"><input type="checkbox" name="photo-genre" value="Architetural photography">Architectural photography</label><br>
            <label id="animal"><input type="checkbox" name="photo-genre" value="Animal photography">Animal photography</label><br>

            <label id="fashion"><input type="checkbox" name="photo-genre" value="Fashion photography">Fashion photography</label><br>

            <label id="food"><input type="checkbox" name="photo-genre" value="Food photography">Food photography</label><br>
            <label id="landscape"><input type="checkbox" name="photo-genre" value="Landscape photography">Landscape photography</label><br>
            <label id="journalism"><input type="checkbox" name="photo-genre" value="Photo-journalism">Photo-journalism</label><br>
            <label id="portraiture"><input type="checkbox" name="photo-genre" value="Portraiture">Portraiture</label><br>
            <label id="urban"><input type="checkbox" name="photo-genre" value="Urban">Urban</label>
          </div>
        </td><br>
      </tr>

      <tr>
        <td>
          <lable id="dropdown-label" for="skill-level">What is your photography skill level?</lable>
        </td>
        <td><select id="dropdown" name="skill-level">
       <option value="rofessional">Professional</option>
       <option value="Semi-professional">Semi-professional</option>
       <option value="Amateur">Amateur</option>
       <option value="Beginner">Beginner</option>
       <option value="No skills">No skills</option>
       </td>
  </tr>
  
  <tr><td><div id="textarea-block">
    <label id="textarea" for="message">Why are you taking photos? </label></td>
     <td> <textarea id="message" name="message" placeholder="Answer"></textarea></td>
  </tr></div>
  
  <tr><td><button id="submit" type="submit" name="button">Submit</button></td></tr>
  
</form>

</div>
              
            
!

CSS

              
                body {
  background: rgba(218, 112, 214, 0.2);
}

#title {
  max-width: 100%;
  diplay: block;
  height: auto;
  background: #eeffcc;
margin: 0.5em 35%;
}


.container {
  display: block;
  height: auto;
  font-size: 19px;
  	width: 80%;
	margin: auto;
	padding: 1em; 
  
  Background-color: #eeffcc

}

p {
  font-size: 22px;
  margin: 1em 2em;
}

#survey-form {
  margin: 1em 10em;
 
}

#name-label {
  margin: 0em 0em 0em 40%;
}

#name {
  margin: 1em 0em;
}

#email-label {
  margin: 0em 0em 0em 40%;
}

#email {
  margin: 1em 0em;
}

#number-label {
  margin: 0em 0em 0em 40%;
}

#number {
 margin: 1em 0em 3em 0em;
}


}

#radio-label {
}

#radio {
  margin: 1em 0em;
}

#yes-interest {
  background: 
}

#no-interest {
  background:
}

#maybe-interest {
  background: 
}

#checkbox-label {
}

#checkbox {
  margin: 2em 0em;
}

#architecture {
}

#animal {
}

#fashion {
  
}

#food {
  
}

#landscape {
  
}

#journalism {
  
}

#portraiture {
  
}

#urban {
  
}

#dropdown-label {
}

#dropdown {
  margin: 2em 0em;
}

input {
  padding: 0.5em;
}

#textarea-block {
  margin: 2em 0em;
}

#submit {
  border-color: green;
  border-width: 2px;
  border-radius: 20px;
  font-size: 15px;
  max-width: 100%;
  display: block;
  height: auto;
  margin: 0em 80%;
}


@media (max-width: 900px)
{
  #survey-form {
    margin: 1em;
    font-size: 16px;
  }
  
  #title {
    font-size: 20px;
  }
  
  #description {
    font-size: 18px;
  }
  
  
}
              
            
!

JS

              
                
              
            
!
999px

Console