Thanks to visit codestin.com
Credit goes to www.scribd.com

100% found this document useful (1 vote)
544 views6 pages

Survey Form

The document describes building a survey form with various input fields like text, email, number, dropdown, radio buttons, checkboxes. It includes 17 user stories describing the different form elements to include with proper labels, placeholders, validation, and a submit button. The form is to be made with HTML, CSS and JavaScript and pass all provided tests.

Uploaded by

jensi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
544 views6 pages

Survey Form

The document describes building a survey form with various input fields like text, email, number, dropdown, radio buttons, checkboxes. It includes 17 user stories describing the different form elements to include with proper labels, placeholders, validation, and a submit button. The form is to be made with HTML, CSS and JavaScript and pass all provided tests.

Uploaded by

jensi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 6

<!

--Responsive Web Design Projects - Build a Survey Form


Objective: Build a CodePen.io app that is functionally similar to this:
https://codepen.io/freeCodeCamp/full/VPaoNP.

Fulfill the below user stories and get all of the tests to pass. Give it your own personal style.

You can use HTML, JavaScript, and CSS to complete this project. Plain CSS is recommended
because that is what the lessons have covered so far and you should get some practice with plain
CSS. You can use Bootstrap or SASS if you choose. Additional technologies (just for example
jQuery, React, Angular, or Vue) are not recommended for this project, and using them is at your
own risk. Other projects will give you a chance to work with different technology stacks like React.
We will accept and try to fix all issue reports that use the suggested technology stack for this
project. Happy coding!

User Story #1: I can see a title with id="title" in H1 sized text.

User Story #2: I can see a short explanation with id="description" in P sized text.

User Story #3: I can see a form with id="survey-form".

User Story #4: Inside the form element, I am required to enter my name in a field with id="name".

User Story #5: Inside the form element, I am required to enter an email in a field with id="email".

User Story #6: If I enter an email that is not formatted correctly, I will see an HTML5 validation
error.

User Story #7: Inside the form, I can enter a number in a field with id="number".

User Story #8: If I enter non-numbers in the number input, I will see an HTML5 validation error.

User Story #9: If I enter numbers outside the range of the number input, which are defined by the
min and max attributes, I will see an HTML5 validation error.

User Story #10: For the name, email, and number input fields inside the form I can see
corresponding labels that describe the purpose of each field with the following ids: id="name-
label", id="email-label", and id="number-label".

User Story #11: For the name, email, and number input fields, I can see placeholder text that gives
me a description or instructions for each field.

User Story #12: Inside the form element, I can select an option from a dropdown that has a
corresponding id="dropdown".

User Story #13: Inside the form element, I can select a field from one or more groups of radio
buttons. Each group should be grouped using the name attribute.

User Story #14: Inside the form element, I can select several fields from a series of checkboxes,
each of which must have a value attribute.
User Story #15: Inside the form element, I am presented with a textarea at the end for additional
comments.

User Story #16: Inside the form element, I am presented with a button with id="submit" to submit
all my inputs.

You can build your project by forking this CodePen pen. Or you can use this CDN link to run the
tests in any environment you like: https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js

Once you're done, submit the URL to your working project with all its tests passing.
-->
<!-- declares form as a grid -->
<div class="container">
<!--lets do it-->

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

<!-- User Story #1: I can see a title with id="title" in H1 sized text. -->

<h1 id="title" class="text-center"> Título </h1>

<!-- User Story #2: I can see a short explanation with id="description" in P sized text. -->
<p id="description" class="text-center"> Descripción </p>
</head>

<!--. I can see a <form> with id="survey-form" -->

<form id="survey-form" class="text-center"> Formulario


<form id="survey-form" class=
<!-- User Story #4: Inside the form element, I am required to enter my name in a field with
id="name". -->

<div class="form-group">
<label id="name-label" for="name">Name</label>
<input
type="text"
name="name"
id="name"
class="form-control"
placeholder="Escribe tu nombre"
required
/>
</div>

<!--User Story #5: Inside the form element, I am required to enter an email in a field with
id="email".-->
<div class="form-group">
<label id="email-label" for="Email">Email</label>
<input
type="email"
name="email"
id="email"
class="form-control"
placeholder ="aadsdsad"
required

/>
</div>

<div class="form-group">
<label id="number-label" for="number">Edad</label>
<input
type="number"
name="Edad"
min="10"
max="99"
id="number"
class="form-control"
placeholder ="coloque su edad"
required
/>
</div>

<!--
User Story #12: Inside the form element, I can select an option from a dropdown that has a
corresponding id="dropdown".-->
<div class="form-group">
<p>¿Cuál opción describe mejor su rol?</p>
<select id="dropdown" name="role" class="form-control" required>
<option disabled selected value>Seleccione el rol actual</option>
<option value="student">Estudiante</option>
<option value="job">Empleo tiempo completo</option>
<option value="learner">
Aprendiz tiempo completo</option>
<option value="preferNo">Prefiero no decirlo</option>
<option value="other">Otro</option>
</select>
</div>

<div class="form-group">
<p>¿Recomendaría freeCodeCamp a un amigo?</p>
<label>
<input
name="user-recommend"
value="definitely"
type="radio"
class="input-radio"
checked
/>Definitivamente</label
>
<label>
<input
name="user-recommend"
value="maybe"
type="radio"
class="input-radio"
/>Puede ser</label
>

<label
><input
name="user-recommend"
value="not-sure"
type="radio"
class="input-radio"
/>No estoy seguro</label
>
</div>

<div class="form-group">
<p> ¿Qué es lo que más le gusta de freecodecamp?
</p>
<select id="most-like" name="mostLike" class="form-control" required>
<option disabled selected value>Seleccione una opción</option>
<option value="challenges">Retos</option>
<option value="projects">Proyectos</option>
<option value="community">Comunidad</option>
<option value="openSource">Código abierto</option>
</select>
</div>

<div class="form-group">
<p>
¿Qué aspecto sugiere mejorar?
<span class="clue">(Seleccionar todas las que apliquen)</span>
</p>

<label
><input
name="prefer"
value="front-end-projects"
type="checkbox"
class="input-checkbox"
/>Proyectos Front-end </label
>
<label>
<input
name="prefer"
value="back-end-projects"
type="checkbox"
class="input-checkbox"
/>Proyectos Back-end </label
>
<label
><input
name="prefer"
value="data-visualization"
type="checkbox"
class="input-checkbox"
/>Visualización de datos</label
>
<label
><input
name="prefer"
value="challenges"
type="checkbox"
class="input-checkbox"
/>Retos</label
>
<label
><input
name="prefer"
value="open-source-community"
type="checkbox"
class="input-checkbox"
/>Comunidad de código abierto</label
>
<label
><input
name="prefer"
value="gitter-help-rooms"
type="checkbox"
class="input-checkbox"
/>Gitter ayuda</label
>
<label
><input
name="prefer"
value="videos"
type="checkbox"
class="input-checkbox"
/>Videos</label
>
<label
><input
name="prefer"
value="city-meetups"
type="checkbox"
class="input-checkbox"
/> Meetups en la ciudad</label
>
<label
><input
name="prefer"
value="wiki"
type="checkbox"
class="input-checkbox"
/>Wiki</label
>
<label
><input
name="prefer"
value="forum"
type="checkbox"
class="input-checkbox"
/>Foros</label
>
<label
><input
name="prefer"
value="additional-courses"
type="checkbox"
class="input-checkbox"
/>Additional Courses</label
>
</div>

<div class="form-group">
<p>algún comentario o sugerencia</p>
<textarea
id="comments"
class="input-textarea"
name="comment"
placeholder="Enter your comment here..."
></textarea>
</div>

<div class="form-group">
<button type="submit" id="submit" class="submit-button">
Submit
</button>
</div>
</form>
</div>
COLOCAR EN EL CCS
CSS
.text-center {
text-align: center;
}

You might also like