#FF0000 puede #FF0000 a #F00 . Esta forma abreviada proporciona un dígito para el rojo, un dígito para el verde y un dígito para el azul. Esto reduce el número total de colores posibles a alrededor de 4.000. Pero los navegadores interpretarán #FF0000 y #F00 como exactamente del mismo color. | Color | Código hexadecimal corto |
|---|---|
| Cian | #0FF |
| Verde | #0F0 |
| rojo | #F00 |
| Fucsia | #F0F |
h1 con el texto I am red! El color rojo.
testString: 'assert($(".red-text").css("color") === "rgb(255, 0, 0)", "Give your h1 element with the text I am red! the color red.");'
- text: 'Use el hex code abreviado para el color rojo en lugar del código hexadecimal #FF0000 .'
testString: 'assert(code.match(/\.red-text\s*?{\s*?color:\s*?#F00\s*?;\s*?}/gi), "Use the abbreviate hex code for the color red instead of the hex code #FF0000.");'
- text: ¡Da tu elemento h1 con el texto I am green! El color verde.
testString: 'assert($(".green-text").css("color") === "rgb(0, 255, 0)", "Give your h1 element with the text I am green! the color green.");'
- text: 'Use el hex code abreviado para el color verde en lugar del código hexadecimal #00FF00 .'
testString: 'assert(code.match(/\.green-text\s*?{\s*?color:\s*?#0F0\s*?;\s*?}/gi), "Use the abbreviated hex code for the color green instead of the hex code #00FF00.");'
- text: ¡Da tu elemento h1 con el texto I am cyan! El color cian.
testString: 'assert($(".cyan-text").css("color") === "rgb(0, 255, 255)", "Give your h1 element with the text I am cyan! the color cyan.");'
- text: 'Use el hex code abreviado para el color cian en lugar del código hexadecimal #00FFFF .'
testString: 'assert(code.match(/\.cyan-text\s*?{\s*?color:\s*?#0FF\s*?;\s*?}/gi), "Use the abbreviated hex code for the color cyan instead of the hex code #00FFFF.");'
- text: ¡Da tu elemento h1 con el texto I am fuchsia! El color fucsia.
testString: 'assert($(".fuchsia-text").css("color") === "rgb(255, 0, 255)", "Give your h1 element with the text I am fuchsia! the color fuchsia.");'
- text: 'Utilice el hex code abreviado para el color fucsia en lugar del código hexadecimal #FF00FF .'
testString: 'assert(code.match(/\.fuchsia-text\s*?{\s*?color:\s*?#F0F\s*?;\s*?}/gi), "Use the abbreviated hex code for the color fuchsia instead of the hex code #FF00FF.");'
```