freeCodeCamp/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-ca.../5dfa37b9eacea3f48c6300b0.md

59 lines
1.4 KiB
Markdown
Raw Normal View History

---
id: 5dfa37b9eacea3f48c6300b0
title: Passo 19
challengeType: 0
dashedName: step-19
---
# --description--
Após o elemento `h3` com o texto `Things cats love:`, adicione um elemento de lista não ordenada (`ul`). Observe que nada será exibido neste momento.
# --hints--
O elemento `ul` deve ter uma tag de abertura. As tags de abertura têm essa sintaxe: `<elementName>`.
```js
assert(document.querySelector('ul'));
```
O elemento `ul` deve ter uma tag de fechamento. As tags de fechamento têm um caractere `/` logo após o caractere `<`.
```js
assert(code.match(/<\/ul>/));
```
O elemento `ul` deve estar acima da tag de fechamento do segundo elemento `section`.
```js
const secondSectionLastElemNode = $('main > section')[1].lastElementChild;
assert(secondSectionLastElemNode.nodeName === 'UL');
```
# --seed--
## --seed-contents--
```html
<html>
<body>
<h1>CatPhotoApp</h1>
<main>
<section>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
<a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
</section>
<section>
--fcc-editable-region--
<h2>Cat Lists</h2>
<h3>Things cats love:</h3>
--fcc-editable-region--
</section>
</main>
</body>
</html>
```