--- id: bad87fee1348bd9aedf08820 title: Turn an Image into a Link challengeType: 0 videoUrl: '' localeTitle: Convertir una imagen en un enlace --- ## Description
Puede convertir los elementos en enlaces anidandolos dentro de un elemento a. Anide su imagen dentro de un elemento a. Aquí hay un ejemplo: <a href="#"><img src="https://bit.ly/fcc-running-cats" alt="Three kittens running towards the camera."></a> Recuerda usar # en la propiedad href de tu elemento a para convertirlo en un enlace muerto.
## Instructions
Coloque el elemento de imagen existente dentro de un elemento de anclaje. Una vez que hayas hecho esto, desplázate sobre tu imagen con el cursor. El puntero normal de su cursor debe convertirse en el puntero para hacer clic en el enlace. La foto es ahora un enlace.
## Tests
```yml tests: - text: Nido el vigente img elemento dentro de un a elemento. testString: 'assert($("a").children("img").length > 0, "Nest the existing img element within an a element.");' - text: 'Su a elemento debe ser un vínculo roto con un href atributo establecido en # .' 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: Asegúrese de que cada uno de sus a elementos tiene una etiqueta de cierre. 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 ```