Files
freeCodeCamp/curriculum/challenges/spanish/01-responsive-web-design/basic-css/style-the-html-body-element.spanish.md
Sebastian Alcantara 54bcc6b0ce Made some fixes on the translation of style-the-html-body-element.spanish.md (#27577)
* 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!
2019-03-11 20:23:35 +01:00

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

Ahora comencemos de nuevo y hablemos de la herencia CSS. Cada página HTML tiene un elemento body .

Instrucciones

Podemos probar que el elemento 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