Fork Me! FCC: Test Suite Template

In this example below you will see how to do a Fork Me! FCC: Test Suite Template with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by vanderdrilu, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright vanderdrilu ©
  • HTML
  • CSS
  • JavaScript
    <script src="https://gitcdn.link/repo/freeCodeCamp/testable-projects-fcc/master/build/bundle.js"></script>

<!-- 

Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->
<H1  id="title" >Survey Form</H1>
<p id="description"> short explanantions</p>
<form id="survey-form" action="/action_page.php">
 
   <p><label id="name-label" for="name">Name</label><input name="input field" id="name" placeholder="Enter your name"></p>
  <p> <label  id="email-label"for="mail">email</label><input name="input field" id="mail" placeholder="Enter your email" type="email" required</p>
          <p> <label  id="number-label" for="number">age</label><input name="input field"   id="number" placeholder="Enter age" type="number" min="0" required </p>
           <p> 
             <label   for="dropdown">job</label>
      <select id="dropdown" name="cars" >
    <option value="volvo">Student</option>
    <option value="saab">part-time</option>
    <option value="fiat">Full-time</option>
    <option value="audi">Unemployed</option></p>
  </select>
<ul class=name1 style="list-style: none;">
  <li>
<label for = "radio1"><input class=name type="radio" id="radio1" name="gender" value="male" checked>male</label><br></li>
 <li> <label for = "radio2"><input class=name type="radio" id="radio2" name="gender" value="female" checked>female</label><br></li>
</ul>
<p>
  <ul  class="checkbox" style="list-style: none;">
<li><input value="0" type="checkbox">Front-end Projects</li>
<li><input value="1" type="checkbox">Back-end Projects</li>
<li><input value="2" type="checkbox">PC</li>
</ul>
<p>
  <textarea cols="25" rows="8"> </textarea>
</p>
<button type="submit" id="submit" value="Submit">Submit</button>

</form>

/*Downloaded from https://www.codeseek.co/vanderdrilu/fork-me-fcc-test-suite-template-yEaOjL */
    h1, form, p {text-align:center;}
form{border:1px solid black;
width:60%;
margin:0 auto;
display:flex-start
}

label, input, select, button{width:20%;
margin:20px;}
.name1{
  text-align:left;
  margin-left:28%;
}
.checkbox{
  text-align:left;
  margin-left:30%;
}


/*Downloaded from https://www.codeseek.co/vanderdrilu/fork-me-fcc-test-suite-template-yEaOjL */
    // !! 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. 


Comments