1.3 KiB
1.3 KiB
id | title | challengeType | dashedName |
---|---|---|---|
5dc174fcf86c76b9248c6eb2 | Passo 1 | 0 | step-1 |
--description--
Os elementos em HTML têm tags de abertura, como <h1>
, e tags de fechamento, como </h1>
.
Encontre o elemento h1
e altere seu texto para:
CatPhotoApp
Certifique-se de que o texto esteja entre as tags de abertura e fechamento.
--hints--
O texto CatPhotoApp
deve estar presente no código. Não se esqueça de verificar a ortografia.
assert(code.match(/catphotoapp/i));
O elemento h1
deve ter uma tag de abertura. As tags de abertura têm essa sintaxe: <elementName>
.
assert(document.querySelector('h1'));
O elemento h1
deve ter uma tag de fechamento. As tags de fechamento têm um caractere /
logo após o caractere <
.
assert(code.match(/<\/h1\>/));
Você tem mais de um elemento h1
. Remova o elemento h1
a mais.
assert(document.querySelectorAll('h1').length === 1);
O elemento h1
deve conter o texto CatPhotoApp
. Você omitiu o texto, digitou o texto incorretamente ou ele não está entre as tags de abertura e fechamento do elemento h1
.
assert(document.querySelector('h1').innerText.toLowerCase() === 'catphotoapp');
--seed--
--seed-contents--
<html>
<body>
--fcc-editable-region--
<h1>Hello World</h1>
--fcc-editable-region--
</body>
</html>