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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <head>
    <link href="https://fonts.googleapis.com/css2?family=Rubik&family=Source+Code+Pro,wght@1,300&display=swap" rel="stylesheet">
    <link type="text/css" rel="stylesheet" href="survey-form-style.css">
</head>
<header>
    <h1 id='title'>Roses are red. background-color: blue; <br>I know you love to code, <br>and I love it too.
    </h1>
    <h3 id= 'description'><em>Tell me more about this thing you love:</em><h3/>
</header>
<div class="form-container">
    <form id='survey-form' action='submit'>
        <label for='name' class='name-label'><h4>Name</h4></label>
        <input type='text' class='box' id='name' placeholder="what are you called?" name="name" value="name" required>
      <br>
        <label for='email' class='email-label'><h4>Email</h4></label>
        <input class='box' type='email' id='email' placeholder="your electronic mail:" value="email" required>
      <br>
        <label for='age' class='number-label'><h4>Age(Optional)</h4></label>
        <input id='age' type="number"class='box'  placeholder="how old are you?" value='age' min="9" max="120">
        <h4 class="checkboxh3">what languages do you speak?</h4>
        <div id= "checkbox-container">
         <div id="column1">
          <label for="java" id= "checkbox-label"><input id="java" type= "checkbox" name="checkbox1" value="java">Java</label>
        <label for="javascript" id= "checkbox-label"><input id="javascript" type= "checkbox" name="checkbox2" value="javascript">Javascript</label>
        <label for="c" id= "checkbox-label"><input id="c" type= "checkbox" name="checkbox3" value="c">C</label>
        <label for="c++" id= "checkbox-label"><input id="c++" type= "checkbox" name="checkbox4" value="c++">C++</label>
        <label for="python" id="checkbox-label"><input id="python" type= "checkbox" name="checkbox5" value="python">Python</label>
        </div>
        <div  id="column2">
        <label for="r" id= "checkbox-label"><input id="r" type= "checkbox" name="checkbox6" value="r">R</label>
        <label for="php" id= "checkbox-label"><input id="php" type= "checkbox" name="checkbox7" value="php">PHP</label>
        <label for="sql" id= "checkbox-label"><input id="sql" type= "checkbox" name="checkbox8" value="sql">SQL</label>
        <label for="c#" id= "checkbox-label"><input id="c#" type= "checkbox" name="checkbox9" value="c#">C#</label>
        <label for="htmlcss" id= "checkbox-label"><input id="htmlcss"   
        type= "checkbox" name="checkbox10" value="htmlcss">HTML/CSS</label>
        </div>
        <div id="column3">
        <label for="unknown" id= "checkbox-label"><input id="unknown"   
        type= "checkbox" name="checkbox11" value="unknown">One I've never heard of</label>
        </div>
        </div>
        <h4>What do you love most about coding?</h4>
        <select class='box' name="dropd" id="dropdown" >
            <option disabled selected option>Select your option</option>
            <option value="challenge">The challenges it brings</option>
            <option value="learning">The thrill of learning it</option>
            <option value="god-powers">The ability to create things with it</option>
            <option value="money">$$$</option>
            <option value="everything">Everthing everything</option>
            <option value="nothing">I have no idea</option>
        </select>
        <label for="date" class="date-labe"><h4>Around when did you write your first line of code?</h4></label>
        <input id='date' class='box' type="date" value="date" name="date" placeholder="select year and/or month followed by any day">
        <label for="hobbies" class="hobby-label"><h4>What do you love to do besides coding?</h4></label>
        <textarea class='box' id="hobbies" type="text" value="hobbies" name="hobbies" placeholder="tell us about your hobbies"></textarea>
        <div id="radio-container">
        <h4>What do you think about this survey?</h4>
        <label for="thumbsup" class="radio1"><input id="thumbsup" type="radio" name="radio" value="thumbsup">Loved it</label>
        <label for="thumbsdown" class="radio2"><input id="thumbsdown" type="radio" name="radio" value="thumbsdown">It absolutely sucks</label>
        <label for="martian-elon" class="radio3"><input id="martian-elon" type="radio" name="radio" value="martian-elon">Elon Musk is a Martian trying to go back home</label>
        </div>
        <div id="submit-reset-container">
        <input class='box' type="submit" value="submit">
        <input class='box' type="reset" >
        </div>   
        </form></div>
        <h5 id="thanks"><em>THANK YOU</em></h5>
        <footer>
        <h2 id="campers-salute">LONG LIVE THE CAMPERS !</h2>
        <p><strong>survey by @curious_avocado</strong></p>
        </footer>
              
            
!

CSS

              
                * {
    box-sizing: border-box;
    margin: 0;
  }
header{
    margin: 0px auto 30px auto;
    line-height: 2.7rem;
    max-height: auto;
    font-family: 'Source Code Pro', monospace;
}
#description{
    margin-top: 30px;
}
h1{
    background-color: rgb(144, 135, 189); 
    box-shadow: 0px 3px 5px 2px rgb(26, 26, 71);
    text-shadow: 1px 1px 0px blue;
}
@media(max-width: 400px){
  #title{
    font-size: 1.6rem;
    line-height: 2rem 
  }
}
body{
    background-color:rgb(87, 87, 163);
    text-align: center;
}
form{
    margin-left: 0;
    margin-bottom: 29px;
    padding: 40px 40px 40px 40px;
    width: auto;
    text-align: center;
    background-color: rgb(144, 135, 189);
    border-radius: 4px;
}
h4,label, input, ::placeholder, option{
    font-family: 'Source Code Pro', monospace;
    font-weight: 800;
}
#checkbox-label, .radio1, .radio2, .radio3{
font-weight: 100;
}
::placeholder{
  padding-left: 5px; 
}
h4{
    margin-bottom: 7px;
}

#radio-container{
    display: flex;
    flex-direction: column;
    margin-bottom: 35px;
    
}
.box{
    margin-bottom: 15px;
    box-sizing: border-box;
    width: 300px;
    border-radius: 3px;
    border: none;
    height: 30px;
    max-width: 100%;
    box-shadow: 2px 2px 0px blue;
    resize: vertical;
}
#column3{
    margin-bottom: 15px;
}
footer, #thanks{
    font-family: 'Source Code Pro', monospace;
    margin-bottom: 15px;
}
footer{
    background-color: rgb(144, 135, 189); 
    box-shadow: 0px 3px 5px 2px rgb(26, 26, 71); 
    line-height: 2.7rem; 
}
#thanks{
    margin: 30px auto 30px;
    font-size: 20px;
    opacity: 0.5;
}
#survey-form{
    box-shadow: 0px 3px 5px 2px rgb(26, 26, 71);
}
.box:hover{
    transform: scale(1.1);
}
input[type='radio'], input[type='checkbox']{
    margin-right: 2.5px;
}
              
            
!

JS

              
                
              
            
!
999px

Console