Skip to content

Commit 4b7bc5c

Browse files
Merge pull request #57 from josemoracard/jose2-01-welcome
ejercicios revisados
2 parents 242af1d + 8717f7f commit 4b7bc5c

File tree

27 files changed

+144
-131
lines changed

27 files changed

+144
-131
lines changed

exercises/01-welcome/README.es.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11

22
# `01` Welcome to the world of HTML 😆 !!
33

4-
Hola, mi nombre es [Alejandro Sánchez](http://alesanchezr.com) y soy uno de los fundadores de @4GeeksAcademy (bootcamp de programación). Estos ejercicios y muchos otros tutoriales interactivos se han liberado al público gratuitamente a través del [Sitio web de BreatheCode](www.BreatheCo.de).
4+
Hola, mi nombre es [Alejandro Sánchez](http://alesanchezr.com) y soy uno de los fundadores de @4GeeksAcademy (bootcamp de programación). Estos ejercicios y muchos otros tutoriales interactivos se han liberado al público gratuitamente a través del [Sitio web de 4Geeks](www.4geeks.com).
55

66
Estos ejercicios son para cualquier persona interesada en dominar los formularios HTML. Vamos a abordar los siguientes conceptos:
77

8-
1. Uso de entradas de formulario
8+
1. Uso de entradas/inputs de texto, text areas, entradas/inputs de fecha y entradas/inputs numéricas
99

10-
2. Validaciones de formulario
10+
2. Uso de dropdowns
1111

12-
3. GET vs POST
12+
3. Validaciones de formulario
1313

14-
4. Dar estilos a un formulario
14+
4. GET vs POST
1515

16-
## ➡️ Incremental y ✔️ autoevaluado
16+
5. Dar estilos a un formulario
17+
18+
## ➡️ Incremental & ✔️ Autoevaluado
1719

1820
- He construido los ejercicios de forma gradual, deberías sentir el progreso poco a poco, y con suerte, el incremento de dificultad entre cada ejercicio nunca será demasiado grande para frustrarte.
1921

20-
- Todos los ejercicios han sido calificados automáticamente gracias a [@username](https://github.com/haydavid23)
22+
- Todos los ejercicios han sido calificados automáticamente gracias a [@haydavid23](https://github.com/haydavid23)
2123

22-
Presiona `Next ->` en la parte superior de estas instrucciones para comenzar con el primer ejecicio.
24+
Presiona `Next ->` en la parte superior de estas instrucciones para comenzar con el primer ejercicio.

exercises/01-welcome/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11

22
# `01` Welcome to the world of HTML 😆 !!
33

4-
Hello, my name is [Alejandro Sanchez](http://alesanchezr.com) and I'm one of the founders of @4GeeksAcademy (coding bootcamp).
4+
Hello, my name is [Alejandro Sánchez](http://alesanchezr.com), and I'm one of the founders of @4GeeksAcademy. These exercises and many other interactive tutorials have been open sourced and released to the public for free through the [4Geeks Website](www.4geeks.com).
55

6-
These exercises and many other interactive tutorials have been open sourced and released to the public for free thru the [BreatheCode Website](www.BreatheCo.de).
6+
These exercises are for anyone interested in mastering HTML Forms, we will go over the following concepts:
77

8-
This exercises are for anyone interested in mastering HTML Forms, we will go over the following concepts:
8+
1. Using text inputs, text areas, date inputs and numeric inputs
99

10-
1. Using inputs
10+
2. Using dropdowns
1111

12-
2. Form preventive validations
12+
3. Form preventive validations
1313

14-
3. GET vs POST
14+
4. GET vs POST
1515

16-
4. Styling a form
16+
5. Styling a form
1717

18-
## ➡️ Incremental & Autograded
18+
## ➡️ Incremental & ✔️ Autograded
1919

2020
- I've built the exercises incrementally, you should feel the progress little by little, and hopefully, the difficulty raising between exercises will never be too big to get you frustrated.
2121

22-
- All exercises have been automatically graded thanks to [@username](https://github.com/haydavid23)
22+
- All exercises have been automatically graded thanks to [@haydavid23](https://github.com/haydavid23)
2323

2424
Click the `Next ->` button on the top of these instructions to begin with the first exercise.

exercises/02-hello-world/README.es.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `02` Hola, mundo
1+
# `02` Hello World
22

33
## 📝 Instrucciones:
44

@@ -10,9 +10,8 @@
1010

1111
+ Puedes leer sobre la estructura típica de un sitio web aquí:
1212

13-
https://content.breatheco.de/lesson/what-is-html-learn-html#page-structure
14-
13+
https://4geeks.com/es/lesson/what-is-html-learn-html-es#estructura-de-pgina
1514

1615
## 📎 Nota:
1716

18-
El título aparecerá en el contenido de la página web, se mostrará en la pestaña del navegador.
17+
+ El título aparecerá en el contenido de la página web, se mostrará en la pestaña del navegador.

exercises/02-hello-world/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
1. Add the basic HTML structure for any website (doctype, html, head and body)
66

7-
2. Add "Hello World" inside the title tag of the website.
7+
2. Add "Hello World" inside the `<title>` tag of the website.
88

99
## 💡 Hint:
1010

1111
+ You can read about a typical website structure here:
1212

13-
https://content.breatheco.de/lesson/what-is-html-learn-html#page-structure
13+
https://4geeks.com/lesson/what-is-html-learn-html#page-structure
1414

15-
### 📎 Note:
15+
## 📎 Note:
1616

17-
The title is not going to show on the content of the website, it will show on the browser tab.
17+
+ The title is not going to show on the content of the website, it will show on the browser tab.

exercises/02-hello-world/tests.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('basic HTML structure', function () {
88
beforeEach(() => { document.documentElement.innerHTML = html.toString(); });
99
afterEach(() => { jest.resetModules(); });
1010

11-
it('order of HTML tags', function () {
11+
it('Correct order of HTML tags', function () {
1212
let a = document.documentElement.innerHTML = html.toString()
1313
let b = a.indexOf("<!DOCTYPE html>")
1414
let c = a.indexOf("<html")
@@ -28,15 +28,15 @@ describe('basic HTML structure', function () {
2828
let a = document.documentElement.innerHTML = html.toString()
2929
expect(a.indexOf("<!DOCTYPE html>")).not.toBe(-1)
3030
})
31-
it('<html> tag should exists', function () {
31+
it('<html> tag should exist', function () {
3232
let a = document.documentElement.innerHTML = html.toString()
3333
expect(a.indexOf("<html")).not.toBe(-1)
3434
})
35-
it('<head> tag should exists', function () {
35+
it('<head> tag should exist', function () {
3636
let a = document.documentElement.innerHTML = html.toString()
3737
expect(a.indexOf("<head>")).not.toBe(-1)
3838
})
39-
it('<title> tag exists and the innerHTML needs to be "Hello World"', function () {
39+
it('<title> tag exists and the innerHTML should be "Hello World"', function () {
4040
let a = document.documentElement.innerHTML = html.toString()
4141
expect(a.indexOf("<title>")).not.toBe(-1)
4242
expect(document.querySelector("title").innerHTML).toBe("Hello World")

exercises/03-Type-Radio/README.es.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Para agrupar varios radios en un mismo grupo de opciones debes asignarles el mis
1010

1111
2. Crea otros 2 input `type=radio` para elegir las orientaciones sexuales: Heterosexual o LGTBI.
1212

13-
### 📎 Nota:
13+
## 💡 Pistas:
1414

15-
Prueba tu formulario, sólo se debe poder elegir un género y una orientación sexual.
15+
+ Investiga sobre las etiquetas `<input>` y `<label>`.
16+
17+
+ Prueba tu formulario, solo se debe poder elegir un género y una orientación sexual.

exercises/03-Type-Radio/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# `03` Type Radio
22

3-
The input type=radio is used when the user is not allowed to pick more than one option.
3+
The `input type=radio` is used when the user is not allowed to pick more than one option.
44

5-
To group bind to different radios into the same group of options you need to assign them the same name.
5+
To bind different radios into the same group of options you need to assign them the same name.
66

77
## 📝 Instructions:
88

99
1. Create 2 input `type=radio` to pick the gender values: Male or Female.
1010

1111
2. Create another 2 input `type=radio` to pick sexual orientation: Heterosexual or LGBTI.
1212

13-
### 📎 Note:
13+
## 💡 Hints:
1414

15-
Test your form, only one gender and one sexual orientation should be allowed to pick.
15+
+ Search about `<input>` and `<label>` tags.
16+
17+
+ Test your form, only one gender and one sexual orientation should be allowed to pick.

exercises/03-Type-Radio/tests.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('basic HTML structure', function () {
99
beforeEach(() => { document.documentElement.innerHTML = html.toString(); });
1010
afterEach(() => { jest.resetModules(); });
1111

12-
it('order of HTML tags', function () {
12+
it('Correct order of HTML tags', function () {
1313
let a = document.documentElement.innerHTML = html.toString()
1414
let b = a.indexOf("<!DOCTYPE html>")
1515
let c = a.indexOf("<html")
@@ -25,12 +25,12 @@ describe('basic HTML structure', function () {
2525

2626
})
2727

28-
test("there should be four input elements of type radio", function () {
28+
test("There should be four input elements of type radio", function () {
2929
let inpts = document.querySelectorAll("input[type=radio]")
3030

3131
expect(inpts.length).toEqual(4)
3232
})
33-
test("the radio inputs should have the requested values, aka, Male, Female, Heterosexual, LGBTI", function () {
33+
test("The radio inputs should have the requested values: Male, Female, Heterosexual, LGBTI", function () {
3434
let inpts = document.querySelectorAll("input[type=radio]")
3535
let requestedValues_en = ["Male", "Female", "Heterosexual", "LGBTI"]
3636
let requestedValues_es = ["Masculino", "Femenino", "Heterosexual", "LGTBI"]
@@ -59,7 +59,7 @@ describe('basic HTML structure', function () {
5959
expect(expected).toBeTruthy()
6060
})
6161
})
62-
test("there should only be two unique names, one per pair of radio inputs", function () {
62+
test("There should only be two unique names, one per pair of radio inputs", function () {
6363
let inpts = document.querySelectorAll("input[type=radio]")
6464
let firstName = inpts[0].getAttribute("name")
6565
let secondName = inpts[2].getAttribute("name")
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# `04` Reproducir un simple formulario
1+
# `04` Replicate Simple Form
22

3-
Usando una tabla, replica exactamente este mismo formulario (no te preocupes por los atributos `method` y `action` del formulario):
3+
## 📝 Instrucciones:
44

5-
![Formulario](../../.learn/assets/5xKY0rI.png?raw=true)
5+
1. Usando una tabla, replica exactamente este mismo formulario (no te preocupes por los atributos `method` y `action` del formulario):
6+
7+
![Formulario HTML](../../.learn/assets/5xKY0rI.png?raw=true)
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# `04` Replicate Simple Form
22

3-
Using a table, replicate this exact same form (don't worry about the `method` and `action` attributes of the form):
3+
## 📝 Instructions:
44

5-
![asd](../../.learn/assets/5xKY0rI.png?raw=true)
5+
1. Using a table, replicate this exact same form (don't worry about the `method` and `action` attributes of the form):
6+
7+
![html form](../../.learn/assets/5xKY0rI.png?raw=true)

exercises/05-GET-vs-POST/README.es.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `05` GET vs POST
22

3-
Sigue estos pasos:
3+
## 📝 Instrucciones:
44

55
1. Ejecuta el ejercicio.
66

@@ -20,4 +20,4 @@ https://...whatever...?firstname=value&lastname=value&email=value
2020

2121
7. Envíalo de nuevo.
2222

23-
Ahora la URL es mucho más simple, y los datos recogidos en el formulario están ocultos.
23+
Ahora la URL es mucho más simple, y los datos recogidos en el formulario están ocultos.

exercises/05-GET-vs-POST/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `05` GET vs POST
22

3-
Follow these steps:
3+
## 📝 Instructions:
44

55
1. Run the exercise.
66

@@ -20,4 +20,4 @@ https://...whatever...?firstname=value&lastname=value&email=value
2020

2121
7. Submit again.
2222

23-
Now the URL is a lot more simple, and the data collected from the form is hidden.
23+
Now the URL is a lot more simple, and the data collected from the form is hidden.
Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,32 @@
1-
# `06` Campos, etiquetas y estilos
1+
# `06` Fieldsets, labels and styles
22

3-
Darle estilo de un formulario es aburrido y tedioso, pero si usas ciertas etiquetas, tu vida puede ser más fácil.
3+
Darle estilo a un formulario es aburrido y tedioso, pero si usas ciertas etiquetas, tu vida puede ser más fácil.
44

5-
`<label>`
5+
`<label>`: Una de las cosas recurrentes que debes hacer es agregar una etiqueta `<label>`. Las etiquetas `<label>` se suelen poner junto a un `<input>` y le dicen al usuario qué representa esa entrada/input.
66

7-
Una de las cosas recurrentes que debes hacer es agregar un etiqueta `label`. `label` le dice al usuario final que representa esa entrada/input.
7+
`<fieldset>`: Son ideales para añadir varias entradas en el mismo grupo lógico (por ejemplo, agrupar a los input radio -hombre y mujer- en un conjunto de campos de sexo).
88

9-
`<fieldset>`
9+
`<legend>`: Es el nombre del grupo de campos que se van a mostrar al usuario.
1010

11-
Son ideales para añadir varias entradas en el mismo grupo lógico (por ejemplo, agrupar a los input radio -hombre y mujer- en un conjunto de campos de sexo).
11+
## 📝 Instrucciones:
1212

13-
`<legend>`
14-
15-
Es el nombre del grupo de campos que se va a mostrar al usuario final.
16-
17-
## 📝 Instrucciones
18-
19-
1. Aplica un estilo a esta fuente aplicandándolo al "body":
13+
1. Da estilo al formulario aplicando al `<body>` esta fuente:
2014

2115
```css
2216
font-family: "Lato", sans-serif;
2317
```
2418

25-
2. Elimina los bordes (`border`) y los márgenes (`margin`) de todos los campos.
19+
2. Establece el `display` de la etiqueta `<form>` a `inline-block`.
2620

27-
2. Aplica un relleno (`padding`) de `10px` en la parte superior e inferior de todos los campos (`fieldset`).
21+
3. Elimina los bordes (`border`) y los márgenes (`margin`) de todos los `<fieldset>`.
2822

29-
3. Aplica un relleno (`padding)` de `0px` a la izquierda y a la derecha de todos los campos (`fieldset`).
23+
4. Aplica un relleno (`padding`) de `10px` en la parte superior e inferior y de `0px` a la izquierda y derecha de todos los `<fieldset>`
3024

31-
4. Aplicar un grosor de fuente (`font-weight`) de `800` en todos los campos (`fieldset`).
25+
5. Aplicar un grosor de fuente (`font-weight`) de `800` en todos los `<fieldset>`.
3226

33-
5. Disminuye el grosor de la fuente (`font-weight`) de todas las `label` a `400`.
27+
6. Disminuye el grosor de la fuente (`font-weight`) de todas las `<label>` a `400`.
3428

35-
6. Aplica estas reglas a todas las entradas (inputs) de texto.
29+
7. Aplica estas reglas a todas las entradas (inputs) de texto.
3630

3731
```css
3832
input[type=text] {
@@ -42,7 +36,7 @@ input[type=text] {
4236
}
4337
```
4438

45-
7. Aplica este estilo al botón de envío (submit).
39+
8. Aplica este estilo al botón de envío (submit button).
4640

4741
```css
4842
input[type=submit] {
@@ -55,6 +49,6 @@ input[type=submit] {
5549
}
5650
```
5751

58-
## El resultado debería ser este:
52+
## 💻 Resultado Esperado:
5953

6054
![06-fieldsets-labels-and-styles](../../.learn/assets/NGmLdal.png?raw=true)
Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,32 @@
11
# `06` Fieldsets, labels and styles
22

3-
Styling a form is boring and tedious, but if you use certain tags you life can bbe easier.
3+
Styling a form is boring and tedious, but if you use certain tags, your life can be easier.
44

5-
`<label>`
5+
`<label>`: One of the typical things you need to do is add a "label" to your `<input>`, labels tell the end-user what the input stands for.
66

7-
One of the tipical things you need to do is add a "label" to your input, label's tell the end-user what the input stands for.
7+
`<fieldset>`: They are ideal to add several inputs into the same logical group (for example grouping radios -male and female- into a gender fieldset).
88

9-
`<fieldset>`
9+
`<legend>`: It's the name of the fieldset group that is going to be shown to the end-user.
1010

11-
Are ideal to add several inputs into the same logical group (for example grouping radios -male and female- into a gender fieldset).
11+
## 📝 Instructions:
1212

13-
`<legend>`
14-
15-
Is the name of the fieldset group that is going to be shown to the end-user.
16-
17-
## 📝 Instructions
18-
19-
1. Give a style to this font by aplying to the body:
13+
1. Give style to this form by applying this font to the `<body>`:
2014

2115
```css
2216
font-family: "Lato", sans-serif;
2317
```
2418

25-
2. Remove `borders` and `margins` from all the fieldsets.
19+
2. Set the `display` of the `<form>` tag to `inline-block`.
20+
21+
3. Remove `borders` and `margins` from all the `<fieldset>` tags.
2622

27-
3. Apply a `padding` of `10px` to the top and bottom and a `padding` of `0px` to the left and right to all the fieldsets.
23+
4. Apply a `padding` of `10px` to the top and bottom and a `padding` of `0px` to the left and right of all the `<fieldset>` tags.
2824

29-
4. Apply a `font-weight` of `800` to all the fieldsets.
25+
5. Apply a `font-weight` of `800` to all the `<fieldset>` tags.
3026

31-
5. Decrease the `font-weight` off all the lable's to `400`.
27+
6. Decrease the `font-weight` of all the `<label>` tags to `400`.
3228

33-
6. Apply these rules to all the text inputs:
29+
7. Apply these rules to all the text inputs:
3430

3531
```css
3632
input[type=text] {
@@ -40,7 +36,7 @@ input[type=text] {
4036
}
4137
```
4238

43-
7. Apply this style to the submit button
39+
8. Apply this style to the submit button:
4440

4541
```css
4642
input[type=submit] {
@@ -53,6 +49,6 @@ input[type=submit] {
5349
}
5450
```
5551

56-
## The result should look like this:
52+
## 💻 Expected Result:
5753

5854
![06-fieldsets-labels-and-styles](../../.learn/assets/NGmLdal.png?raw=true)

0 commit comments

Comments
 (0)