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

              
                <!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8" lang="es">
  <link rel="stylesheet" href="style.css">
  <title>FCC: Formulario de Encuesta</title>
  <link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">

</head>

<body>
  <!-- titulos -->
  <div id="title">
    <h1>Formulario de Encuesta de freeCodeCamp</h1>
    <p class="description">Gracias por tomarse el tiempo de ayudarnos a mejorar la plataforma</p>
  </div>

  <div class="survey-form">
    <div class="form-group">
      <label for="name" id="name-label">Nombre</label>
      <input type="name" name="name" id="name" class="form-control" placeholder="Ingrese su nombre" required><br>

    </div>

    <div class="form-group">
      <label for="last-name" id="last_name-label">Apellido</label>
      <input type="lastname" name="last-name" id="last-name" class="form-control" placeholder="Ingrese su apellido" required><br>
    </div>

    <div class="form-group">
      <label for="email" id="email-label">Email</label>
      <input type="email" name="mail" id="mail" class="form-control" placeholder="Ingrese su email" required><br>
    </div>

    <div class="form-group">
      <label for="age">Edad</label>
      <input type="text" name="age" id="age" class="form-control" placeholder="Ingrese su edad" required><br>
    </div>

    <div class="form-group">
      <p>Que rol lo describe mejor?</p>
      <select name="role" id="role" class="form-control" required>
        <option disabled selected value>Seleccione el rol que lo describe mejor</option>
        <option value="student">Estudiante</option>
        <option value="full-time-job">Trabajo a tiempo completo</option>
        <option value="full-time-learner">Aprendiz a tiempo completo</option>
        <option value="prefer-no-say">Prefiero no decirlo</option>
        <option value="others">Otros</option>
      </select>
    </div>
    <div class="form-group">
      <p>Recomendaria usted freeCodeCamp a un amigo?</p>
      <label for="user-recommend">
        <input type="radio" name="user-recommend" id="definitivamente" class="input-radio" value="definitivamente" checked>Definitivamente
      </label><br>
      <label for="maybe">
        <input type="radio" name="user-recommend" id="maybe" value="maybe" class="input-radio">Quizas
      </label><br>
      <label for="not-sure">
        <input type="radio" name="user-recommend" id="not-sure" class="input-radio" value="not-sure">No estoy seguro
      </label><br>
    </div>
    <div class="form-group">
      <p>Cual es su caracteristica favorita de freeCodeCamp?</p><br>
      <select name="feature-favorite" class="form-control">
        <option disabled selected value>Seleccione una opcion</option>
        <option value="challenges">Desafios</option>
        <option value="projects">Proyectos</option>
        <option value="community">Comunidad</option>
        <option value="open-source">Codigo abierto</option>
      </select>
    </div>
    <div class="form-group">
      <p>Que le gustaria ver mejorado?</p>
      <span class="clue">(Marque segun corresponda)</span><br>

      <label>
        <input type="checkbox" name="prefer" class="input-checkbox" value="front-end-projects">Front end projects
      </label><br>

      <label>
        <input type="checkbox" name="prefer" class="input-checkbox" value="back-end-projects">Back end projects
      </label><br>

      <label>
        <input type="checkbox" name="prefer" class="input-checkbox" value="data-visualization">Data visualization
      </label><br>

      <label>
        <input type="checkbox" name="prefer" class="input-checkbox" value="challenges">Challenges
      </label><br>

      <label>
        <input type="checkbox" name="prefer" class="input-checkbox" value="open-source-community">Open source community
      </label><br>

      <label>
        <input type="checkbox" name="prefer" class="input-checkbox" value="gitter-help-rooms">Gitter help rooms
      </label><br>

      <label>
        <input type="checkbox" name="prefer" class="input-checkbox" value="videos">Videos
      </label><br>

      <label>
        <input type="checkbox" name="prefer" class="input-checkbox" value="city-meetups">City meetups
      </label><br>

      <label>
        <input type="checkbox" name="prefer" class="input-checkbox" value="wiki">Wiki
      </label><br>

      <label>
        <input type="checkbox" name="prefer" class="input-checkbox" value="forum">Forum
      </label><br>

      <label>
        <input type="checkbox" name="prefer" class="input-checkbox" value="additional-courser">Additional courses
      </label><br>

    </div>
    <div class="form-group">
      <p>Comentarios y sugerencias</p>
      <textarea name="comments" class="text-area" cols="30" rows="10" placeholder="Ingrese aqui sus comentarios y sugerencias"></textarea>
    </div>

    <div class="form-group">
      <button class="submit-button">Enviar</button>
    </div>
  </div>

</body>
<footer>

</footer>

</html>
              
            
!

CSS

              
                body, html {
    background-image: url("https://agilutions.com/wp-content/uploads/2018/04/team-coding.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
    font-weight: 400;
    line-height: 1.4;
    font-family: Poppins, sans-serif;
    text-align: center;
}
h1, p, label {
    color: whitesmoke;  
    font-size: 1.5rem;
}
    p{
        font-size: 1.4rem;
    }
}
.description {
    font-style: italic;
}
.survey-form {
    width:50%;
    align-content: center;
    display: block;
    margin: auto;
    background-color: #6b4f2c;
    opacity: 1;
    padding: 2.5rem 0.625rem;
    border-radius: 0.25rem;
    position: relative;
    opacity: 0.9;
}
label {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }
  input,
button,
select,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  width: fit-content;
}
.clue {
    margin-left: 0.25rem;
    font-size: 0.9rem;
    color: #e4e4e4;
  }
 
  .form-control {
    display: inline-block;
    opacity: 1;
    width: 90%;
    height: 2.375rem;
    padding: 0.375rem 0.75rem;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;

  }
  .form-control:focus {
    border-color: #6b4f2c;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }
  
  .input-radio,
  .input-checkbox {
    display: inline-block;
    margin-right: 0.625rem;
    min-height: 1.25rem;
    min-width: 1.25rem;
  }
  .text-area {
    min-height: 80%;
    width: 87%;
    padding: 0.625rem;
    resize: vertical;

  }
  
  .submit-button {
    display: inline-block;
    width: 90%;
    padding: 0.75rem;
    background: transparent;
    color: inherit;
    border-radius: 2px;
    cursor: pointer;
    border: none;
    background-color: white;
  }

              
            
!

JS

              
                
              
            
!
999px

Console