--- id: bad87fee1348bd9aede08817 title: Nest an Anchor Element within a Paragraph challengeType: 0 videoUrl: '' localeTitle: Aninhar um elemento âncora dentro de um parágrafo --- ## Description
Você pode aninhar links dentro de outros elementos de texto.
<p>
Aqui está um <a target="_blank" href="http://freecodecamp.org"> link para freecodecamp.org </a> para você seguir.
</ p>
Vamos detalhar o exemplo: o texto normal é encapsulado no elemento p :
<p> Here's a ... for you to follow. </p> Em seguida, o elemento anchor <a> (que requer uma tag de fechamento </a> ):
<a> ... </a> target é um atributo de marca de âncora que especifica onde abrir o link e o valor "_blank" especifica para abrir o link em uma nova guia href é um atributo de marca de âncora que contém o endereço de URL de a ligação:
<a href="http://freecodecamp.org"> ... </a> O texto "link para freecodecamp.org" , dentro do elemento anchor text chamado anchor text , exibirá um link para clicar:
<a href=" ... ">link to freecodecamp.org</a> A saída final do exemplo ficará assim:

Aqui está um link para freecodecamp.org para você seguir.

## Instructions
Agora ninho sua existente a elemento dentro de um novo p elemento (logo após a existente main elemento). O novo parágrafo deve ter o texto "Visualizar mais fotos de gatos", em que "fotos de gatos" é um link, e o restante do texto é texto simples.
## Tests
```yml tests: - text: 'Você precisa de a elemento que vincule a "http://freecatphotoapp.com".' testString: 'assert(($("a[href=\"http://freecatphotoapp.com\"]").length > 0 || $("a[href=\"http://www.freecatphotoapp.com\"]").length > 0), "You need an a element that links to "http://freecatphotoapp.com".");' - text: Sua a elemento deve ter o texto âncora de "fotos do gato" testString: 'assert($("a").text().match(/cat\sphotos/gi), "Your a element should have the anchor text of "cat photos"");' - text: Criar um novo p elemento em torno de seu a elemento. Deve haver pelo menos três tags p no seu código HTML. testString: 'assert($("p") && $("p").length > 2, "Create a new p element around your a element. There should be at least 3 total p tags in your HTML code.");' - text: Seu a elemento deve ser aninhado em seu novo elemento p . testString: 'assert(($("a[href=\"http://freecatphotoapp.com\"]").parent().is("p") || $("a[href=\"http://www.freecatphotoapp.com\"]").parent().is("p")), "Your a element should be nested within your new p element.");' - text: Seu elemento p deve ter o texto "Ver mais" (com um espaço após ele). testString: 'assert(($("a[href=\"http://freecatphotoapp.com\"]").parent().text().match(/View\smore\s/gi) || $("a[href=\"http://www.freecatphotoapp.com\"]").parent().text().match(/View\smore\s/gi)), "Your p element should have the text "View more " (with a space after it).");' - text: Sua a elemento não deve ter o texto "Ver mais". testString: 'assert(!$("a").text().match(/View\smore/gi), "Your a element should not have the text "View more".");' - text: Certifique-se de que cada um dos seus elementos p tenha uma tag de fechamento. testString: 'assert(code.match(/<\/p>/g) && code.match(/

/g).length === code.match(/

p elements has a closing tag.");' - 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

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