--- id: bad87fee1348bd9aedf08820 title: Turn an Image into a Link challengeType: 0 videoUrl: '' localeTitle: Transforme uma imagem em um link --- ## Description
Você pode criar elementos em links aninhando-os em a elemento. Aninhe sua imagem em a elemento. Aqui está um exemplo: <a href="#"><img src="https://bit.ly/fcc-running-cats" alt="Three kittens running towards the camera."></a> Lembre-se de usar # como seu a elemento href propriedade, a fim de transformá-lo em um link morto.
## Instructions
Coloque o elemento de imagem existente dentro de um elemento de âncora. Depois de fazer isso, passe o mouse sobre sua imagem com o cursor. O ponteiro normal do cursor deve se tornar o ponteiro de clique do link. A foto agora é um link.
## Tests
```yml tests: - text: Aninhe o elemento img existente em a elemento. testString: 'assert($("a").children("img").length > 0, "Nest the existing img element within an a element.");' - text: 'Sua a elemento deve ser um link morto com um href atributo definido como # .' testString: 'assert(new RegExp("#").test($("a").children("img").parent().attr("href")), "Your a element should be a dead link with a href attribute set to #.");' - text: Certifique-se de cada um de seus a elementos tem uma marca de fechamento. testString: 'assert(code.match(/<\/a>/g) && code.match(//g).length === code.match(/a elements has a closing tag.");' ```
## Challenge Seed
```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

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