Files
freeCodeCamp/curriculum/challenges/spanish/01-responsive-web-design/basic-css/style-the-html-body-element.spanish.md
S.Hale 3920b7c4ce Corrected capitalization, corrected to American spellings and typos (#30685)
* Translate challenge subtitles and example challenge text to Spanish

* Corrected errors in syntax and punctuation

* Multiple corrections of it/s to its plus other grammar corrections

* Correction and added paragraph to CSS Flex article

* Corrected my own typo

* Corrected capitalization, American spellings and typos
2018-11-07 10:34:13 -05:00

1.7 KiB

id, title, challengeType, videoUrl, localeTitle
id title challengeType videoUrl localeTitle
bad87fee1348bd9aedf08736 Style the HTML Body Element 0 Estilo del elemento HTML del cuerpo

Descripción

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

Instrucciones

Podemos probar que el elemento del body existe aquí dándole un background-color de background-color de negro. Podemos hacer esto agregando lo siguiente a nuestro elemento de style :
cuerpo {
color de fondo: negro;
}
=======

Pruebas

tests:
  - text: Dale a tu elemento del <code>body</code> el <code>background-color</code> de <code>background-color</code> del 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 para abrir y cerrar los corchetes.
    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