--- id: bad87fee1348bd9aedf08816 title: Link to External Pages with Anchor Elements challengeType: 0 videoUrl: '' localeTitle: Link para páginas externas com elementos âncora --- ## Description
Você pode usar elementos de anchor para vincular a conteúdo fora da sua página da web. anchor elementos anchor precisam de um endereço da Web de destino chamado atributo href . Eles também precisam de texto âncora. Aqui está um exemplo: <a href="https://freecodecamp.org">this links to freecodecamp.org</a> Então o seu navegador irá exibir o texto "este links para freecodecamp.org" como um link que você pode clicar. E esse link levará você ao endereço da Web https://www.freecodecamp.org .
## Instructions
Crie a elemento que vincule a http://freecatphotoapp.com e tenha "cat photos" como anchor text .
## Tests
```yml tests: - text: Sua a elemento deve ter o anchor text de "fotos do gato". testString: 'assert((/cat photos/gi).test($("a").text()), "Your a element should have the anchor text of "cat photos".");' - text: 'Você precisa de a elemento que http://freecatphotoapp .com para 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: Verifique se o seu a elemento tem uma marca de fechamento. 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 ```