1.4 KiB
1.4 KiB
id | title | challengeType | dashedName |
---|---|---|---|
5dfa37b9eacea3f48c6300b0 | Passo 19 | 0 | 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>
.
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 <
.
assert(code.match(/<\/ul>/));
O elemento ul
deve estar acima da tag de fechamento do segundo elemento section
.
const secondSectionLastElemNode = $('main > section')[1].lastElementChild;
assert(secondSectionLastElemNode.nodeName === 'UL');
--seed--
--seed-contents--
<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>