Professional Documents
Culture Documents
Survey Form HTML
Survey Form HTML
Survey Form HTML
<head>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<meta charset="utf-8">
<title>Encuesta de Ricardo</title>
</head>
<body>
<div id="formarea">
<div>
<br>
</div>
<div>
</div>
<div>
<div>
</div>
<div id="dropdown">
<br>
<label id="Gobernador-renuncia" for="Gobernador Renuncia">Debe renunciar Ricardo
Rosello?</label>
<select required>
<option>Debe renunciar!</option>
</select>
</div>
<div id="checkboxes">
</div>
<br>
<br>
</label>
<br>
</label>
<br>
</label>
<label>Home alone</label>
<br>
</label>
</div>
<div>
<br>
<label for="beans">There are a total of 64 matches to be played. How many total goals do you think
will be scored?</label>
<span class="goalcount"></span>
</div>
<br>
<div id="radio">
VAR (video assisted referees) will be used at this World Cup. What is your opinion about this:
<br>
<br>
<label>Great idea
</label>
<br>
<label>Terrible idea
</label>
<br>
<label>I'll tell you afterwards
</label>
</div>
<div>
</div>
<div>
</div>
<div class="button">
</div>
</div>
</form>
</body>
</html>
Css
body {
font-family: verdana;
background-color: beige;
#title {
text-align: center;
}
form {
margin: 0 auto;
width: 950px;
padding: 1em;
border-radius: 1em;
#description {
text-align: center;
margin-top: 1em;
label {
/* To make sure that all labels have the same size and are properly aligned */
display: inline-block;
width: 350px;
text-align: right;
input,
textarea {
/* To make sure that all text fields have the same font settings
width: 300px;
box-sizing: border-box;
input:focus,
textarea:focus {
border-color: #000;
textarea {
vertical-align: top;
height: 5em;
.button {
button {
/* This extra margin represent roughly the same space as the space
margin-left: 0.5em;
#radio {
Java
count.textContent = goals.value;
goals.oninput = function() {
count.textContent = goals.value;
};