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. 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

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>

<h1 id="title">Survey on Internet Usage during COVID-19</h1>
<p id="description">Dear Respondent, I request you to provide following information required for my fulfillment of degree project. Hereby I assure you to not to reveal any information, that I collect, to third party and I use data collected solely for my Academic Project.</p>

<form id="survey-form" action="/action.php" method="get">
  <label id="name-label">Name<br><input type="text" id="name" name="userName" placeholder="Enter your name" required></label><br><br>
  
  <label id="email-label">Email<br><input type="email" id="email" name="eMail" placeholder="Enter your e-mail id" required></label><br><br>
  
  <label id="number-label">Age<br><input type="number" id="number" name="mobileNumber" min="18" max="100" placeholder="Age" required></label><br><br>
  
  <label for="dropdown" id="dropDown">How many hours do you spend on browsing Internet?</label><br>
 <select  id="dropdown" name="dropDownList" size="1" required>
   <option value="" disabled selected>Select Hours</option>
   <option value="<1 Hour">&lt;1 Hour</option>
   <option value="1- 2 Hours">1- 2 Hours</option>
   <option value="2-3 Hours">2- 3 Hours</option>
   <option value="3-4 Hours">3- 4 Hours</option>
   <option value=">4 Hours">&gt;4 Hours</option>
  </select><br><br>

<label id="radios">Do you feel stressed after browsing Internet?</label><br>
<input type="radio" id="yes" name="stress" value="yes" required><label for="yes">Yes</label><br>
<input type="radio" id="no" name="stress" value="no"><label for="no">No</label><br><br>

<label id="mainUsage">My major usage of Internet is for:</label><br>
<input type="checkbox" name="mainUsage" value="entertainment" id="entertainment" required><label for="entertainment">Entertainment</label><br>
<input type="checkbox" name="mainUsage" value="officialWork" id="officialWork"><label for="officialWork">Official Work</label><br>
<input type="checkbox" id="education" name="mainUsage" value="education"><label for="education">Education</label><br>
<input type="checkbox" id="socialMediaSites" name="mainUsage" value="socialMediaSites"><label for="socialMediaSites">Social Network Sites (Facebook, Twitter, etc,.)</label><br><br>

<label id="moreInformation" for="writeMore">Anything you would like to share? Please write below.</label><br><textarea id="writeMore" name="moreInformation" rows="5" cols="50" required></textarea><br><br>
  
<div>
  <input type="submit" id="submit">
</div>

</form>
              
            
!

CSS

              
                body{
  background-image:radial-gradient(#564256,#957595);
}

form{
  border:solid silver;
  border-radius:20px;
  padding:20px;
  background-color:hsla(0,0%,100%, 0.2);
  margin-left:10%;
  margin-right:10%
 }

h1{
  text-align:center;
  color:white;
}

#submit{
  width:80%;
  border-radius:50px;
  height:40px;
  font-weight:bold;
}

#submit:hover{
  background-color:#2E232E;
  color:white;
}

p{
  text-align:justify;
  color:#BFBFBF;
}

div{
  text-align:center;
}

#writeMore{
  width:50%;
  border-radius:10px;
}

#name, #email, #number{
  width:45%;
  border-radius:5px;
}

#name-label, #email-label, #number-label, #dropDown, #radios, #mainUsage, #moreInformation{
  font-weight:bold;
  color:#231B23;
}
              
            
!

JS

              
                
              
            
!
999px

Console