* Changed back to english the CSS code of style-the-html-body-element.spanish.md and made translation corrections * Additional translation fixes on style-the-html-body-element.spanish.md Noticed some more things to fix just after I made the first commit, sorry!
1.7 KiB
1.7 KiB
id, title, challengeType, videoUrl, localeTitle
| id | title | challengeType | videoUrl | localeTitle |
|---|---|---|---|---|
| bad87fee1348bd9aedf08736 | Style the HTML Body Element | 0 | Dele estilo al elemento Body del HTML |
Descripción
body . Instrucciones
body existe aquí dándole un background-color de color negro. Podemos hacer esto agregando lo siguiente a nuestro elemento style : body {
background-color: black;
}
Pruebas
tests:
- text: Dale a tu elemento <code>body</code> el <code>background-color</code> <code>background-color</code> negro.
testString: 'assert($("body").css("background-color") === "rgb(0, 0, 0)", "Give your <code>body</code> element the <code>background-color</code> of black.");'
- text: Asegúrese de que su regla de CSS tenga el formato correcto, con corchetes de apertura y cierre.
testString: 'assert(code.match(/<style>\s*body\s*\{\s*background.*\s*:\s*.*;\s*\}\s*<\/style>/i), "Make sure your CSS rule is properly formatted with both opening and closing curly brackets.");'
- text: Asegúrese de que su regla de CSS termina con un punto y coma.
testString: 'assert(code.match(/<style>\s*body\s*\{\s*background.*\s*:\s*.*;\s*\}\s*<\/style>/i), "Make sure your CSS rule ends with a semi-colon.");'
Challenge Seed
<style>
</style>
Solución
// solution required