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>
<form id="survey-form">
<h1 id="title">Survey Form</h1>
<div>
<p id="description">Working condition for nurses</p>
<form id="survey-form"></form>
  <div class="rowTab">
    <div class="labels">
      <label id="name-label" for="name">*Name:</label>
    </div>
    <div class="rightTab">
         <input autofocus type="text"name="name"id="name"class="input-field"placeholder="Enter your name"required>
    </div>
  </div>
  <div class="rowTab">
    <div class="labels">
      <label id="email-label"for="email">*Email:</label>
    </div>
    <div class="rightTab">
      <input  type="email"name="email"id="email"class="input-field"required placeholder="Enter your Email">
    </div>
  </div>
  <div class="rowTab">
    <div class="labels">
      <label id="number-label"for="How many years have you been working for NHS">*How many years have you been working for NHS:</label>
    </div>
  <div class="rightTab">
    <input type="number"name="How many years have you been working for NHS"id="number" min="1"max="100"class="input-field"placeholder="year">
  </div>
  </div>
  <div class="rowTab">
    <div class="labels">
      <label for="currentPos">*What is your current role within the company?</label>
    </div>
    <div class="rightTab">
      <select id="dropdown"name="curentPos"
           class="dropdown">
        <option disabeld value>Select an option</option>
        <option value="Student">Student</option>
        <option value="Nurse">Nurse</option>
        <option value="Health Care assistant">Health Care assistant</option>
        <option value="Doctor">Doctor</option>
        <option value="Other">Other</option>
      </select>
    </div>
  </div>
  <div class="rowTab">
    <div class="labels">
      <label for="preferences">What do you like the most within your job<br>(Thick all that apply):</label>
    </div>
    <div class="rightTab">
      <ul id="preferences"style="list-style:none;">
        <li class="checkbox">
          <label><input name="prefer"value="1"type="checkbox"class="userRatings">Shift Patterns</label></li>
        <li class="checkbox">
          <label><input     name="prefer"value="2"type="checkbox"class="userRating">Training</label></li>
          <li class="checkbox">
            <label><input name="prefer"value="3"type="checkbox"class="userRating">Pension Scheme</label></li>
            <li class="checkbox">
              <label><input name="prefer"value="4"type="checkbox"class="userRating">Challenges</label></li>
              <li class="checkbox">
                         <label><input name="prefer"value="5"type="checkbox"class="userRating">Helping thoes in need</label></li>
                <li class="checkbox">
                  <label><input name="prefer"value="6"type="checkbox"class="userRating">Management</label></li>
                  <li class="checkbox"><label><input name="prefer"value="7"type="checkbox"class="userRating">Working hours</label></li>
                    <li class="checkbox"><label><input name="prefer"value="8"type="checkbox"class="userRating">Other</label></li></ul></div></div>
  <div class="rowTab">
    <div class="labels">
      <label for="userRating">* Would you recomend a job in NHS?</label>
    </div>
    <div class="rightTab">
      <ul style="list-style:none;">
        <li class="radio">
          <label>Yes<input name="radio-buttons"value="1"type="radio"class="userRatings"></label></li>
        <li class="radio"><label>Maybe<input name="radio-buttons"value="2"type="radio"class="userRatings"></label></li>
        <li class="radio">
          <label>No<input name="radio-buttons"value="3"type="radio"class="userRatings"></label></li>
      </ul>
        </div>
    </div>
    <div class="rowTab">
      <div class="labels">
        <label for="comments">Please suggest how can we improve working condition in NHS.</label>
      </div>
      <div class="rightTab">
        <textarea id="comments"class="input-field"style="height 100px;resize:vertical;"name="comment"
                  placeholder="Enter your suggestions here..."></textarea>
      </div>
    </div>
    <button id="submit"type="submit">Submit</button></form>
</div>
                    



              
            
!

CSS

              
                html{font-size:120%;}
body{background-color:mistyrose;text-align:center;font-family:arial;min-width:300px;
}
header{font-size:50%;
font-weight:bold;
margin:10px;}
.labels{display:inline-block;
text-align:right;
width:50%;
padding:5px;
vertical-align:top;
margin-top:1px;}
.rightTab{
  display:inline-block;
text-align:left;
width:40%;
vertical-align:middle;}
.input-field{height:15px;
width:280px;
padding:8px;
margin:5px;
border:1px solid grey;
border-radius:2px;}
#userHow many years have you been working for NHS{width:45px;}
.userRatings,input[type="checkbox"]{float:left;margin-right:5px;}
#submit{background-color:hotpink;border-radius:4px;color:blue;font-size:120%;height:30px;width:100px;margin:10px;border:1px solid;}
.dropdown{
  height:35px;
  width:120px;
  padding:5px;
  margin:15px;
margin-top:10px;
border:1px solid hotpink;
border-radius:2px;}
.radio,.checkbox{
  position:relative;
  left:-20px;
margin-left:10px;
display:block;
padding-bottom:2px;}
.input-field{width:80%;}
select{width:90%;}

              
            
!

JS

              
                
              
            
!
999px

Console