css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<!DOCTYPE html>

  <meta charset="utf-8">
  <title>Booklist New User Survey</title>
  <link rel="stylesheet" type="text/css" href="file:///Users/bexx/Documents/FCC%20Survey%20Form/css/main.css" />

  <h1 id="title">Booklist</h1>
  <div id="intro">
    <div id="banner-vellum">
      <h2 id="welcome">
        Welcome to Booklist!
      <p id="description">
        We need a little information to set up your Booklist! Once we know what you enjoy, we can suggest books you'll love! If you have any questions or concerns, one of our talented Reader Guides will contact you within 12 hours. Happy reading!
  <form id="survey-form">
    <div id="personal-info" class="pi-text">
      <label id="name-label">Username:</label>
      <input type="text" id="name" placeholder="What would you like us to call you?" required>
      <label id="email-label">Email:</label>

<!--       Why this pattern? Explain your code with comments. -->
      <input type="email" id="email" placeholder="example@domain.com" required pattern="(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|&qout;(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*&qout;)@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])">
      <label id="number-label">How many books do you read per month?</label>
      <input type="number" id="number" placeholder="How many books per month?" min="1" max="150" required>
      <label for="r-text">What's your favorite book?</label>
      <input id="r-text" type="text">
      <label id="dropdown-label">How did you hear about us?</label>
      <select id="dropdown">
                    <option value="friend">From a friend</option>
                    <option value="search-engine">Search engine</option>
                    <option value="blog">Blog</option>

    <div id="radio-buttons">
      <label>What is your preferred format?</label>
      <input id="ebooks" class="rbgrid2" type="radio" name="format" value="1">
      <label for="ebooks">Ebooks</label>

      <input id="audiobooks" class="rbgrid2" type="radio" name="format" value="2">
      <label for="audiobooks" id="rb-label2" class="rbgrid2" for="ebooks">Audiobooks</label>
      <input id="both" class="rbgrid2" type="radio" name="format" value="3">
      <label for="both" id="rb-label2" class="rbgrid2" for="audiobooks">Both</label>
    <div id="genre-list">
      <input value="1" id="art" type="checkbox" name="art">
      <label for="art">Art</label>
      <input value="2" id="biography" type="checkbox" name="biography">
      <label for="biography">Biography</label>
      <input value="3" id="business" type="checkbox" name="business">
      <label for="business">Business</label>
      <input value="4" id="chick-lit" type="checkbox" name="chick-lit">
      <label for="chick-lit">Chick Lit</label>
      <input value="5" id="children" type="checkbox" name="children">
      <label for="children">Children's</label>
      <input value="6" id="christian" type="checkbox" name="christian">
      <label for="christian">Christian</label>
      <input value="7" id="classics" type="checkbox" name="classics">
      <label for="classics">Classics</label>
      <input value="8" id="comics" type="checkbox" name="comics">
      <label for="comics">Comics</label>
      <input value="9" id="contemporary" type="checkbox" name="contemporary">
      <label for="contemporary">Contemporary</label>
      <input value="10" id="cookbooks" type="checkbox" name="cookbooks">
      <label for="cookbooks">Cookbooks</label>
      <input value="11" id="crime" type="checkbox" name="fiction">
      <label for="crime">Crime</label>
      <input value="12" id="fiction" type="checkbox" name="fiction">
      <label for="fiction">Fiction</label>
      <input value="13" id="fantasy" type="checkbox" name="fantasy">
      <label for="fantasy">Fantasy</label>
      <input value="14" id="LGBTQA+" type="checkbox" name="LGBTQA+">
      <label for="LGBTQA+">LGBTQA+</label>
      <input value="15" id="graphic-novels" type="checkbox" name="graphic-novels">
      <label for="graphic-novels">Graphic novels</label>
      <input value="16" id="historical-fiction" type="checkbox" name="historical-fiction">
      <label for="historical-fiction">Historical-Fiction</label>
      <input value="17" id="history" type="checkbox" name="history">
      <label for="history">History</label>
      <input value="18" id="horror" type="checkbox" name="horror">
      <label for="horror">Horror</label>
      <input value="19" id="humor-and-comedy" type="checkbox" name="humor-and-comedy">
      <label for="humor-and-comedy">Humor and Comedy</label>
      <input value="20" id="manga" type="checkbox" name="manga">
      <label for="manga">Manga</label>
      <input value="21" id="memoir" type="checkbox" name="memoir">
      <label for="memoir">Memoir</label>
      <input value="22" id="music" type="checkbox" name="music">
      <label for="music">Music</label>
      <input value="23" id="mystery" type="checkbox" name="mystery">
      <label for="mystery">Mystery</label>
      <input value="24" id="nonfiction" type="checkbox" name="nonfiction">
      <label for="nonfiction">Nonfiction</label>
      <input value="25" id="paranormal" type="checkbox" name="paranormal">
      <label for="paranormal">Paranormal</label>
      <input value="26" id="philosophy" type="checkbox" name="philosophy">
      <label for="philosophy">Philosophy</label>
      <input value="27" id="religion" type="checkbox" name="religion">
      <label for="religion">Religion</label>
      <input value="28" id="poetry" type="checkbox" name="poetry">
      <label for="poetry">Poetry</label>
      <input value="29" id="psychology" type="checkbox" name="psychology">
      <label for="psychology">Psychology</label>
      <input value="30" id="romance" type="checkbox" name="romance">
      <label for="romance">Romance</label>
      <input value="31" id="science" type="checkbox" name="science">
      <label for="science">Science</label>
      <input value="32" id="science-fiction" type="checkbox" name="science-fiction">
      <label for="science-fiction">Science Fiction</label>
      <input value="33" id="self-help" type="checkbox" name="self-help">
      <label for="self-help">Self Help</label>
      <input value="34" id="suspense" type="checkbox" name="suspense">
      <label for="suspense">Suspense</label>
      <input value="35" id="spirituality" type="checkbox" name="spirituality">
      <label for="spirituality">Spirituality</label>
      <input value="36" id="sports" type="checkbox" name="sports">
      <label for="sports">Sports</label>
      <input value="37" id="thriller" type="checkbox" name="thriller">
      <label for="thriller">Thriller</label>
      <input value="38" id="travel" type="checkbox" name="travel">
      <label for="travel">Travel</label>
      <input value="39" id="young-adult" type="checkbox" name="young-adult">
      <label for="young-adult">Young Adult</label>
    <div id="additional-comments" class="centered-column">
      <label for="ac-text">Any questions?</label>
      <textarea id="ac-text" name="ac-text" cols="50" rows="10"></textarea>
    <button type="submit" id="submit" class="centered-column">Launch my Booklist!</button>

              @import "https://fonts.googleapis.com/css?family=Roboto"

body {
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/2267257/tattered-edges-of-book-pages.jpg);
    background-size: cover;
    background-color: #2A2722;
    margin-right: auto;
    margin-left: auto;
    padding: -5vw;
h1 {
    text-align: center;
    font-family: American Typewriter, Helvetica, sans-serif;
    font-size: 16vw;
    color: #2A2722;
    margin-top: 1vh;
    margin-bottom: 1vh;
#intro {
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/2267257/light-brown-leather-texture.jpg);
    background-size: cover;
    margin: 0 10vw 3vh 10vw;
    border: solid;
    border-color: #2A2722;
    border-width: 1vw;
h2 {
    text-align: center;
    font-family: Helvetica, sans-serif;
    font-size: 5vw;
    color: #2A2722;
#banner-vellum {
    background-color: #C8865B;
    opacity: .8;
    margin: 4vw;
    padding: 2vw;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
#description {
    font-size: 14pt;
    margin: 0 5vw 3vh 5vw;
#survey-form {
    background-color: #D4D8DB;
    opacity: .8;
    margin-right: 10vw;
    margin-left: 10vw;    
    border: solid;
    border-color: #2A2722;
    border-width: 1vw;
#personal-info {
    display: grid;
    grid-template-columns: 30vw 30vw;
    grid-gap: 1em;
    margin: 1em auto 0 auto;
    text-align: right;
input:invalid {
    border: 2px dashed red;
input:valid {
    border: 2px solid black;
#radio-buttons {
    display: grid;
    grid-template-columns: 17vw 1em 70px 1em 100px 1em 100px;
    margin-top: 1em;
    margin-left: 20%;

#rb-label {
    text-align: right;
#genre-list {
    display: grid;
    grid-template-columns: 1em auto 1em auto 1em auto;
    margin: 1em 10vw 1em 10vw;
.centered-column {
    display: flex;
    flex-direction: column;
    margin-right: 3vw;
    margin-left: 3vw;
#ac-text {
    border: 2px solid black; 
#submit {
    text-align: center;
    width: 10em;
    margin: 1em auto 1em auto;
    border: 2px solid black;
    background-color: #C8865B;

label {
    margin-left: 5px;

#number {
  width: 405px;

@media (max-width: 1000px) {
    #personal-info {
        display: flex;
        flex-direction: column;
        text-align: left;
        margin-right: 10vw;
        margin-left: 10vw;
@media (max-width: 690px) {
    #radio-buttons {
        display: grid;
        grid-template-columns: 1em auto;
        justify-content: left;
        margin-left: 10vw;
    #rb-label {
        grid-column: 1/3;
    #ebooks {
        grid-column: 1/2;
    #genre-list {
        display: grid;
        grid-template-columns: 1em auto 1em auto;
        margin: 1em 10vw 1em 10vw;
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................