--- id: bad87fee1348bd9aedf08719 title: Use Abbreviated Hex Code challengeType: 0 videoUrl: '' localeTitle: Use o código hexadecimal abreviado --- ## Description
Muitas pessoas se sentem oprimidas pelas possibilidades de mais de 16 milhões de cores. E é difícil lembrar o código hexadecimal. Felizmente, você pode encurtá-lo. Por exemplo, o código hexadecimal vermelho #FF0000 pode ser encurtado para #F00 . Essa forma abreviada fornece um dígito para vermelho, um dígito para verde e um dígito para azul. Isso reduz o número total de cores possíveis para cerca de 4.000. Mas os navegadores interpretarão #FF0000 e #F00 exatamente como a mesma cor.
## Instructions
Vá em frente, tente usar os códigos hexadecimais abreviados para colorir os elementos corretos.
Cor Código hexadecimal curto
Ciano #0FF
Verde #0F0
Vermelho #F00
Fúcsia #F0F
## Tests
```yml tests: - text: Dê seu elemento h1 com o texto I am red! a color vermelha. 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 o hex code abreviado para a cor vermelha em vez do 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: Dê seu elemento h1 com o texto que I am green! a 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 o hex code abreviado para a cor verde em vez do 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: Dê seu elemento h1 com o texto que I am cyan! a color ciano. 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 o hex code abreviado para o ciano da cor em vez do 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: Dê seu elemento h1 com o texto que I am fuchsia! a color fúcsia. testString: 'assert($(".fuchsia-text").css("color") === "rgb(255, 0, 255)", "Give your h1 element with the text I am fuchsia! the color fuchsia.");' - text: 'Use o hex code abreviado para a cor fúcsia em vez do 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.");' ```
## Challenge Seed
```html

I am red!

I am fuchsia!

I am cyan!

I am green!

```
## Solution
```js // solution required ```