Skip to content

Commit 7ca544a

Browse files
Merge pull request 4GeeksAcademy#95 from josemoracard/jose10-04-class-selector
fixed text 04-class-selector
2 parents 538a957 + fde4d3c commit 7ca544a

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

exercises/04-Class-Selector/README.es.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# `04` El selector de clase
22

3-
Hay muchas formas de seleccionar los elementos HTML para aplicarles estilos, hasta ahora solo hemos usado la etiqueta selector, hablemos sobre el selector `.class`:
3+
Hay muchas formas de seleccionar los elementos HTML para aplicarles estilos, hasta ahora solo hemos usado los selectores de etiquetas, así que hablemos sobre el selector `.class`:
44

55
## Selector de clase:
66

77
Es el selector de CSS más popular, probablemente lo usarás cada 5 minutos.
88

9-
Usa la propiedad de clase del elemento HTML para seleccionarlo. La reglas de estilo se aplicarán a todos los elementos con la misma clase.
9+
Usa la propiedad `class` del elemento HTML para seleccionarlo. Las reglas de estilo se aplicarán a todos los elementos con la misma clase.
1010

1111
```css
1212
.small{
1313
font-size: 9px;
1414
}
1515
```
16-
*Cualquier etiqueta html con `class="small"` tendrá un font-size de `9px`.*
16+
*Cualquier etiqueta HTML con `class="small"` tendrá un font-size de `9px`.*
1717

1818
## 📝 Instrucciones:
1919

exercises/04-Class-Selector/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ tutorial: "https://www.youtube.com/watch?v=RffCSMXgWFc"
44

55
# `04` Class Selector
66

7-
There are many ways to select HTML elements to apply styles to them, so far we have only use the `tag` selector, lets talk about the `.class` selector:
7+
There are many ways to select HTML elements to apply styles to them, so far we have only used the `tag` selector, so let's talk about the `.class` selector:
88

99
## `.class` Selector
1010

11-
It is the most popular css selector, you will probably use it every 5 minutes.
11+
It is the most popular CSS selector, you will probably use it every 5 minutes.
1212

1313
Use the class property of the HTML element to select it. Styling rules will apply to all elements with the same class value
1414

@@ -24,6 +24,6 @@ Use the class property of the HTML element to select it. Styling rules will appl
2424

2525
Right now there is a class selected on the CSS that is called `.b-blue`.
2626

27-
Please apply that class to both of the `<p>` tags in HTML.
27+
Please apply that class to both of the HTML `<p>` tags.
2828

2929

exercises/04-Class-Selector/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("Both p tags should have a blue background", () => {
2020
expect(title).toBe('04 Class selector')
2121
});
2222

23-
test("The body tag should not contains any inline style", () => {
23+
test("The body tag should not contain any inline style", () => {
2424
document.querySelector(
2525
"head"
2626
).innerHTML = `<style>${css.toString()}</style>`;
@@ -31,7 +31,7 @@ describe("Both p tags should have a blue background", () => {
3131
test("There should be two p tags", () => {
3232
expect(p.length).toBe(2)
3333
});
34-
test("Both p tags should have a class name 'b-blue' without the quotation marks", () => {
34+
test("Both p tags should have a class name 'b-blue'", () => {
3535
p.forEach(e=>{
3636
let eClass = e.getAttribute("class");
3737
expect(eClass).toBe("b-blue")

0 commit comments

Comments
 (0)