--- id: bad87fee1348bd9aedf08816 title: Link to External Pages with Anchor Elements challengeType: 0 videoUrl: '' localeTitle: Enlace a páginas externas con elementos de anclaje --- ## Description
Puede usar elementos de anclaje anchor para vincular contenido fuera de su página web. los elementos de anclaje anchor necesitan una dirección web de destino denominada atributo href . También necesitara agregar texto al elemento de anclaje. Aquí hay un ejemplo: <a href="https://freecodecamp.org">this links to freecodecamp.org</a> Luego, su navegador mostrará el texto "este enlace a freecodecamp.org" como un enlace en el que puede hacer clic. Y ese enlace lo llevará a la dirección web https://www.freecodecamp.org .
## Instructions
Crear un elemento de anclaje a que une a http://freecatphotoapp.com y tiene "fotos de gatos" como su texto de anclaje anchor text .
## Tests
```yml tests: - text: Su a elemento debe tener el anchor text de fotos "gato". testString: 'assert((/cat photos/gi).test($("a").text()), "Your a element should have the anchor text of "cat photos".");' - text: 'Es necesario un a elemento que une a http://freecatphotoapp .com' testString: 'assert(/http:\/\/(www\.)?freecatphotoapp\.com/gi.test($("a").attr("href")), "You need an a element that links to http://freecatphotoapp.com");' - text: Asegúrese de que su a elemento tiene una etiqueta de cierre. testString: 'assert(code.match(/<\/a>/g) && code.match(/<\/a>/g).length === code.match(/a element has a closing tag.");' ```
## Challenge Seed
```html

CatPhotoApp

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 ```